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 NtlmConfigprivate NtlmV2Functionsprivate static final org.slf4j.Loggerprivate Set<NtlmNegotiateFlag> private byte[]private static final com.hierynomus.asn1.types.primitive.ASN1ObjectIdentifierprivate Randomprivate SecurityProviderprivate NtlmAuthenticator.State -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionauthenticate(AuthenticationContext context, byte[] gssToken, ConnectionContext connectionContext) private TargetInfocreateClientTargetInfo(NtlmChallenge serverNtlmChallenge) private AuthenticateResponsedoAuthenticate(AuthenticationContext context, NtlmChallenge serverNtlmChallenge, byte[] ntlmChallengeBytes) private AuthenticateResponsedoNegotiate(AuthenticationContext context, byte[] gssToken) voidprivate SpnegoTokennegTokenInit(NtlmNegotiate ntlmNegotiate) private SpnegoTokennegTokenTarg(NtlmAuthenticate resp) booleansupports(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:
authenticatein 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:
initin interfaceAuthenticator
-
supports
- Specified by:
supportsin interfaceAuthenticator
-