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.
|
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.
|
authenticate, clearCurrentSecurityContext, getAllowGuestLogin, getCurrentAuthentication, getCurrentUserName, getGuestUserName, getGuestUserName, getNodeService, getPersonService, getSystemUserName, getSystemUserName, getTransactionService, getUserDetails, getUserDomain, guestUserAuthenticationAllowed, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, setAllowGuestLogin, setAuthenticationContext, setCurrentAuthentication, setDefaultAdministratorUserNameList, setDefaultAdministratorUserNames, setDefaultGuestUserNameList, setDefaultGuestUserNames, setGuestUserAsCurrentUser, setNodeService, setPersonService, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setTransactionService, setUserDetails, setUserRegistrySynchronizerpublic AbstractChainingAuthenticationComponent()
protected abstract java.util.Collection getUsableAuthenticationComponents()
protected void authenticateImpl(java.lang.String userName,
char[] password)
authenticateImpl in class AbstractAuthenticationComponentuserName - the user namepassword - the passwordprotected 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 - 2010 Alfresco Software, Inc. All Rights Reserved.