Class IdentityServiceAccountProvider
java.lang.Object
fr.becpg.repo.authentication.provider.IdentityServiceAccountProvider
IdentityServiceAccountProvider class.
- Version:
- $Id: $Id
- Author:
- matthieu
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate Stringprivate Stringprivate Stringprivate Booleanprivate static final StringConstantGET_USER_ID_ERROR="Could not find userId from identity ser"{trunked}private Stringprivate Stringprivate static org.apache.commons.logging.LogConstantloggerprivate static final PatternConstantPROHIBITED_CHARSprivate String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoiddeleteAccount(String username) deleteAccount.private StringgetAdminAccessToken.private StringgetUserId.getZoneId.isEnabled.booleanregisterAccount(BeCPGUserAccount userAccount) registerAccount.private Stringsanitize.toString()voidupdatePassword(String username, String newPassword) updatePassword.booleanupdateUser(BeCPGUserAccount userAccount) updateUser.
-
Field Details
-
PROHIBITED_CHARS
ConstantPROHIBITED_CHARS -
GET_USER_ID_ERROR
ConstantGET_USER_ID_ERROR="Could not find userId from identity ser"{trunked}- See Also:
-
logger
private static org.apache.commons.logging.Log loggerConstantlogger -
enabled
-
identityServiceUserName
-
identityServicePassword
-
realm
-
clientId
-
clientSecret
-
authServerUrl
-
-
Constructor Details
-
IdentityServiceAccountProvider
public IdentityServiceAccountProvider()
-
-
Method Details
-
isEnabled
isEnabled.
- Returns:
- a
Booleanobject
-
getZoneId
getZoneId.
- Returns:
- a
Stringobject
-
registerAccount
registerAccount.
- Parameters:
userAccount- aBeCPGUserAccountobject- Returns:
- a boolean
-
deleteAccount
deleteAccount.
- Parameters:
username- aStringobject
-
updateUser
updateUser.
- Parameters:
userAccount- aBeCPGUserAccountobject- Returns:
- a boolean
-
sanitize
sanitize.
-
updatePassword
updatePassword.
-
getUserId
getUserId.
-
getAdminAccessToken
getAdminAccessToken.
- Returns:
- a
Stringobject
-
toString
-