public class CRAMMD5HashedSaslClient extends Object implements SaslClient
CRAMMD5HashedSaslClient merely wraps an instance of a CRAM-MD5 SASL client delegating
all method calls to it, except getMechanismName() which returns "CRAM-MD5-HASHED".
This mechanism must be used with UsernameHashedPasswordCallbackHandler which is responsible
for the additional hash of the password.| Constructor and Description |
|---|
CRAMMD5HashedSaslClient(String authorizationId,
String protocol,
String serverName,
Map<String,?> props,
CallbackHandler cbh) |
| Modifier and Type | Method and Description |
|---|---|
void |
dispose() |
byte[] |
evaluateChallenge(byte[] challenge) |
String |
getMechanismName() |
Object |
getNegotiatedProperty(String propName) |
boolean |
hasInitialResponse() |
boolean |
isComplete() |
byte[] |
unwrap(byte[] incoming,
int offset,
int len) |
byte[] |
wrap(byte[] outgoing,
int offset,
int len) |
public CRAMMD5HashedSaslClient(String authorizationId, String protocol, String serverName, Map<String,?> props, CallbackHandler cbh) throws SaslException
SaslExceptionpublic void dispose()
throws SaslException
dispose in interface SaslClientSaslExceptionpublic String getMechanismName()
getMechanismName in interface SaslClientpublic byte[] evaluateChallenge(byte[] challenge)
throws SaslException
evaluateChallenge in interface SaslClientSaslExceptionpublic Object getNegotiatedProperty(String propName)
getNegotiatedProperty in interface SaslClientpublic boolean hasInitialResponse()
hasInitialResponse in interface SaslClientpublic boolean isComplete()
isComplete in interface SaslClientpublic byte[] unwrap(byte[] incoming,
int offset,
int len)
throws SaslException
unwrap in interface SaslClientSaslExceptionpublic byte[] wrap(byte[] outgoing,
int offset,
int len)
throws SaslException
wrap in interface SaslClientSaslExceptionCopyright © 2006–2019 The Apache Software Foundation. All rights reserved.