Package com.hierynomus.smbj.auth
Class NtlmAuthenticator
java.lang.Object
com.hierynomus.smbj.auth.NtlmAuthenticator
- All Implemented Interfaces:
Authenticator
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
(package private) static enum
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate NtlmConfig
private NtlmV2Functions
private static final org.slf4j.Logger
private Set
<NtlmNegotiateFlag> private byte[]
private static final com.hierynomus.asn1.types.primitive.ASN1ObjectIdentifier
private Random
private SecurityProvider
private NtlmAuthenticator.State
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate
(AuthenticationContext context, byte[] gssToken, ConnectionContext connectionContext) private TargetInfo
createClientTargetInfo
(NtlmChallenge serverNtlmChallenge) private AuthenticateResponse
doAuthenticate
(AuthenticationContext context, NtlmChallenge serverNtlmChallenge, byte[] ntlmChallengeBytes) private AuthenticateResponse
doNegotiate
(AuthenticationContext context, byte[] gssToken) void
private SpnegoToken
negTokenInit
(NtlmNegotiate ntlmNegotiate) private SpnegoToken
negTokenTarg
(NtlmAuthenticate resp) boolean
supports
(AuthenticationContext context)
-
Field Details
-
logger
private static final org.slf4j.Logger logger -
NTLMSSP
private static final com.hierynomus.asn1.types.primitive.ASN1ObjectIdentifier NTLMSSP -
securityProvider
-
random
-
functions
-
config
-
state
-
negotiateFlags
-
negotiateMessage
private byte[] negotiateMessage
-
-
Constructor Details
-
NtlmAuthenticator
public NtlmAuthenticator()
-
-
Method Details
-
authenticate
public AuthenticateResponse authenticate(AuthenticationContext context, byte[] gssToken, ConnectionContext connectionContext) throws IOException - Specified by:
authenticate
in interfaceAuthenticator
- Throws:
IOException
-
doNegotiate
private AuthenticateResponse doNegotiate(AuthenticationContext context, byte[] gssToken) throws SpnegoException - Throws:
SpnegoException
-
doAuthenticate
private AuthenticateResponse doAuthenticate(AuthenticationContext context, NtlmChallenge serverNtlmChallenge, byte[] ntlmChallengeBytes) throws SpnegoException - Throws:
SpnegoException
-
createClientTargetInfo
-
negTokenInit
- Throws:
SpnegoException
-
negTokenTarg
- Throws:
SpnegoException
-
init
- Specified by:
init
in interfaceAuthenticator
-
supports
- Specified by:
supports
in interfaceAuthenticator
-