public abstract class AbstractSaslSCRAM extends AbstractSasl
authorizedId, callbackHandler, complete, negotiatedProperty, props
Modifier | Constructor and Description |
---|---|
protected |
AbstractSaslSCRAM(String mechanismName,
String algorithm,
byte[] clientKey,
byte[] serverKey,
Map<? super String,?> props,
CallbackHandler callbackHandler) |
protected |
AbstractSaslSCRAM(String mechanismName,
String algorithm,
byte[] clientKey,
byte[] serverKey,
Map<? super String,?> props,
CallbackHandler callbackHandler,
String serverOnce) |
Modifier and Type | Method and Description |
---|---|
byte[] |
evaluateResponse(byte[] response) |
String |
getAuthorizationID() |
String |
getMechanismName() |
protected byte[] |
h(byte[] data) |
static byte[] |
hi(String algorithm,
byte[] password,
byte[] salt,
int iterations) |
protected static byte[] |
hmac(SecretKey key,
byte[] data) |
protected SecretKey |
key(byte[] key) |
static byte[] |
normalize(String str) |
protected byte[] |
processClientFirstMessage(byte[] data) |
protected byte[] |
processClientLastMessage(byte[] data) |
byte[] |
unwrap(byte[] incoming,
int offset,
int len) |
byte[] |
wrap(byte[] outgoing,
int offset,
int len) |
protected byte[] |
xor(byte[] a,
byte[] b) |
dispose, getNegotiatedProperty, handleCallbacks, isComplete, isEmpty, split
protected AbstractSaslSCRAM(String mechanismName, String algorithm, byte[] clientKey, byte[] serverKey, Map<? super String,?> props, CallbackHandler callbackHandler)
public static byte[] hi(String algorithm, byte[] password, byte[] salt, int iterations) throws InvalidKeyException, NoSuchAlgorithmException
protected static byte[] hmac(SecretKey key, byte[] data) throws NoSuchAlgorithmException, InvalidKeyException
public static byte[] normalize(String str)
public byte[] evaluateResponse(byte[] response) throws SaslException
SaslException
public String getAuthorizationID()
public String getMechanismName()
protected byte[] h(byte[] data) throws NoSuchAlgorithmException
NoSuchAlgorithmException
protected SecretKey key(byte[] key)
protected byte[] processClientFirstMessage(byte[] data) throws SaslException, InvalidKeyException, NoSuchAlgorithmException
protected byte[] processClientLastMessage(byte[] data) throws SaslException, InvalidKeyException, NoSuchAlgorithmException
public byte[] unwrap(byte[] incoming, int offset, int len) throws SaslException
SaslException
public byte[] wrap(byte[] outgoing, int offset, int len) throws SaslException
SaslException
protected byte[] xor(byte[] a, byte[] b)
Copyright © 2014 "Tigase, Inc.". All rights reserved.