Class NTLMEngineImpl.Type3Message
java.lang.Object
org.apache.hc.client5.http.impl.auth.NTLMEngineImpl.NTLMMessage
org.apache.hc.client5.http.impl.auth.NTLMEngineImpl.Type3Message
- Enclosing class:
NTLMEngineImpl
Type 3 message assembly class
-
Field Summary
FieldsModifier and TypeFieldDescription(package private) final boolean
(package private) final byte[]
(package private) final byte[]
(package private) final byte[]
(package private) byte[]
(package private) byte[]
(package private) final byte[]
(package private) final byte[]
(package private) final int
(package private) final byte[]
(package private) final byte[]
Fields inherited from class org.apache.hc.client5.http.impl.auth.NTLMEngineImpl.NTLMMessage
currentOutputPosition, messageContents
-
Constructor Summary
ConstructorsConstructorDescriptionType3Message
(String domain, String host, String user, char[] password, byte[] nonce, int type2Flags, String target, byte[] targetInformation) More primitive constructor: don't include cert or previous messages.Type3Message
(String domain, String host, String user, char[] password, byte[] nonce, int type2Flags, String target, byte[] targetInformation, Certificate peerServerCertificate, byte[] type1Message, byte[] type2Message) Constructor.Type3Message
(Random random, long currentTime, String domain, String host, String user, char[] password, byte[] nonce, int type2Flags, String target, byte[] targetInformation) More primitive constructor: don't include cert or previous messages.Type3Message
(Random random, long currentTime, String domain, String host, String user, char[] password, byte[] nonce, int type2Flags, String target, byte[] targetInformation, Certificate peerServerCertificate, byte[] type1Message, byte[] type2Message) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionprivate byte[]
addGssMicAvsToTargetInfo
(byte[] originalTargetInfo, Certificate peerServerCertificate) Add GSS channel binding hash and MIC flag to the targetInfo.(package private) void
Assemble the responsebyte[]
byte[]
Methods inherited from class org.apache.hc.client5.http.impl.auth.NTLMEngineImpl.NTLMMessage
addByte, addBytes, addULong, addUShort, getBytes, getMessageLength, getPreambleLength, getResponse, prepareResponse, readByte, readBytes, readSecurityBuffer, readULong, readUShort
-
Field Details
-
type1Message
final byte[] type1Message -
type2Message
final byte[] type2Message -
type2Flags
final int type2Flags -
domainBytes
final byte[] domainBytes -
hostBytes
final byte[] hostBytes -
userBytes
final byte[] userBytes -
lmResp
byte[] lmResp -
ntResp
byte[] ntResp -
sessionKey
final byte[] sessionKey -
exportedSessionKey
final byte[] exportedSessionKey -
computeMic
final boolean computeMic
-
-
Constructor Details
-
Type3Message
Type3Message(String domain, String host, String user, char[] password, byte[] nonce, int type2Flags, String target, byte[] targetInformation) throws NTLMEngineException More primitive constructor: don't include cert or previous messages.- Throws:
NTLMEngineException
-
Type3Message
Type3Message(Random random, long currentTime, String domain, String host, String user, char[] password, byte[] nonce, int type2Flags, String target, byte[] targetInformation) throws NTLMEngineException More primitive constructor: don't include cert or previous messages.- Throws:
NTLMEngineException
-
Type3Message
Type3Message(String domain, String host, String user, char[] password, byte[] nonce, int type2Flags, String target, byte[] targetInformation, Certificate peerServerCertificate, byte[] type1Message, byte[] type2Message) throws NTLMEngineException Constructor. Pass the arguments we will need- Throws:
NTLMEngineException
-
Type3Message
Type3Message(Random random, long currentTime, String domain, String host, String user, char[] password, byte[] nonce, int type2Flags, String target, byte[] targetInformation, Certificate peerServerCertificate, byte[] type1Message, byte[] type2Message) throws NTLMEngineException Constructor. Pass the arguments we will need- Throws:
NTLMEngineException
-
-
Method Details
-
getEncryptedRandomSessionKey
public byte[] getEncryptedRandomSessionKey() -
getExportedSessionKey
public byte[] getExportedSessionKey() -
buildMessage
void buildMessage()Assemble the response- Overrides:
buildMessage
in classNTLMEngineImpl.NTLMMessage
-
addGssMicAvsToTargetInfo
private byte[] addGssMicAvsToTargetInfo(byte[] originalTargetInfo, Certificate peerServerCertificate) throws NTLMEngineException Add GSS channel binding hash and MIC flag to the targetInfo. Looks like this is needed if we want to use exported session key for GSS wrapping.- Throws:
NTLMEngineException
-