public class Type2NTLMMessage extends NTLMMessage implements Serializable
Modifier and Type | Field and Description |
---|---|
static int |
MinimalMessageLength |
static int |
OffsetChallenge |
static int |
OffsetContext |
static int |
OffsetFlags |
static int |
OffsetTarget |
static int |
OffsetTargetInfo |
BufferHeaderLen, OffsetSignature, OffsetType
Constructor and Description |
---|
Type2NTLMMessage()
Default constructor
|
Type2NTLMMessage(byte[] buf)
Class constructor
|
Type2NTLMMessage(byte[] buf,
int offset,
int len)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
buildType2(int flags,
String target,
byte[] challenge,
int[] ctx,
List tList)
Build a type 2 message
|
byte[] |
getChallenge()
Return the challenge
|
int[] |
getContext()
Return the context values
|
int |
getFlags()
Return the flags value
|
String |
getTarget()
Return the target name
|
List |
getTargetInformation()
Return the target information
|
boolean |
hasContext()
Check if the optional context field is present
|
boolean |
hasTarget()
Check if the target name has been set
|
boolean |
hasTargetInformation()
Check if target information is present
|
protected void |
setFlags(int flags)
Set the message flags
|
String |
toString()
Return the type 2 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 OffsetTarget
public static final int OffsetFlags
public static final int OffsetChallenge
public static final int OffsetContext
public static final int OffsetTargetInfo
public Type2NTLMMessage()
public Type2NTLMMessage(byte[] buf)
buf
- byte[]public Type2NTLMMessage(byte[] buf, int offset, int len)
buf
- byte[]offset
- intlen
- intpublic int getFlags()
getFlags
in class NTLMMessage
public final boolean hasTarget()
public final String getTarget()
public final byte[] getChallenge()
public final boolean hasContext()
public final int[] getContext()
public final boolean hasTargetInformation()
public final List getTargetInformation()
public final void buildType2(int flags, String target, byte[] challenge, int[] ctx, List tList)
flags
- inttarget
- Stringchallenge
- byte[]ctx
- byte[]tList
- Listprotected void setFlags(int flags)
setFlags
in class NTLMMessage
flags
- intCopyright © 2005–2018 Alfresco Software. All rights reserved.