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 4505ANONYMOUSmechanism.- Author:
- David M. Lloyd
-
-
Field Summary
Fields Modifier and Type Field Description private static intINITIAL_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)ObjectgetNegotiatedProperty(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 possiblynullprotocol-dependent name used for authorization
-
-
Method Detail
-
evaluateMessage
protected byte[] evaluateMessage(int state, byte[] message) throws SaslException- Specified by:
evaluateMessagein classAbstractSaslParticipant- Throws:
SaslException
-
getNegotiatedProperty
public Object getNegotiatedProperty(String propName)
Description copied from class:AbstractSaslParticipantGet a property negotiated between this participant and the other.- Specified by:
getNegotiatedPropertyin interfaceSaslClient- Overrides:
getNegotiatedPropertyin classAbstractSaslParticipant- Parameters:
propName- the property name- Returns:
- the property value or
nullif not defined
-
-