jcifs.ntlmssp
public class Type2Message extends NtlmMessage
Constructor Summary | |
---|---|
Type2Message()
Creates a Type-2 message using default values from the current
environment. | |
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, String target)
Creates a Type-2 message in response to the given Type-1 message.
| |
Type2Message(int flags, byte[] challenge, String target)
Creates a Type-2 message with the specified parameters.
| |
Type2Message(byte[] material)
Creates a Type-2 message using the given raw Type-2 material.
|
Method Summary | |
---|---|
byte[] | getChallenge()
Returns the challenge for this message.
|
byte[] | getContext()
Returns the local security context.
|
static 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() |
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(String target)
Sets the authentication target.
|
void | setTargetInformation(byte[] targetInformation)
Sets the target information block.
|
byte[] | toByteArray() |
String | toString() |
Parameters: type1 The Type-1 message which this represents a response to.
Parameters: type1 The Type-1 message which this represents a response to. challenge The challenge from the domain controller/server. target The authentication target.
Parameters: flags The flags to apply to this message. challenge The challenge from the domain controller/server. target The authentication target.
Parameters: material The raw Type-2 material used to construct this message.
Throws: IOException If an error occurs while parsing the material.
Returns: A byte[]
containing the challenge.
Returns: A byte[]
containing the local security
context. This is used by the client to negotiate local
authentication.
Returns: A String
containing the domain.
Returns: An int
containing the default flags.
Returns: An int
containing the default flags.
Returns: A String
containing the authentication target.
Returns: A byte[]
containing the target information block.
The target information block is used by the client to create an
NTLMv2 response.
Parameters: challenge The challenge from the domain controller/server.
Parameters: context The local security context.
Parameters: target The authentication target.
Parameters: targetInformation The target information block.