|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.alfresco.repo.security.authentication.AbstractAuthenticationComponent
org.alfresco.repo.security.authentication.AbstractChainingAuthenticationComponent
public abstract class AbstractChainingAuthenticationComponent
A base class for chaining authentication components. Where appropriate, methods will 'chain' across multiple
AuthenticationComponent
instances, as returned by AbstractChainingAuthenticationComponent.getUsableAuthenticationComponents()
.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.alfresco.repo.security.authentication.AuthenticationComponent |
---|
AuthenticationComponent.UserNameValidationMode |
Constructor Summary | |
---|---|
AbstractChainingAuthenticationComponent()
Instantiates a new abstract chaining authentication component. |
Method Summary | |
---|---|
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. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public AbstractChainingAuthenticationComponent()
Method Detail |
---|
protected abstract java.util.Collection getUsableAuthenticationComponents()
protected void authenticateImpl(java.lang.String userName, char[] password)
authenticateImpl
in class AbstractAuthenticationComponent
userName
- the user namepassword
- the passwordprotected boolean implementationAllowsGuestLogin()
implementationAllowsGuestLogin
in class AbstractAuthenticationComponent
public net.sf.acegisecurity.Authentication setCurrentUser(java.lang.String userName, AuthenticationComponent.UserNameValidationMode validationMode)
AuthenticationComponent
setCurrentUser
in interface AuthenticationComponent
setCurrentUser
in class AbstractAuthenticationComponent
public net.sf.acegisecurity.Authentication setCurrentUser(java.lang.String userName)
setCurrentUser
in interface AuthenticationComponent
setCurrentUser
in class AbstractAuthenticationComponent
userName
- the user name
public java.util.Set getDefaultAdministratorUserNames()
getDefaultAdministratorUserNames
in interface AuthenticationComponent
getDefaultAdministratorUserNames
in class AbstractAuthenticationComponent
public java.util.Set getDefaultGuestUserNames()
getDefaultGuestUserNames
in interface AuthenticationComponent
getDefaultGuestUserNames
in class AbstractAuthenticationComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |