public class NTLMLogonDetails extends Object implements Serializable
Contains the details from the NTLM authentication session that was used to authenticate a user.
Constructor and Description |
---|
NTLMLogonDetails()
Default constructor
|
NTLMLogonDetails(String user,
String wks,
String domain,
boolean guest,
String authSrv)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
long |
authenticatedAt()
Return the date/time the user was authenticated
|
String |
getAuthenticationServer()
Return the authentication server name/address
|
Object |
getAuthenticationToken()
Return the authentication token
|
byte[] |
getChallengeKey()
Return the challenge key from the type2 message
|
String |
getDomain()
Return the domain name
|
byte[] |
getNTLMHashedPassword()
Return the cached NTLM hashed password
|
Type2NTLMMessage |
getType2Message()
Return the cached type 2 NTLM message
|
String |
getUserName()
Return the user name
|
String |
getWorkstation()
Return the workstation name
|
boolean |
hasAuthenticationToken()
Determine if there is a valid authentication token
|
boolean |
hasNTLMHashedPassword()
Determine if there is a cached NTLM hashed password
|
boolean |
hasType2Message()
Determine if the type 2 NTLM message has been cached
|
void |
setAuthenticatedAt(long authTime)
Set the authentication date/time
|
void |
setAuthenticationToken(Object token)
Set the authentication token
|
void |
setDetails(String user,
String wks,
String domain,
boolean guest,
String authSrv)
Set the client details
|
void |
setNTLMHashedPassword(byte[] ntlmHash)
Set the cached NTLM hashed password
|
void |
setType2Message(Type2NTLMMessage type2)
Set the type 2 NTLM message
|
String |
toString()
Return the NTLM logon details as a string
|
public final String getUserName()
public final String getWorkstation()
public final String getDomain()
public final String getAuthenticationServer()
public final long authenticatedAt()
public final boolean hasType2Message()
public final Type2NTLMMessage getType2Message()
public final boolean hasNTLMHashedPassword()
public final byte[] getNTLMHashedPassword()
public final byte[] getChallengeKey()
public final boolean hasAuthenticationToken()
public final Object getAuthenticationToken()
public final void setAuthenticationToken(Object token)
token
- Objectpublic final void setAuthenticatedAt(long authTime)
authTime
- longpublic final void setDetails(String user, String wks, String domain, boolean guest, String authSrv)
user
- Stringwks
- Stringdomain
- Stringguest
- booleanauthSrv
- Stringpublic final void setType2Message(Type2NTLMMessage type2)
type2
- Type2NTLMMessagepublic final void setNTLMHashedPassword(byte[] ntlmHash)
ntlmHash
- byte[]Copyright © 2005–2017 Alfresco Software. All rights reserved.