| java.lang.Object jcifs.ntlmssp.NtlmMessage jcifs.ntlmssp.Type2Message
Type2Message | public class Type2Message extends NtlmMessage (Code) | | Represents an NTLMSSP Type-2 message.
|
Constructor Summary | |
public | Type2Message() Creates a Type-2 message using default values from the current
environment. | public | Type2Message(Type1Message type1) Creates a Type-2 message in response to the given Type-1 message
using default values from the current environment. | public | Type2Message(Type1Message type1, byte[] challenge, String target) Creates a Type-2 message in response to the given Type-1 message. | public | Type2Message(int flags, byte[] challenge, String target) Creates a Type-2 message with the specified parameters. | public | Type2Message(byte[] material) Creates a Type-2 message using the given raw Type-2 material. |
Type2Message | public Type2Message()(Code) | | Creates a Type-2 message using default values from the current
environment.
|
Type2Message | public Type2Message(Type1Message type1)(Code) | | Creates a Type-2 message in response to the given Type-1 message
using default values from the current environment.
Parameters: type1 - The Type-1 message which this represents a response to. |
Type2Message | public Type2Message(Type1Message type1, byte[] challenge, String target)(Code) | | Creates a Type-2 message in response to the given Type-1 message.
Parameters: type1 - The Type-1 message which this represents a response to. Parameters: challenge - The challenge from the domain controller/server. Parameters: target - The authentication target. |
Type2Message | public Type2Message(int flags, byte[] challenge, String target)(Code) | | Creates a Type-2 message with the specified parameters.
Parameters: flags - The flags to apply to this message. Parameters: challenge - The challenge from the domain controller/server. Parameters: target - The authentication target. |
Type2Message | public Type2Message(byte[] material) throws IOException(Code) | | Creates a Type-2 message using the given raw Type-2 material.
Parameters: material - The raw Type-2 material used to construct this message. throws: IOException - If an error occurs while parsing the material. |
getChallenge | public byte[] getChallenge()(Code) | | Returns the challenge for this message.
A byte[] containing the challenge. |
getContext | public byte[] getContext()(Code) | | Returns the local security context.
A byte[] containing the local securitycontext. This is used by the client to negotiate localauthentication. |
getDefaultDomain | public static String getDefaultDomain()(Code) | | Returns the default domain from the current environment.
A String containing the domain. |
getDefaultFlags | public static int getDefaultFlags()(Code) | | Returns the default flags for a generic Type-2 message in the
current environment.
An int containing the default flags. |
getDefaultFlags | public static int getDefaultFlags(Type1Message type1)(Code) | | Returns the default flags for a Type-2 message created in response
to the given Type-1 message in the current environment.
An int containing the default flags. |
getDefaultTargetInformation | public static byte[] getDefaultTargetInformation()(Code) | | |
getTarget | public String getTarget()(Code) | | Returns the authentication target.
A String containing the authentication target. |
getTargetInformation | public byte[] getTargetInformation()(Code) | | Returns the target information block.
A byte[] containing the target information block.The target information block is used by the client to create anNTLMv2 response. |
setChallenge | public void setChallenge(byte[] challenge)(Code) | | Sets the challenge for this message.
Parameters: challenge - The challenge from the domain controller/server. |
setContext | public void setContext(byte[] context)(Code) | | Sets the local security context. This is used by the client
to negotiate local authentication.
Parameters: context - The local security context. |
setTarget | public void setTarget(String target)(Code) | | Sets the authentication target.
Parameters: target - The authentication target. |
setTargetInformation | public void setTargetInformation(byte[] targetInformation)(Code) | | Sets the target information block.
The target information block is used by the client to create
an NTLMv2 response.
Parameters: targetInformation - The target information block. |
toByteArray | public byte[] toByteArray()(Code) | | |
Fields inherited from jcifs.ntlmssp.NtlmMessage | final protected static byte[] NTLMSSP_SIGNATURE(Code)(Java Doc)
|
Methods inherited from jcifs.ntlmssp.NtlmMessage | public boolean getFlag(int flag)(Code)(Java Doc) public int getFlags()(Code)(Java Doc) static String getOEMEncoding()(Code)(Java Doc) static byte[] readSecurityBuffer(byte[] src, int index)(Code)(Java Doc) static int readULong(byte[] src, int index)(Code)(Java Doc) static int readUShort(byte[] src, int index)(Code)(Java Doc) public void setFlag(int flag, boolean value)(Code)(Java Doc) public void setFlags(int flags)(Code)(Java Doc) abstract public byte[] toByteArray()(Code)(Java Doc) static void writeSecurityBuffer(byte[] dest, int offset, int bodyOffset, byte[] src)(Code)(Java Doc) static void writeULong(byte[] dest, int offset, int ulong)(Code)(Java Doc) static void writeUShort(byte[] dest, int offset, int ushort)(Code)(Java Doc)
|
|
|