Class AnonymousSaslServer
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractSaslParticipant
-
- org.wildfly.security.sasl.util.AbstractSaslServer
-
- org.wildfly.security.sasl.anonymous.AnonymousSaslServer
-
- All Implemented Interfaces:
SaslServer
,SaslWrapper
public final class AnonymousSaslServer extends AbstractSaslServer
A server implementation of the RFC 4505ANONYMOUS
mechanism.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private static int
INITIAL_STATE
-
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 AnonymousSaslServer(String protocol, String serverName, CallbackHandler callbackHandler)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
evaluateMessage(int state, byte[] message)
String
getAuthorizationID()
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslServer
evaluateResponse
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipant
assertComplete, dispose, 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
dispose, getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrap
-
-
-
-
Field Detail
-
INITIAL_STATE
private static final int INITIAL_STATE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AnonymousSaslServer
AnonymousSaslServer(String protocol, String serverName, CallbackHandler callbackHandler)
Construct a new instance.- Parameters:
protocol
- the protocolserverName
- the server namecallbackHandler
- the callback handler
-
-
Method Detail
-
getAuthorizationID
public String getAuthorizationID()
-
evaluateMessage
protected byte[] evaluateMessage(int state, byte[] message) throws SaslException
- Specified by:
evaluateMessage
in classAbstractSaslParticipant
- Throws:
SaslException
-
-