@UESComponent public interface AccountManager
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
ENCODED
Flag to be appended before principal or credentials.
|
Modifier and Type | Method and Description |
---|---|
AccountAttributes |
createAccount(java.lang.String securityRealm,
Creates new account.
|
boolean |
deleteAccount(java.lang.String securityRealm,
Removes existing account.
|
java.lang.Object |
encodeCredentials(java.lang.String securityRealm,
Method encodes given credentials in same way as they are stored in persistent storage.
|
java.lang.String |
encodePrincipal(java.lang.String securityRealm,
Method encodes given principal in same way as they are stored in persistent storage.
|
void |
enrollSuccessfulAuthentication(java.lang.String securityRealm,
Resets invalid login counter for given account (reset also unlocks
account if locked) and updates last successful login time.
|
void |
enrollUnsuccessfulAuthentication(java.lang.String securityRealm,
Updates last failed login time and increment invalid login counters for given
accounts.
|
AccountAttributes |
getAccount(java.lang.String securityRealm,
Reads existing account attributes.
|
AccountAttributes |
getAccountByIdentity(java.lang.String securityRealm,
Reads existing account attributes.
|
AccountAttributes |
getAccountByPrincipal(java.lang.String securityRealm,
Reads existing account attributes.
|
boolean |
changeCredentials(java.lang.String securityRealm,
Changes account credentials.
|
boolean |
changePrincipal(java.lang.String securityRealm,
Changes account principal name.
|
java.lang.Object |
resetCredentials(java.lang.String securityRealm,
Resets credentials of account identified by given account ID.
|
boolean |
setAccountState(java.lang.String securityRealm,
Sets account state.
|
securityRealm
- Security realm into which we are creating accountaccount
- DTO containing new account attributesAccountManagerRTException
- In case creating of account failssecurityRealm
- Security realm where we are deleting accountaccountId
- Unique account IDAccountManagerRTException
- In case removing of account failssecurityRealm
- Security realm where to look for accountaccountId
- Unique account IDAccountManagerRTException
- In case reading of account failssecurityRealm
- Security realm where to look for accountprincipal
- Principal used for identification of accountAccountManagerRTException
- In case reading of account failssecurityRealm
- Security realm where to look for accountidentity
- Identity for which to read accountAccountManagerRTException
- In case reading of account failssecurityRealm
- Security realm where to look for accountaccountId
- Unique account IDprincipal
- New principal to be setAccountManagerRTException
- In case changing of principal failssecurityRealm
- Security realm where to look for accountaccountId
- Unique account IDoldCredentials
- Original credentialsnewCredentials
- New credentialsAccountManagerRTException
- In case changing of credentials failssecurityRealm
- Security realm where to look for accountaccountId
- Unique account IDAccountManagerRTException
- In case reseting of credentials failssecurityRealm
- Security realm where to look for accountaccountId
- Unique account IDstate
- New account stateAccountManagerRTException
- In case setting of account state failssecurityRealm
- Security realm where to look for accountaccountId
- Account IDsecurityRealm
- Security realm where to look for accountaccountId
- Account IDsecurityRealm
- Security realmprincipal
- Original principalsecurityRealm
- Security realmcredentials
- Original credentials