Class NTLMAuthenticationProvider
- java.lang.Object
-
- org.alfresco.repo.security.authentication.ntlm.NTLMAuthenticationProvider
-
- All Implemented Interfaces:
net.sf.acegisecurity.providers.AuthenticationProvider
public class NTLMAuthenticationProvider extends Object implements net.sf.acegisecurity.providers.AuthenticationProvider
NTLM Authentication Provider- Author:
- GKSpencer
-
-
Field Summary
Fields Modifier and Type Field Description static StringNTLMAuthorityAdministratorstatic StringNTLMAuthorityGuest
-
Constructor Summary
Constructors Constructor Description NTLMAuthenticationProvider()Class constructor
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanallowsGuest()Determine if guest logons are allowednet.sf.acegisecurity.Authenticationauthenticate(net.sf.acegisecurity.Authentication auth)Authenticate a uservoidsetDomain(String domain)Set the domain to authenticate againstvoidsetGuestAccess(String guest)Allow guest accessvoidsetJCEProvider(String providerClass)Set the JCE providervoidsetServers(String servers)Set the server(s) to authenticate againstvoidsetSessionTimeout(String sessTmo)Set the authentication session timeout, in secondsvoidsetUseLocalServer(String useLocal)Use the local server as the authentication serverbooleansupports(Class authentication)Determine if this provider supports the specified authentication token
-
-
-
Field Detail
-
NTLMAuthorityGuest
public static final String NTLMAuthorityGuest
- See Also:
- Constant Field Values
-
NTLMAuthorityAdministrator
public static final String NTLMAuthorityAdministrator
- See Also:
- Constant Field Values
-
-
Method Detail
-
authenticate
public net.sf.acegisecurity.Authentication authenticate(net.sf.acegisecurity.Authentication auth) throws net.sf.acegisecurity.AuthenticationExceptionAuthenticate a user- Specified by:
authenticatein interfacenet.sf.acegisecurity.providers.AuthenticationProvider- Parameters:
auth- Authentication- Returns:
- Authentication
- Throws:
net.sf.acegisecurity.AuthenticationException
-
supports
public boolean supports(Class authentication)
Determine if this provider supports the specified authentication token- Specified by:
supportsin interfacenet.sf.acegisecurity.providers.AuthenticationProvider- Parameters:
authentication- Class
-
allowsGuest
public final boolean allowsGuest()
Determine if guest logons are allowed- Returns:
- boolean
-
setDomain
public final void setDomain(String domain)
Set the domain to authenticate against- Parameters:
domain- String
-
setServers
public final void setServers(String servers)
Set the server(s) to authenticate against- Parameters:
servers- String
-
setUseLocalServer
public final void setUseLocalServer(String useLocal)
Use the local server as the authentication server- Parameters:
useLocal- String
-
setGuestAccess
public final void setGuestAccess(String guest)
Allow guest access- Parameters:
guest- String
-
setJCEProvider
public final void setJCEProvider(String providerClass)
Set the JCE provider- Parameters:
providerClass- String
-
setSessionTimeout
public final void setSessionTimeout(String sessTmo)
Set the authentication session timeout, in seconds- Parameters:
sessTmo- String
-
-