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.Loggerprivate List<com.hierynomus.asn1.types.primitive.ASN1ObjectIdentifier> private byte[]private SecurityProviderprivate AtomicIntegerprivate 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) voidprivate byte[]sign(byte[] signKey, int sequenceNumber) booleansupports(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:
authenticatein 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:
initin interfaceAuthenticator
-
supports
- Specified by:
supportsin interfaceAuthenticator
-