|
|||||||||
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.ntlm.NTLMAuthenticationComponentImpl
public class NTLMAuthenticationComponentImpl
NTLM Authentication Component Class
Provides authentication using passthru to a Windows server(s)/domain controller(s) using the accounts defined on the passthru server to validate users.
Nested Class Summary |
---|
Nested classes/interfaces inherited from interface org.alfresco.repo.security.authentication.AuthenticationComponent |
---|
AuthenticationComponent.UserNameValidationMode |
Field Summary | |
---|---|
static java.lang.String |
NTLMAuthorityAdministrator
|
static java.lang.String |
NTLMAuthorityGuest
|
Constructor Summary | |
---|---|
NTLMAuthenticationComponentImpl()
Class constructor |
Method Summary | |
---|---|
void |
afterPropertiesSet()
|
boolean |
allowsGuest()
Determine if guest logons are allowed |
net.sf.acegisecurity.Authentication |
authenticate(net.sf.acegisecurity.Authentication auth)
Authenticate using a token |
protected void |
authenticateImpl(java.lang.String userName,
char[] password)
Authenticate |
boolean |
exists(java.lang.String userName)
Check if the user exists |
java.lang.String |
getMD4HashedPassword(java.lang.String userName)
Get the MD4 password hash, as required by NTLM based authentication methods. |
NTLMMode |
getNTLMMode()
Get the enum that describes NTLM integration |
protected boolean |
implementationAllowsGuestLogin()
|
void |
setAllowAuthUserAsGuest(java.lang.String auth)
Allow authenticated users with no alfresco person record to logon with guest access |
void |
setDomain(java.lang.String domain)
Set the domain to authenticate against |
void |
setGuestAccess(java.lang.String guest)
Allow guest access |
void |
setJCEProvider(java.lang.String providerClass)
Set the JCE provider |
void |
setNullDomainUseAnyServer(java.lang.String nullDomain)
Allow null domain passthru logons to use the first available passthru server |
void |
setPassthruServers(org.alfresco.jlan.server.auth.passthru.PassthruServers servers)
Directly sets the passthru server list. |
void |
setProtocolOrder(java.lang.String protoOrder)
Set the protocol order for passthru connections |
void |
setServers(java.lang.String servers)
Set the server(s) to authenticate against |
void |
setSessionTimeout(java.lang.String sessTmo)
Set the authentication session timeout, in seconds |
void |
setUseLocalServer(java.lang.String useLocal)
Use the local server as the authentication server |
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, getGuestUserName, getSystemUserName, getSystemUserName, getUserDomain, isCurrentUserTheSystemUser, isGuestUserName, isSystemUserName, setCurrentAuthentication, setSystemUserAsCurrentUser, setSystemUserAsCurrentUser, setUserDetails |
Field Detail |
---|
public static final java.lang.String NTLMAuthorityGuest
public static final java.lang.String NTLMAuthorityAdministrator
Constructor Detail |
---|
public NTLMAuthenticationComponentImpl()
Method Detail |
---|
public void afterPropertiesSet() throws java.lang.Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
java.lang.Exception
public final boolean allowsGuest()
public void setPassthruServers(org.alfresco.jlan.server.auth.passthru.PassthruServers servers)
servers
- a passthru server list, usually created by PassthruServerFactory
public void setDomain(java.lang.String domain)
domain
- Stringpublic void setServers(java.lang.String servers)
servers
- Stringpublic void setUseLocalServer(java.lang.String useLocal)
useLocal
- Stringpublic void setGuestAccess(java.lang.String guest)
guest
- Stringpublic void setAllowAuthUserAsGuest(java.lang.String auth)
auth
- Stringpublic void setNullDomainUseAnyServer(java.lang.String nullDomain)
nullDomain
- Stringpublic void setJCEProvider(java.lang.String providerClass)
providerClass
- Stringpublic void setSessionTimeout(java.lang.String sessTmo)
sessTmo
- Stringpublic void setProtocolOrder(java.lang.String protoOrder)
protoOrder
- Stringprotected void authenticateImpl(java.lang.String userName, char[] password) throws org.alfresco.repo.security.authentication.AuthenticationException
authenticateImpl
in class AbstractAuthenticationComponent
userName
- Stringpassword
- char[]
org.alfresco.repo.security.authentication.AuthenticationException
public net.sf.acegisecurity.Authentication authenticate(net.sf.acegisecurity.Authentication auth) throws org.alfresco.repo.security.authentication.AuthenticationException
authenticate
in interface NLTMAuthenticator
token
- Authentication
org.alfresco.repo.security.authentication.AuthenticationException
public NTLMMode getNTLMMode()
getNTLMMode
in interface NLTMAuthenticator
public java.lang.String getMD4HashedPassword(java.lang.String userName)
getMD4HashedPassword
in interface NLTMAuthenticator
userName
- String
public boolean exists(java.lang.String userName)
userName
- String
protected boolean implementationAllowsGuestLogin()
implementationAllowsGuestLogin
in class AbstractAuthenticationComponent
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |