Spring Security Framework

org.springframework.security.ui.ntlm
Class NtlmUsernamePasswordAuthenticationToken

java.lang.Object
  extended by org.springframework.security.providers.AbstractAuthenticationToken
      extended by org.springframework.security.providers.UsernamePasswordAuthenticationToken
          extended by org.springframework.security.ui.ntlm.NtlmUsernamePasswordAuthenticationToken
All Implemented Interfaces:
Serializable, Principal, Authentication

public class NtlmUsernamePasswordAuthenticationToken
extends UsernamePasswordAuthenticationToken

An NTLM-specific UsernamePasswordAuthenticationToken that allows any provider to bypass the problem of an empty password since NTLM does not retrieve the user's password from the PDC.

Author:
Sylvain Mougenot
See Also:
Serialized Form

Field Summary
static String DEFAULT_PASSWORD
          Spring Security often checks password ; but we do not have one.
 
Constructor Summary
NtlmUsernamePasswordAuthenticationToken(jcifs.smb.NtlmPasswordAuthentication ntlmAuth, boolean stripDomain)
          Create an NTLM UsernamePasswordAuthenticationToken using the JCIFS NtlmPasswordAuthentication object.
 
Method Summary
 
Methods inherited from class org.springframework.security.providers.UsernamePasswordAuthenticationToken
getCredentials, getPrincipal, setAuthenticated
 
Methods inherited from class org.springframework.security.providers.AbstractAuthenticationToken
equals, getAuthorities, getDetails, getName, hashCode, isAuthenticated, setDetails, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 

Field Detail

DEFAULT_PASSWORD

public static final String DEFAULT_PASSWORD
Spring Security often checks password ; but we do not have one. This is the replacement password

See Also:
Constant Field Values
Constructor Detail

NtlmUsernamePasswordAuthenticationToken

public NtlmUsernamePasswordAuthenticationToken(jcifs.smb.NtlmPasswordAuthentication ntlmAuth,
                                               boolean stripDomain)
Create an NTLM UsernamePasswordAuthenticationToken using the JCIFS NtlmPasswordAuthentication object.

Parameters:
ntlmAuth - The NtlmPasswordAuthentication object.
stripDomain - Uses just the username if true, otherwise use the username and domain name.

Spring Security Framework

Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.