Package org.apache.http.impl.auth
Class NTLMEngineImpl.Type3Message
java.lang.Object
org.apache.http.impl.auth.NTLMEngineImpl.NTLMMessage
org.apache.http.impl.auth.NTLMEngineImpl.Type3Message
- Enclosing class:
- NTLMEngineImpl
Type 3 message assembly class
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected final boolean
protected final byte[]
protected final byte[]
protected final byte[]
protected byte[]
protected byte[]
protected final byte[]
protected final byte[]
protected final int
protected final byte[]
protected final byte[]
Fields inherited from class org.apache.http.impl.auth.NTLMEngineImpl.NTLMMessage
currentOutputPosition, messageContents
-
Constructor Summary
ConstructorsConstructorDescriptionType3Message
(String domain, String host, String user, String 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, String 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, String 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, String 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.protected void
Assemble the responsebyte[]
byte[]
Methods inherited from class org.apache.http.impl.auth.NTLMEngineImpl.NTLMMessage
addByte, addBytes, addULong, addUShort, getBytes, getMessageLength, getPreambleLength, getResponse, prepareResponse, readByte, readBytes, readSecurityBuffer, readULong, readUShort
-
Field Details
-
type1Message
protected final byte[] type1Message -
type2Message
protected final byte[] type2Message -
type2Flags
protected final int type2Flags -
domainBytes
protected final byte[] domainBytes -
hostBytes
protected final byte[] hostBytes -
userBytes
protected final byte[] userBytes -
lmResp
protected byte[] lmResp -
ntResp
protected byte[] ntResp -
sessionKey
protected final byte[] sessionKey -
exportedSessionKey
protected final byte[] exportedSessionKey -
computeMic
protected final boolean computeMic
-
-
Constructor Details
-
Type3Message
Type3Message(String domain, String host, String user, String 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, String 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, String 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, String 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
protected 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
-