public final class ScramClient extends Object implements SaslClient
This class is not thread-safe.
| Constructor and Description |
|---|
ScramClient(String hashAlgorithm,
String authorizationId,
CallbackHandler callbackHandler) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
byte[] |
evaluateChallenge(byte[] challenge) |
String |
getMechanismName()
Gets the mechanism name, i.e "SCRAM-" + the hash algorithm name.
|
Object |
getNegotiatedProperty(String propName) |
boolean |
hasInitialResponse() |
boolean |
isComplete() |
String |
toString() |
byte[] |
unwrap(byte[] incoming,
int offset,
int len) |
byte[] |
wrap(byte[] outgoing,
int offset,
int len) |
equals, getClass, hashCode, notify, notifyAll, wait, wait, waitdispose, getMechanismName, getNegotiatedProperty, isComplete, unwrap, wrappublic ScramClient(String hashAlgorithm, String authorizationId, CallbackHandler callbackHandler)
public final boolean hasInitialResponse()
hasInitialResponse in interface SaslClientpublic final byte[] evaluateChallenge(byte[] challenge)
throws SaslException
evaluateChallenge in interface SaslClientSaslExceptionpublic final String getMechanismName()
public final boolean isComplete()
public final byte[] unwrap(byte[] incoming,
int offset,
int len)
throws SaslException
SaslExceptionpublic final byte[] wrap(byte[] outgoing,
int offset,
int len)
throws SaslException
SaslExceptionpublic final void dispose()
Copyright © 2014–2018 XMPP.rocks. All rights reserved.