Package org.wildfly.security.sasl.scram
Class ScramSaslServer
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractSaslParticipant
-
- org.wildfly.security.sasl.util.AbstractSaslServer
-
- org.wildfly.security.sasl.scram.ScramSaslServer
-
- All Implemented Interfaces:
SaslServer
,SaslWrapper
final class ScramSaslServer extends AbstractSaslServer
- Author:
- David M. Lloyd, Jan Kalina
-
-
Field Summary
Fields Modifier and Type Field Description private String
authorizationId
private ChannelBindingCallback
bindingCallback
private ScramInitialClientMessage
initialClientMessage
private ScramInitialServerResult
initialServerResult
private static int
S_FINAL_MESSAGE
private static int
S_FIRST_MESSAGE
private static int
S_NO_MESSAGE
private ScramServer
scramServer
-
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 ScramSaslServer(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler, ScramServer scramServer, ChannelBindingCallback bindingCallback)
-
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[] response)
String
getAuthorizationID()
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslServer
evaluateResponse
-
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.SaslServer
getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrap
-
-
-
-
Field Detail
-
S_NO_MESSAGE
private static final int S_NO_MESSAGE
- See Also:
- Constant Field Values
-
S_FIRST_MESSAGE
private static final int S_FIRST_MESSAGE
- See Also:
- Constant Field Values
-
S_FINAL_MESSAGE
private static final int S_FINAL_MESSAGE
- See Also:
- Constant Field Values
-
scramServer
private final ScramServer scramServer
-
bindingCallback
private final ChannelBindingCallback bindingCallback
-
authorizationId
private String authorizationId
-
initialServerResult
private ScramInitialServerResult initialServerResult
-
initialClientMessage
private ScramInitialClientMessage initialClientMessage
-
-
Constructor Detail
-
ScramSaslServer
ScramSaslServer(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler, ScramServer scramServer, ChannelBindingCallback bindingCallback)
-
-
Method Detail
-
getAuthorizationID
public String getAuthorizationID()
-
evaluateMessage
protected byte[] evaluateMessage(int state, byte[] response) throws SaslException
- Specified by:
evaluateMessage
in classAbstractSaslParticipant
- Throws:
SaslException
-
dispose
public void dispose() throws SaslException
Description copied from class:AbstractSaslParticipant
Dispose of this participant.- Specified by:
dispose
in interfaceSaslServer
- Overrides:
dispose
in classAbstractSaslParticipant
- Throws:
SaslException
- if disposal failed
-
-