public class Type3NTLMMessage extends NTLMMessage
Modifier and Type | Field and Description |
---|---|
static int |
MinimalMessageLength |
static int |
OffsetData |
static int |
OffsetDataMinimum |
static int |
OffsetDomain |
static int |
OffsetFlags |
static int |
OffsetLMResponse |
static int |
OffsetNTLMResponse |
static int |
OffsetSessionKey |
static int |
OffsetUserName |
static int |
OffsetWorkstationName |
BufferHeaderLen, OffsetSignature, OffsetType
Constructor and Description |
---|
Type3NTLMMessage()
Default constructor
|
Type3NTLMMessage(byte[] buf)
Class constructor
|
Type3NTLMMessage(byte[] buf,
int offset,
int len,
boolean unicode)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
buildType3(byte[] lmHash,
byte[] ntlmHash,
java.lang.String domain,
java.lang.String username,
java.lang.String wksname,
byte[] sessKey,
int flags)
Build a type 3 message
|
java.lang.String |
getDomain()
Return the domain name
|
int |
getFlags()
Return the flags value
|
byte[] |
getLMHash()
Return the LM password hash
|
int |
getLMHashLength()
Return the length of the LM hash
|
byte[] |
getNTLMHash()
Return the NTLM password hash
|
int |
getNTLMHashLength()
Return the length of the NTLM hash
|
byte[] |
getSessionKey()
Return the session key, or null if the session key is not present
|
java.lang.String |
getUserName()
Return the user name
|
java.lang.String |
getWorkstation()
Return the workstation name
|
boolean |
hasSessionKey()
Determine if the session key has been specified
|
protected void |
setFlags(int flags)
Set the message flags
|
java.lang.String |
toString()
Return the type 3 message as a string
|
copyFrom, getByteOffset, getBytes, getByteValue, getIntValue, getLength, getRawBytes, getRawString, getShortValue, getStringAllocatedLength, getStringLength, getStringOffset, getStringValue, hasFlag, initializeHeader, isMessageType, isNTLMType, isNTLMType, setByteValue, setIntValue, setLength, setMessageType, setRawBytes, setRawInts, setRawString, setShortValue, setStringValue, zeroBytes
public static final int MinimalMessageLength
public static final int OffsetLMResponse
public static final int OffsetNTLMResponse
public static final int OffsetDomain
public static final int OffsetUserName
public static final int OffsetWorkstationName
public static final int OffsetDataMinimum
public static final int OffsetSessionKey
public static final int OffsetFlags
public static final int OffsetData
public Type3NTLMMessage()
public Type3NTLMMessage(byte[] buf)
buf
- byte[]public Type3NTLMMessage(byte[] buf, int offset, int len, boolean unicode)
buf
- byte[]offset
- intlen
- intunicode
- booleanpublic int getFlags()
getFlags
in class NTLMMessage
public final int getLMHashLength()
public final byte[] getLMHash()
public final int getNTLMHashLength()
public final byte[] getNTLMHash()
public final java.lang.String getDomain()
public final java.lang.String getUserName()
public final java.lang.String getWorkstation()
public final boolean hasSessionKey()
public final byte[] getSessionKey()
public final void buildType3(byte[] lmHash, byte[] ntlmHash, java.lang.String domain, java.lang.String username, java.lang.String wksname, byte[] sessKey, int flags)
lmHash
- byte[]ntlmHash
- byte[]domain
- Stringusername
- Stringwksname
- StringsessKey
- byte[]flags
- intprotected void setFlags(int flags)
setFlags
in class NTLMMessage
flags
- intpublic java.lang.String toString()
toString
in class java.lang.Object
Copyright © 2005 - 2010 Alfresco Software, Inc. All Rights Reserved.