public abstract class AbstractSaslClient extends AbstractSaslParticipant implements SaslClient
NO_BYTES| Modifier | Constructor and Description |
|---|---|
protected |
AbstractSaslClient(String mechanismName,
String protocol,
String serverName,
CallbackHandler callbackHandler,
String authorizationId,
boolean hasInitialResponse)
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.
|
dispose, getCallbackHandler, getContext, getMechanismName, getNegotiatedProperty, getProtocol, getServerName, getWrapper, handleCallbacks, init, isComplete, setWrapper, tryHandleCallbacks, unwrap, wrapclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitdispose, getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrapprotected 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 SaslClientchallenge - 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 SaslClienttrue if this mechanism has an initial responseprotected String getAuthorizationId()
Copyright © 2018 JBoss by Red Hat. All rights reserved.