org.springframework.security.ui.ntlm
Class NtlmUsernamePasswordAuthenticationToken
java.lang.Object
org.springframework.security.providers.AbstractAuthenticationToken
org.springframework.security.providers.UsernamePasswordAuthenticationToken
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
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
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.
Copyright © 2004-2010 SpringSource, Inc. All Rights Reserved.