public abstract class AbstractCredentialHandler<S extends IdentityStore<?>,V extends AbstractBaseCredentials,U> extends Object implements CredentialHandler<S,V,U>
Base class for CredentialHandler
implementations.
LOGIN_NAME_PROPERTY, SUPPORTED_ACCOUNT_TYPES_PROPERTY
Constructor and Description |
---|
AbstractCredentialHandler() |
Modifier and Type | Method and Description |
---|---|
protected Account |
getAccount(IdentityContext context,
String loginName)
Custom
CredentialHandler implementations may override this method to perform the lookup of Account
instances based on the loginName . |
protected abstract Account |
getAccount(IdentityContext context,
V credentials) |
protected abstract CredentialStorage |
getCredentialStorage(IdentityContext context,
Account account,
V credentials,
S store) |
protected IdentityManager |
getIdentityManager(IdentityContext context) |
protected boolean |
isDebugEnabled() |
void |
setup(S store) |
void |
validate(IdentityContext context,
V credentials,
S store) |
protected abstract boolean |
validateCredential(CredentialStorage credentialStorage,
V credentials) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
update
public void setup(S store)
setup
in interface CredentialHandler<S extends IdentityStore<?>,V extends AbstractBaseCredentials,U>
protected Account getAccount(IdentityContext context, String loginName)
Custom CredentialHandler
implementations may override this method to perform the lookup of Account
instances based on the loginName
.
context
- loginName
- The login name of the account that will be used to retrieve the instance.public void validate(IdentityContext context, V credentials, S store)
validate
in interface CredentialHandler<S extends IdentityStore<?>,V extends AbstractBaseCredentials,U>
protected abstract boolean validateCredential(CredentialStorage credentialStorage, V credentials)
protected abstract Account getAccount(IdentityContext context, V credentials)
protected abstract CredentialStorage getCredentialStorage(IdentityContext context, Account account, V credentials, S store)
protected IdentityManager getIdentityManager(IdentityContext context)
protected boolean isDebugEnabled()
Copyright © 2014. All Rights Reserved.