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
static class NTLMEngineImpl.Type3Message extends NTLMEngineImpl.NTLMMessage
Type 3 message assembly class
-
-
Field Summary
Fields Modifier and Type Field Description protected booleancomputeMicprotected byte[]domainBytesprotected byte[]exportedSessionKeyprotected byte[]hostBytesprotected byte[]lmRespprotected byte[]ntRespprotected byte[]sessionKeyprotected byte[]type1Messageprotected inttype2Flagsprotected byte[]type2Messageprotected byte[]userBytes-
Fields inherited from class org.apache.http.impl.auth.NTLMEngineImpl.NTLMMessage
currentOutputPosition, messageContents
-
-
Constructor Summary
Constructors Constructor Description Type3Message(java.lang.String domain, java.lang.String host, java.lang.String user, java.lang.String password, byte[] nonce, int type2Flags, java.lang.String target, byte[] targetInformation)More primitive constructor: don't include cert or previous messages.Type3Message(java.lang.String domain, java.lang.String host, java.lang.String user, java.lang.String password, byte[] nonce, int type2Flags, java.lang.String target, byte[] targetInformation, java.security.cert.Certificate peerServerCertificate, byte[] type1Message, byte[] type2Message)Constructor.Type3Message(java.util.Random random, long currentTime, java.lang.String domain, java.lang.String host, java.lang.String user, java.lang.String password, byte[] nonce, int type2Flags, java.lang.String target, byte[] targetInformation)More primitive constructor: don't include cert or previous messages.Type3Message(java.util.Random random, long currentTime, java.lang.String domain, java.lang.String host, java.lang.String user, java.lang.String password, byte[] nonce, int type2Flags, java.lang.String target, byte[] targetInformation, java.security.cert.Certificate peerServerCertificate, byte[] type1Message, byte[] type2Message)Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description private byte[]addGssMicAvsToTargetInfo(byte[] originalTargetInfo, java.security.cert.Certificate peerServerCertificate)Add GSS channel binding hash and MIC flag to the targetInfo.protected voidbuildMessage()Assemble the responsebyte[]getEncryptedRandomSessionKey()byte[]getExportedSessionKey()-
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 Detail
-
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 Detail
-
Type3Message
Type3Message(java.lang.String domain, java.lang.String host, java.lang.String user, java.lang.String password, byte[] nonce, int type2Flags, java.lang.String target, byte[] targetInformation) throws NTLMEngineExceptionMore primitive constructor: don't include cert or previous messages.- Throws:
NTLMEngineException
-
Type3Message
Type3Message(java.util.Random random, long currentTime, java.lang.String domain, java.lang.String host, java.lang.String user, java.lang.String password, byte[] nonce, int type2Flags, java.lang.String target, byte[] targetInformation) throws NTLMEngineExceptionMore primitive constructor: don't include cert or previous messages.- Throws:
NTLMEngineException
-
Type3Message
Type3Message(java.lang.String domain, java.lang.String host, java.lang.String user, java.lang.String password, byte[] nonce, int type2Flags, java.lang.String target, byte[] targetInformation, java.security.cert.Certificate peerServerCertificate, byte[] type1Message, byte[] type2Message) throws NTLMEngineExceptionConstructor. Pass the arguments we will need- Throws:
NTLMEngineException
-
Type3Message
Type3Message(java.util.Random random, long currentTime, java.lang.String domain, java.lang.String host, java.lang.String user, java.lang.String password, byte[] nonce, int type2Flags, java.lang.String target, byte[] targetInformation, java.security.cert.Certificate peerServerCertificate, byte[] type1Message, byte[] type2Message) throws NTLMEngineExceptionConstructor. Pass the arguments we will need- Throws:
NTLMEngineException
-
-
Method Detail
-
getEncryptedRandomSessionKey
public byte[] getEncryptedRandomSessionKey()
-
getExportedSessionKey
public byte[] getExportedSessionKey()
-
buildMessage
protected void buildMessage()
Assemble the response- Overrides:
buildMessagein classNTLMEngineImpl.NTLMMessage
-
addGssMicAvsToTargetInfo
private byte[] addGssMicAvsToTargetInfo(byte[] originalTargetInfo, java.security.cert.Certificate peerServerCertificate) throws NTLMEngineExceptionAdd 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
-
-