|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object jcifs.ntlmssp.NtlmMessage jcifs.ntlmssp.Type2Message
Represents an NTLMSSP Type-2 message.
Field Summary |
Fields inherited from class jcifs.ntlmssp.NtlmMessage |
NTLMSSP_SIGNATURE |
Constructor Summary | |
Type2Message()
Creates a Type-2 message using default values from the current environment. |
|
Type2Message(byte[] material)
Creates a Type-2 message using the given raw Type-2 material. |
|
Type2Message(int flags,
byte[] challenge,
java.lang.String target)
Creates a Type-2 message with the specified parameters. |
|
Type2Message(Type1Message type1)
Creates a Type-2 message in response to the given Type-1 message using default values from the current environment. |
|
Type2Message(Type1Message type1,
byte[] challenge,
java.lang.String target)
Creates a Type-2 message in response to the given Type-1 message. |
Method Summary | |
byte[] |
getChallenge()
Returns the challenge for this message. |
byte[] |
getContext()
Returns the local security context. |
static java.lang.String |
getDefaultDomain()
Returns the default domain from the current environment. |
static int |
getDefaultFlags()
Returns the default flags for a generic Type-2 message in the current environment. |
static int |
getDefaultFlags(Type1Message type1)
Returns the default flags for a Type-2 message created in response to the given Type-1 message in the current environment. |
static byte[] |
getDefaultTargetInformation()
|
java.lang.String |
getTarget()
Returns the authentication target. |
byte[] |
getTargetInformation()
Returns the target information block. |
void |
setChallenge(byte[] challenge)
Sets the challenge for this message. |
void |
setContext(byte[] context)
Sets the local security context. |
void |
setTarget(java.lang.String target)
Sets the authentication target. |
void |
setTargetInformation(byte[] targetInformation)
Sets the target information block. |
byte[] |
toByteArray()
Returns the raw byte representation of this message. |
java.lang.String |
toString()
|
Methods inherited from class jcifs.ntlmssp.NtlmMessage |
getFlag, getFlags, setFlag, setFlags |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
public Type2Message()
public Type2Message(Type1Message type1)
type1
- The Type-1 message which this represents a response to.public Type2Message(Type1Message type1, byte[] challenge, java.lang.String target)
type1
- The Type-1 message which this represents a response to.challenge
- The challenge from the domain controller/server.target
- The authentication target.public Type2Message(int flags, byte[] challenge, java.lang.String target)
flags
- The flags to apply to this message.challenge
- The challenge from the domain controller/server.target
- The authentication target.public Type2Message(byte[] material) throws java.io.IOException
material
- The raw Type-2 material used to construct this message.
java.io.IOException
- If an error occurs while parsing the material.Method Detail |
public byte[] getChallenge()
byte[]
containing the challenge.public void setChallenge(byte[] challenge)
challenge
- The challenge from the domain controller/server.public java.lang.String getTarget()
String
containing the authentication target.public void setTarget(java.lang.String target)
target
- The authentication target.public byte[] getTargetInformation()
byte[]
containing the target information block.
The target information block is used by the client to create an
NTLMv2 response.public void setTargetInformation(byte[] targetInformation)
targetInformation
- The target information block.public byte[] getContext()
byte[]
containing the local security
context. This is used by the client to negotiate local
authentication.public void setContext(byte[] context)
context
- The local security context.public byte[] toByteArray()
NtlmMessage
toByteArray
in class NtlmMessage
byte[]
containing the raw message material.public java.lang.String toString()
public static int getDefaultFlags()
int
containing the default flags.public static int getDefaultFlags(Type1Message type1)
int
containing the default flags.public static java.lang.String getDefaultDomain()
String
containing the domain.public static byte[] getDefaultTargetInformation()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |