Interface AuthenticationComponent
-
- All Superinterfaces:
AuthenticationContext
- All Known Implementing Classes:
AbstractAuthenticationComponent,AbstractChainingAuthenticationComponent,AuthenticationComponentImpl,IdentityServiceAuthenticationComponent,JAASAuthenticationComponent,LDAPAuthenticationComponentImpl,SimpleAcceptOrRejectAllAuthenticationComponentImpl,SubsystemChainingAuthenticationComponent
public interface AuthenticationComponent extends AuthenticationContext
-
-
Nested Class Summary
Nested Classes Modifier and Type Interface Description static classAuthenticationComponent.UserNameValidationMode
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidauthenticate(java.lang.String userName, char[] password)Authenticatejava.util.Set<java.lang.String>getDefaultAdministratorUserNames()Gets a set of user names who for this particular authentication system should be considered administrators by default.java.util.Set<java.lang.String>getDefaultGuestUserNames()Gets a set of user names who for this particular authentication system should be considered guests by default.booleanguestUserAuthenticationAllowed()True if Guest user authentication is allowed, false otherwisenet.sf.acegisecurity.AuthenticationsetCurrentUser(java.lang.String userName)Explicitly set the current user to be authenticated.net.sf.acegisecurity.AuthenticationsetCurrentUser(java.lang.String userName, AuthenticationComponent.UserNameValidationMode validationMode)Explicitly set the current user to be authenticated.net.sf.acegisecurity.AuthenticationsetGuestUserAsCurrentUser()Set the guest user as the current user.-
Methods inherited from interface org.alfresco.repo.security.authentication.AuthenticationContext
clearCurrentSecurityContext, getCurrentAuthentication, getCurrentUserName, getGuestUserName, getGuestUserName, getSystemUserName, getSystemUserName, getUserDomain, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, setCurrentAuthentication, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setUserDetails
-
-
-
-
Method Detail
-
authenticate
void authenticate(java.lang.String userName, char[] password) throws org.alfresco.repo.security.authentication.AuthenticationExceptionAuthenticate- Throws:
org.alfresco.repo.security.authentication.AuthenticationException
-
setCurrentUser
net.sf.acegisecurity.Authentication setCurrentUser(java.lang.String userName)
Explicitly set the current user to be authenticated.
-
setCurrentUser
net.sf.acegisecurity.Authentication setCurrentUser(java.lang.String userName, AuthenticationComponent.UserNameValidationMode validationMode)Explicitly set the current user to be authenticated. Specify if the userName is to be checked and fixed
-
setGuestUserAsCurrentUser
net.sf.acegisecurity.Authentication setGuestUserAsCurrentUser()
Set the guest user as the current user.
-
guestUserAuthenticationAllowed
boolean guestUserAuthenticationAllowed()
True if Guest user authentication is allowed, false otherwise
-
getDefaultAdministratorUserNames
java.util.Set<java.lang.String> getDefaultAdministratorUserNames()
Gets a set of user names who for this particular authentication system should be considered administrators by default. If the security framework is case sensitive these values should be case sensitive user names. If the security framework is not case sensitive these values should be the lower-case user names.- Returns:
- a set of user names
-
getDefaultGuestUserNames
java.util.Set<java.lang.String> getDefaultGuestUserNames()
Gets a set of user names who for this particular authentication system should be considered guests by default. If the security framework is case sensitive these values should be case sensitive user names. If the security framework is not case sensitive these values should be the lower-case user names.- Returns:
- a set of user names
-
-