| java.lang.Object jcifs.ntlmssp.NtlmMessage jcifs.ntlmssp.Type3Message
Type3Message | public class Type3Message extends NtlmMessage (Code) | | Represents an NTLMSSP Type-3 message.
|
Constructor Summary | |
public | Type3Message() Creates a Type-3 message using default values from the current
environment. | public | Type3Message(Type2Message type2) Creates a Type-3 message in response to the given Type-2 message
using default values from the current environment. | public | Type3Message(Type2Message type2, String password, String domain, String user, String workstation) Creates a Type-3 message in response to the given Type-2 message. | public | Type3Message(int flags, byte[] lmResponse, byte[] ntResponse, String domain, String user, String workstation) Creates a Type-3 message with the specified parameters. | public | Type3Message(byte[] material) Creates a Type-3 message using the given raw Type-3 material. |
Method Summary | |
public static String | getDefaultDomain() Returns the default domain from the current environment. | public static int | getDefaultFlags() Returns the default flags for a generic Type-3 message in the
current environment. | public static int | getDefaultFlags(Type2Message type2) Returns the default flags for a Type-3 message created in response
to the given Type-2 message in the current environment. | public static String | getDefaultPassword() Returns the default password from the current environment. | public static String | getDefaultUser() Returns the default user from the current environment. | public static String | getDefaultWorkstation() Returns the default workstation from the current environment. | public String | getDomain() Returns the domain in which the user has an account. | public byte[] | getLMResponse() Returns the LanManager/LMv2 response. | public static byte[] | getLMResponse(Type2Message type2, String password) Constructs the LanManager response to the given Type-2 message using
the supplied password.
Parameters: type2 - The Type-2 message. Parameters: password - The password. | public static byte[] | getLMv2Response(Type2Message type2, String domain, String user, String password, byte[] clientChallenge) | public byte[] | getNTResponse() Returns the NT/NTLMv2 response. | public static byte[] | getNTResponse(Type2Message type2, String password) Constructs the NT response to the given Type-2 message using
the supplied password.
Parameters: type2 - The Type-2 message. Parameters: password - The password. | public byte[] | getSessionKey() Returns the session key. | public String | getUser() Returns the username for the authenticating user. | public String | getWorkstation() Returns the workstation from which authentication is being performed. | public void | setDomain(String domain) Sets the domain for this message. | public void | setLMResponse(byte[] lmResponse) Sets the LanManager/LMv2 response for this message. | public void | setNTResponse(byte[] ntResponse) Sets the NT/NTLMv2 response for this message. | public void | setSessionKey(byte[] sessionKey) Sets the session key. | public void | setUser(String user) Sets the user for this message. | public void | setWorkstation(String workstation) Sets the workstation for this message. | public byte[] | toByteArray() | public String | toString() |
Type3Message | public Type3Message()(Code) | | Creates a Type-3 message using default values from the current
environment.
|
Type3Message | public Type3Message(Type2Message type2)(Code) | | Creates a Type-3 message in response to the given Type-2 message
using default values from the current environment.
Parameters: type2 - The Type-2 message which this represents a response to. |
Type3Message | public Type3Message(Type2Message type2, String password, String domain, String user, String workstation)(Code) | | Creates a Type-3 message in response to the given Type-2 message.
Parameters: type2 - The Type-2 message which this represents a response to. Parameters: password - The password to use when constructing the response. Parameters: domain - The domain in which the user has an account. Parameters: user - The username for the authenticating user. Parameters: workstation - The workstation from which authentication istaking place. |
Type3Message | public Type3Message(int flags, byte[] lmResponse, byte[] ntResponse, String domain, String user, String workstation)(Code) | | Creates a Type-3 message with the specified parameters.
Parameters: flags - The flags to apply to this message. Parameters: lmResponse - The LanManager/LMv2 response. Parameters: ntResponse - The NT/NTLMv2 response. Parameters: domain - The domain in which the user has an account. Parameters: user - The username for the authenticating user. Parameters: workstation - The workstation from which authentication istaking place. |
Type3Message | public Type3Message(byte[] material) throws IOException(Code) | | Creates a Type-3 message using the given raw Type-3 material.
Parameters: material - The raw Type-3 material used to construct this message. throws: IOException - If an error occurs while parsing the material. |
getDefaultDomain | public static String getDefaultDomain()(Code) | | Returns the default domain from the current environment.
The default domain. |
getDefaultFlags | public static int getDefaultFlags()(Code) | | Returns the default flags for a generic Type-3 message in the
current environment.
An int containing the default flags. |
getDefaultFlags | public static int getDefaultFlags(Type2Message type2)(Code) | | Returns the default flags for a Type-3 message created in response
to the given Type-2 message in the current environment.
An int containing the default flags. |
getDefaultPassword | public static String getDefaultPassword()(Code) | | Returns the default password from the current environment.
The default password. |
getDefaultUser | public static String getDefaultUser()(Code) | | Returns the default user from the current environment.
The default user. |
getDefaultWorkstation | public static String getDefaultWorkstation()(Code) | | Returns the default workstation from the current environment.
The default workstation. |
getDomain | public String getDomain()(Code) | | Returns the domain in which the user has an account.
A String containing the domain for the user. |
getLMResponse | public byte[] getLMResponse()(Code) | | Returns the LanManager/LMv2 response.
A byte[] containing the LanManager response. |
getLMResponse | public static byte[] getLMResponse(Type2Message type2, String password)(Code) | | Constructs the LanManager response to the given Type-2 message using
the supplied password.
Parameters: type2 - The Type-2 message. Parameters: password - The password. A byte[] containing the LanManager response. |
getNTResponse | public byte[] getNTResponse()(Code) | | Returns the NT/NTLMv2 response.
A byte[] containing the NT/NTLMv2 response. |
getNTResponse | public static byte[] getNTResponse(Type2Message type2, String password)(Code) | | Constructs the NT response to the given Type-2 message using
the supplied password.
Parameters: type2 - The Type-2 message. Parameters: password - The password. A byte[] containing the NT response. |
getSessionKey | public byte[] getSessionKey()(Code) | | Returns the session key.
A byte[] containing the session key. |
getUser | public String getUser()(Code) | | Returns the username for the authenticating user.
A String containing the user for this message. |
getWorkstation | public String getWorkstation()(Code) | | Returns the workstation from which authentication is being performed.
A String containing the workstation. |
setDomain | public void setDomain(String domain)(Code) | | Sets the domain for this message.
Parameters: domain - The domain. |
setLMResponse | public void setLMResponse(byte[] lmResponse)(Code) | | Sets the LanManager/LMv2 response for this message.
Parameters: lmResponse - The LanManager response. |
setNTResponse | public void setNTResponse(byte[] ntResponse)(Code) | | Sets the NT/NTLMv2 response for this message.
Parameters: ntResponse - The NT/NTLMv2 response. |
setSessionKey | public void setSessionKey(byte[] sessionKey)(Code) | | Sets the session key.
Parameters: sessionKey - The session key. |
setUser | public void setUser(String user)(Code) | | Sets the user for this message.
Parameters: user - The user. |
setWorkstation | public void setWorkstation(String workstation)(Code) | | Sets the workstation for this message.
Parameters: workstation - The workstation. |
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)
|
|
|