public class NTLMPassthruToken extends NTLMLocalToken
Used to provide passthru authentication to a remote Windows server using multiple stages that allows authentication details to be passed between a client and the remote authenticating server without the password being known by the authentication provider.
Constructor and Description |
---|
NTLMPassthruToken()
Class constructor
|
NTLMPassthruToken(InetAddress ipAddr)
Class constructor
|
NTLMPassthruToken(String domain)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(Object obj)
Check for object equality
|
long |
getAuthenticationExpireTime()
Return the authentication expiry time, this will be zero if the authentication session has not yet
been opened to the server
|
NTLMChallenge |
getChallenge()
Return the challenge
|
byte[] |
getHashedPassword()
Return the hashed password
|
int |
getPasswordType()
Return the hashed password type
|
Object |
getPrincipal()
Return the user account
|
protected void |
setAuthenticationExpireTime(long expireTime)
Set the authentication expire time, this indicates that an authentication session is associated with this
token and the session will be closed if the authentication is not completed by this time.
|
protected void |
setChallenge(NTLMChallenge challenge)
Set the challenge for this token
|
void |
setUserAndPassword(String username,
byte[] hashedPassword,
int hashType)
Set the hashed password and type
|
getClientAddress, getClientDomain, hasAuthority, hasClientAddress, hasClientDomain, isAdministrator, isGuestLogon
getAuthorities, getCredentials, getDetails, isAuthenticated, setAuthenticated, setAuthorities, setDetails
getName, toString
public NTLMPassthruToken()
public NTLMPassthruToken(String domain)
domain
- Stringpublic NTLMPassthruToken(InetAddress ipAddr)
ipAddr
- InetAddresspublic final NTLMChallenge getChallenge()
public final Object getPrincipal()
getPrincipal
in interface net.sf.acegisecurity.Authentication
getPrincipal
in class net.sf.acegisecurity.providers.UsernamePasswordAuthenticationToken
public final byte[] getHashedPassword()
public final int getPasswordType()
public final long getAuthenticationExpireTime()
public final void setUserAndPassword(String username, byte[] hashedPassword, int hashType)
hashedPassword
- byte[]hashType
- intprotected final void setChallenge(NTLMChallenge challenge)
challenge
- NTLMChallengeprotected final void setAuthenticationExpireTime(long expireTime)
expireTime
- longCopyright © 2005–2017 Alfresco Software. All rights reserved.