Package rocks.xmpp.core.sasl.scram
Class ScramClient
- java.lang.Object
-
- rocks.xmpp.core.sasl.scram.ScramBase
-
- rocks.xmpp.core.sasl.scram.ScramClient
-
- All Implemented Interfaces:
SaslClient
public final class ScramClient extends ScramBase implements SaslClient
The client implementation of the SCRAM-SHA-1 SASL mechanism.This class is not thread-safe.
-
-
Constructor Summary
Constructors Constructor Description ScramClient(String hashAlgorithm, String authorizationId, CallbackHandler callbackHandler)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description byte[]evaluateChallenge(byte[] challenge)booleanhasInitialResponse()-
Methods inherited from class rocks.xmpp.core.sasl.scram.ScramBase
computeClientKey, computeSaltedPassword, computeServerKey, computeStoredKey, dispose, getMechanismName, getNegotiatedProperty, isComplete, toString, unwrap, wrap
-
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface javax.security.sasl.SaslClient
dispose, getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrap
-
-
-
-
Constructor Detail
-
ScramClient
public ScramClient(String hashAlgorithm, String authorizationId, CallbackHandler callbackHandler)
-
-
Method Detail
-
hasInitialResponse
public final boolean hasInitialResponse()
- Specified by:
hasInitialResponsein interfaceSaslClient
-
evaluateChallenge
public final byte[] evaluateChallenge(byte[] challenge) throws SaslException- Specified by:
evaluateChallengein interfaceSaslClient- Throws:
SaslException
-
-