|
|||||||||
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
org.alfresco.repo.security.authentication.ChainingAuthenticationComponentImpl
public class ChainingAuthenticationComponentImpl
A chaining authentication component is required for all the beans that qire up an authentication component and not an authentication service. It supports chaining in much the same way and wires up components in the same way asthe chaining authentication service wires up services.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.alfresco.repo.security.authentication.AuthenticationComponent |
---|
AuthenticationComponent.UserNameValidationMode |
Constructor Summary | |
---|---|
ChainingAuthenticationComponentImpl()
|
Method Summary | |
---|---|
net.sf.acegisecurity.Authentication |
authenticate(net.sf.acegisecurity.Authentication token)
NTLM passthrough authentication - if a mode is defined - the first PASS_THROUGH provider is used - if not, the first component that supports NTLM is used if it supports PASS_THROUGH |
java.util.List |
getAuthenticationComponents()
Get the authentication components |
java.lang.String |
getGuestUserName()
Get the guest user name |
java.lang.String |
getMD4HashedPassword(java.lang.String userName)
Get the MD4 password hash |
AuthenticationComponent |
getMutableAuthenticationComponent()
Get the authentication service thta must be at the top of the list (this may be null) |
NTLMMode |
getNTLMMode()
Get the NTLM mode - this is only what is set if one of the implementations provides support for that mode. |
protected java.util.Collection |
getUsableAuthenticationComponents()
Helper to get authentication components |
void |
setAuthenticationComponents(java.util.List authenticationComponents)
Set a list of authentication components |
void |
setMutableAuthenticationComponent(AuthenticationComponent mutableAuthenticationComponent)
Set the authentication component at the top of the list. |
void |
setNtlmMode(NTLMMode ntlmMode)
|
Methods inherited from class org.alfresco.repo.security.authentication.AbstractChainingAuthenticationComponent |
---|
authenticateImpl, getDefaultAdministratorUserNames, getDefaultGuestUserNames, implementationAllowsGuestLogin, setCurrentUser, setCurrentUser |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.alfresco.repo.security.authentication.AuthenticationComponent |
---|
authenticate, getDefaultAdministratorUserNames, getDefaultGuestUserNames, guestUserAuthenticationAllowed, setCurrentUser, setCurrentUser, setGuestUserAsCurrentUser |
Methods inherited from interface org.alfresco.repo.security.authentication.AuthenticationContext |
---|
clearCurrentSecurityContext, getCurrentAuthentication, getCurrentUserName, getGuestUserName, getSystemUserName, getSystemUserName, getUserDomain, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, setCurrentAuthentication, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setUserDetails |
Constructor Detail |
---|
public ChainingAuthenticationComponentImpl()
Method Detail |
---|
public java.util.List getAuthenticationComponents()
public void setAuthenticationComponents(java.util.List authenticationComponents)
authenticationComponents
- public AuthenticationComponent getMutableAuthenticationComponent()
public void setMutableAuthenticationComponent(AuthenticationComponent mutableAuthenticationComponent)
mutableAuthenticationComponent
- public void setNtlmMode(NTLMMode ntlmMode)
public net.sf.acegisecurity.Authentication authenticate(net.sf.acegisecurity.Authentication token) throws org.alfresco.repo.security.authentication.AuthenticationException
authenticate
in interface NLTMAuthenticator
token
- Authentication
org.alfresco.repo.security.authentication.AuthenticationException
- the authentication exceptionpublic java.lang.String getGuestUserName()
getGuestUserName
in interface AuthenticationContext
getGuestUserName
in class AbstractAuthenticationComponent
public java.lang.String getMD4HashedPassword(java.lang.String userName)
getMD4HashedPassword
in interface NLTMAuthenticator
userName
- the user name
public NTLMMode getNTLMMode()
getNTLMMode
in interface NLTMAuthenticator
protected java.util.Collection getUsableAuthenticationComponents()
getUsableAuthenticationComponents
in class AbstractChainingAuthenticationComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |