public abstract class AbstractChainingAuthenticationComponent extends AbstractAuthenticationComponent
AuthenticationComponent instances, as returned by AbstractChainingAuthenticationComponent.getUsableAuthenticationComponents().AuthenticationComponent.UserNameValidationMode| Constructor and Description |
|---|
AbstractChainingAuthenticationComponent()
Instantiates a new abstract chaining authentication component.
|
| Modifier and Type | Method and Description |
|---|---|
protected void |
authenticateImpl(java.lang.String userName,
char[] password)
Chain authentication with user name and password - tries all in order until one works, or fails.
|
protected abstract AuthenticationComponent |
getAuthenticationComponent(java.lang.String name)
Get the authentication component with the specified name
|
java.util.Set |
getDefaultAdministratorUserNames()
Gets a set of user names who for this particular authentication system should be considered administrators by
default.
|
java.util.Set |
getDefaultGuestUserNames()
Gets a set of user names who for this particular authentication system should be considered guests by
default.
|
protected abstract java.util.Collection |
getUsableAuthenticationComponents()
Gets the authentication components across which methods will chain.
|
protected boolean |
implementationAllowsGuestLogin()
If any implementation supports guest then guest is allowed.
|
net.sf.acegisecurity.Authentication |
setCurrentUser(java.lang.String userName)
Set the current user - try all implementations - as some may check the user exists.
|
net.sf.acegisecurity.Authentication |
setCurrentUser(java.lang.String userName,
AuthenticationComponent.UserNameValidationMode validationMode)
Explicitly set the current user to be authenticated.
|
void |
testAuthenticate(java.lang.String authenticatorName,
java.lang.String userName,
char[] password)
Test authenticate with a specific authenticator and user name and password.
|
authenticate, clearCurrentSecurityContext, getAllowGuestLogin, getCurrentAuthentication, getCurrentUserName, getGuestUserName, getGuestUserName, getNodeService, getNumberFailedAuthentications, getNumberSuccessfulAuthentications, getPersonService, getSystemUserName, getSystemUserName, getTransactionService, getUserDetails, getUserDomain, guestUserAuthenticationAllowed, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, onAuthenticate, onFail, setAllowGuestLogin, setAuthenticationContext, setCurrentAuthentication, setDefaultAdministratorUserNameList, setDefaultAdministratorUserNames, setDefaultGuestUserNameList, setDefaultGuestUserNames, setGuestUserAsCurrentUser, setNodeService, setPersonService, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setTransactionService, setUserDetails, setUserRegistrySynchronizerpublic AbstractChainingAuthenticationComponent()
protected abstract AuthenticationComponent getAuthenticationComponent(java.lang.String name)
name - protected abstract java.util.Collection getUsableAuthenticationComponents()
protected void authenticateImpl(java.lang.String userName,
char[] password)
authenticateImpl in class AbstractAuthenticationComponentuserName - the user namepassword - the passwordAuthenticationExceptionpublic void testAuthenticate(java.lang.String authenticatorName,
java.lang.String userName,
char[] password)
authenticatorName - the name of the authenticator to useuserName - the user namepassword - the passwordAuthenticationException - including diagnostic information about the failureprotected boolean implementationAllowsGuestLogin()
implementationAllowsGuestLogin in class AbstractAuthenticationComponentpublic net.sf.acegisecurity.Authentication setCurrentUser(java.lang.String userName,
AuthenticationComponent.UserNameValidationMode validationMode)
AuthenticationComponentsetCurrentUser in interface AuthenticationComponentsetCurrentUser in class AbstractAuthenticationComponentpublic net.sf.acegisecurity.Authentication setCurrentUser(java.lang.String userName)
setCurrentUser in interface AuthenticationComponentsetCurrentUser in class AbstractAuthenticationComponentuserName - the user namepublic java.util.Set getDefaultAdministratorUserNames()
getDefaultAdministratorUserNames in interface AuthenticationComponentgetDefaultAdministratorUserNames in class AbstractAuthenticationComponentpublic java.util.Set getDefaultGuestUserNames()
getDefaultGuestUserNames in interface AuthenticationComponentgetDefaultGuestUserNames in class AbstractAuthenticationComponentCopyright © 2005 - 2013 Alfresco Software, Inc. All Rights Reserved.