Package org.wildfly.security.sasl.scram
Class ScramSaslClient
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractSaslParticipant
-
- org.wildfly.security.sasl.util.AbstractSaslClient
-
- org.wildfly.security.sasl.scram.ScramSaslClient
-
- All Implemented Interfaces:
SaslClient
,SaslWrapper
final class ScramSaslClient extends AbstractSaslClient
- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private ScramFinalClientMessage
finalResponse
private ScramInitialClientMessage
initialResponse
private ScramClient
scramClient
private static int
ST_NEW
private static int
ST_R1_SENT
private static int
ST_R2_SENT
-
Fields inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipant
COMPLETE_STATE, FAILED_STATE, NO_BYTES
-
Fields inherited from interface org.wildfly.security.sasl.util.SaslWrapper
IDENTITY
-
-
Constructor Summary
Constructors Constructor Description ScramSaslClient(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler, String authorizationId, ScramClient scramClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
dispose()
Dispose of this participant.protected byte[]
evaluateMessage(int state, byte[] challenge)
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslClient
evaluateChallenge, getAuthorizationId, hasInitialResponse
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipant
assertComplete, evaluateMessage, getCallbackHandler, getIntProperty, getMechanismName, getNegotiatedProperty, getProtocol, getServerName, getStringProperty, getWrapper, handleCallbacks, init, isComplete, negotiationComplete, setNegotiationState, setWrapper, tryHandleCallbacks, unwrap, wrap
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface javax.security.sasl.SaslClient
getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrap
-
-
-
-
Field Detail
-
ST_NEW
private static final int ST_NEW
- See Also:
- Constant Field Values
-
ST_R1_SENT
private static final int ST_R1_SENT
- See Also:
- Constant Field Values
-
ST_R2_SENT
private static final int ST_R2_SENT
- See Also:
- Constant Field Values
-
scramClient
private final ScramClient scramClient
-
initialResponse
private ScramInitialClientMessage initialResponse
-
finalResponse
private ScramFinalClientMessage finalResponse
-
-
Constructor Detail
-
ScramSaslClient
ScramSaslClient(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler, String authorizationId, ScramClient scramClient)
-
-
Method Detail
-
dispose
public void dispose() throws SaslException
Description copied from class:AbstractSaslParticipant
Dispose of this participant.- Specified by:
dispose
in interfaceSaslClient
- Overrides:
dispose
in classAbstractSaslParticipant
- Throws:
SaslException
- if disposal failed
-
evaluateMessage
protected byte[] evaluateMessage(int state, byte[] challenge) throws SaslException
- Specified by:
evaluateMessage
in classAbstractSaslParticipant
- Throws:
SaslException
-
-