Class AnonymousSaslClient
- java.lang.Object
-
- org.wildfly.security.sasl.util.AbstractSaslParticipant
-
- org.wildfly.security.sasl.util.AbstractSaslClient
-
- org.wildfly.security.sasl.anonymous.AnonymousSaslClient
-
- All Implemented Interfaces:
SaslClient
,SaslWrapper
public final class AnonymousSaslClient extends AbstractSaslClient
A client 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 AnonymousSaslClient(String protocol, String serverName, CallbackHandler callbackHandler, String authorizationId)
Construct a new instance.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected byte[]
evaluateMessage(int state, byte[] message)
Object
getNegotiatedProperty(String propName)
Get a property negotiated between this participant and the other.-
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslClient
evaluateChallenge, getAuthorizationId, hasInitialResponse
-
Methods inherited from class org.wildfly.security.sasl.util.AbstractSaslParticipant
assertComplete, dispose, evaluateMessage, getCallbackHandler, getIntProperty, getMechanismName, 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
dispose, getMechanismName, isComplete, unwrap, wrap
-
-
-
-
Field Detail
-
INITIAL_STATE
private static final int INITIAL_STATE
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
AnonymousSaslClient
AnonymousSaslClient(String protocol, String serverName, CallbackHandler callbackHandler, String authorizationId)
Construct a new instance.- Parameters:
protocol
- the protocolserverName
- the server namecallbackHandler
- the callback handler to use for authenticationauthorizationId
- the possiblynull
protocol-dependent name used for authorization
-
-
Method Detail
-
evaluateMessage
protected byte[] evaluateMessage(int state, byte[] message) throws SaslException
- Specified by:
evaluateMessage
in classAbstractSaslParticipant
- Throws:
SaslException
-
getNegotiatedProperty
public Object getNegotiatedProperty(String propName)
Description copied from class:AbstractSaslParticipant
Get a property negotiated between this participant and the other.- Specified by:
getNegotiatedProperty
in interfaceSaslClient
- Overrides:
getNegotiatedProperty
in classAbstractSaslParticipant
- Parameters:
propName
- the property name- Returns:
- the property value or
null
if not defined
-
-