public abstract class AbstractSaslClient extends AbstractSaslParticipant implements SaslClient
COMPLETE_STATE, FAILED_STATE, NO_BYTES
IDENTITY
Modifier | Constructor and Description |
---|---|
protected |
AbstractSaslClient(String mechanismName,
String protocol,
String serverName,
CallbackHandler callbackHandler,
String authorizationId,
boolean hasInitialResponse)
Deprecated.
|
protected |
AbstractSaslClient(String mechanismName,
String protocol,
String serverName,
CallbackHandler callbackHandler,
String authorizationId,
boolean hasInitialResponse,
org.wildfly.security._private.ElytronMessages log)
Construct a new instance.
|
Modifier and Type | Method and Description |
---|---|
byte[] |
evaluateChallenge(byte[] challenge)
Evaluate an authentication challenge received from the server.
|
protected String |
getAuthorizationId()
Get the specified authorization ID.
|
boolean |
hasInitialResponse()
Determines whether this mechanism has an optional initial response.
|
assertComplete, dispose, evaluateMessage, evaluateMessage, getCallbackHandler, getIntProperty, getMechanismName, getNegotiatedProperty, getProtocol, getServerName, getStringProperty, getWrapper, handleCallbacks, init, isComplete, negotiationComplete, setNegotiationState, setWrapper, tryHandleCallbacks, unwrap, wrap
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
dispose, getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrap
protected AbstractSaslClient(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler, String authorizationId, boolean hasInitialResponse, org.wildfly.security._private.ElytronMessages log)
mechanismName
- the SASL mechanism nameprotocol
- the protocolserverName
- the server namecallbackHandler
- the callback handler to use for authenticationauthorizationId
- the possibly null
protocol-dependent name used for authorizationhasInitialResponse
- true
if the mechanism supports an initial response, false
otherwiselog
- mechanism specific logger@Deprecated protected AbstractSaslClient(String mechanismName, String protocol, String serverName, CallbackHandler callbackHandler, String authorizationId, boolean hasInitialResponse)
mechanismName
- the SASL mechanism nameprotocol
- the protocolserverName
- the server namecallbackHandler
- the callback handler to use for authenticationauthorizationId
- the possibly null
protocol-dependent name used for authorizationhasInitialResponse
- true
if the mechanism supports an initial response, false
otherwisepublic byte[] evaluateChallenge(byte[] challenge) throws SaslException
evaluateChallenge
in interface SaslClient
challenge
- the authentication challengeSaslException
- if there is an error processing the server messagepublic boolean hasInitialResponse()
evaluateChallenge(byte[])
with an
empty array to get the initial response.hasInitialResponse
in interface SaslClient
true
if this mechanism has an initial responseprotected String getAuthorizationId()
Copyright © 2020 JBoss by Red Hat. All rights reserved.