Package com.hierynomus.smbj.auth
Class NtlmSealer
java.lang.Object
com.hierynomus.smbj.auth.NtlmSealer
- All Implemented Interfaces:
Authenticator
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate static final byte[]
private static final byte[]
private static final org.slf4j.Logger
private List
<com.hierynomus.asn1.types.primitive.ASN1ObjectIdentifier> private byte[]
private SecurityProvider
private AtomicInteger
private byte[]
private NtlmAuthenticator
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(AuthenticationContext context, byte[] gssToken, ConnectionContext connectionContext) private byte[]
private byte[]
deriveSealingKey
(byte[] sessionKey, Set<NtlmNegotiateFlag> negotiateFlags, WindowsVersion windowsVersion) private byte[]
deriveSigningKey
(byte[] sessionKey, Set<NtlmNegotiateFlag> negotiateFlags) void
private byte[]
sign
(byte[] signKey, int sequenceNumber) boolean
supports
(AuthenticationContext context) private byte[]
uint32
(int value)
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
C2S_SIGN_CONSTANT
private static final byte[] C2S_SIGN_CONSTANT -
C2S_SEAL_CONSTANT
private static final byte[] C2S_SEAL_CONSTANT -
wrapped
-
securityProvider
-
signKey
private byte[] signKey -
sealKey
private byte[] sealKey -
sequenceNumber
-
mechTypes
-
-
Constructor Details
-
NtlmSealer
-
-
Method Details
-
authenticate
public AuthenticateResponse authenticate(AuthenticationContext context, byte[] gssToken, ConnectionContext connectionContext) throws IOException - Specified by:
authenticate
in interfaceAuthenticator
- Throws:
IOException
-
sign
- Throws:
IOException
-
uint32
private byte[] uint32(int value) -
derBytes
private byte[] derBytes(List<com.hierynomus.asn1.types.primitive.ASN1ObjectIdentifier> mechTypes) throws IOException - Throws:
IOException
-
deriveSigningKey
-
deriveSealingKey
private byte[] deriveSealingKey(byte[] sessionKey, Set<NtlmNegotiateFlag> negotiateFlags, WindowsVersion windowsVersion) -
init
- Specified by:
init
in interfaceAuthenticator
-
supports
- Specified by:
supports
in interfaceAuthenticator
-