org.alfresco.repo.security.authentication.ntlm
Class NTLMAuthenticationProvider

java.lang.Object
  extended by org.alfresco.repo.security.authentication.ntlm.NTLMAuthenticationProvider
All Implemented Interfaces:
net.sf.acegisecurity.providers.AuthenticationProvider

public class NTLMAuthenticationProvider
extends java.lang.Object
implements net.sf.acegisecurity.providers.AuthenticationProvider

NTLM Authentication Provider


Field Summary
static java.lang.String NTLMAuthorityAdministrator
           
static java.lang.String NTLMAuthorityGuest
           
 
Constructor Summary
NTLMAuthenticationProvider()
          Class constructor
 
Method Summary
 boolean allowsGuest()
          Determine if guest logons are allowed
 net.sf.acegisecurity.Authentication authenticate(net.sf.acegisecurity.Authentication auth)
          Authenticate a user
 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 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
 boolean supports(java.lang.Class authentication)
          Determine if this provider supports the specified authentication token
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

NTLMAuthorityGuest

public static final java.lang.String NTLMAuthorityGuest
See Also:
Constant Field Values

NTLMAuthorityAdministrator

public static final java.lang.String NTLMAuthorityAdministrator
See Also:
Constant Field Values
Constructor Detail

NTLMAuthenticationProvider

public NTLMAuthenticationProvider()
Class constructor

Method Detail

authenticate

public net.sf.acegisecurity.Authentication authenticate(net.sf.acegisecurity.Authentication auth)
                                                 throws net.sf.acegisecurity.AuthenticationException
Authenticate a user

Specified by:
authenticate in interface net.sf.acegisecurity.providers.AuthenticationProvider
Parameters:
auth - Authentication
Returns:
Authentication
Throws:
net.sf.acegisecurity.AuthenticationException

supports

public boolean supports(java.lang.Class authentication)
Determine if this provider supports the specified authentication token

Specified by:
supports in interface net.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(java.lang.String domain)
Set the domain to authenticate against

Parameters:
domain - String

setServers

public final void setServers(java.lang.String servers)
Set the server(s) to authenticate against

Parameters:
servers - String

setUseLocalServer

public final void setUseLocalServer(java.lang.String useLocal)
Use the local server as the authentication server

Parameters:
useLocal - String

setGuestAccess

public final void setGuestAccess(java.lang.String guest)
Allow guest access

Parameters:
guest - String

setJCEProvider

public final void setJCEProvider(java.lang.String providerClass)
Set the JCE provider

Parameters:
providerClass - String

setSessionTimeout

public final void setSessionTimeout(java.lang.String sessTmo)
Set the authentication session timeout, in seconds

Parameters:
sessTmo - String


Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.