public class Type1NTLMMessage extends NTLMMessage
Modifier and Type | Field and Description |
---|---|
static int |
MinimalMessageLength |
static int |
OffsetData |
static int |
OffsetFlags |
BufferHeaderLen, OffsetSignature, OffsetType
Constructor and Description |
---|
Type1NTLMMessage()
Default constructor
|
Type1NTLMMessage(byte[] buf)
Class constructor
|
Type1NTLMMessage(byte[] buf,
int offset,
int len)
Class constructor
|
Modifier and Type | Method and Description |
---|---|
void |
buildType1(int flags,
String domain,
String workstation)
Build a type 1 message
|
String |
getDomain()
Return the domain name
|
int |
getFlags()
Return the flags value
|
String |
getWorkstation()
Return the workstation name
|
boolean |
hasDomain()
Check if the domain security buffer is included
|
boolean |
hasWorkstation()
Check if the workstation security buffer is included
|
protected void |
setFlags(int flags)
Set the message flags
|
String |
toString()
Return the type 1 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 OffsetFlags
public static final int OffsetData
public Type1NTLMMessage()
public Type1NTLMMessage(byte[] buf)
buf
- byte[]public Type1NTLMMessage(byte[] buf, int offset, int len)
buf
- byte[]offset
- intlen
- intpublic int getFlags()
getFlags
in class NTLMMessage
public final boolean hasDomain()
public final String getDomain()
public final boolean hasWorkstation()
public final String getWorkstation()
public final void buildType1(int flags, String domain, String workstation)
flags
- intdomain
- Stringworkstation
- Stringprotected void setFlags(int flags)
setFlags
in class NTLMMessage
flags
- intCopyright © 2005–2017 Alfresco Software. All rights reserved.