public class ScramMechanism
extends tigase.jaxmpp.core.client.xmpp.modules.auth.saslmechanisms.AbstractSaslMechanism
| Constructor and Description |
|---|
ScramMechanism() |
ScramMechanism(String mechanismName,
String algorithm,
byte[] clientKey,
byte[] serverKey) |
| Modifier and Type | Method and Description |
|---|---|
String |
evaluateChallenge(String input,
tigase.jaxmpp.core.client.SessionObject sessionObject) |
protected tigase.jaxmpp.core.client.xmpp.modules.auth.scram.ScramMechanism.Data |
getData(tigase.jaxmpp.core.client.SessionObject sessionObject) |
protected byte[] |
h(byte[] data) |
static byte[] |
hi(String algorithm,
byte[] password,
byte[] salt,
int iterations) |
protected static byte[] |
hmac(SecretKey key,
byte[] data) |
boolean |
isAllowedToUse(tigase.jaxmpp.core.client.SessionObject sessionObject) |
protected SecretKey |
key(byte[] key) |
String |
name() |
static byte[] |
normalize(String str) |
protected byte[] |
xor(byte[] a,
byte[] b) |
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 String evaluateChallenge(String input, tigase.jaxmpp.core.client.SessionObject sessionObject) throws tigase.jaxmpp.core.client.xmpp.modules.auth.ClientSaslException
tigase.jaxmpp.core.client.xmpp.modules.auth.ClientSaslExceptionprotected tigase.jaxmpp.core.client.xmpp.modules.auth.scram.ScramMechanism.Data getData(tigase.jaxmpp.core.client.SessionObject sessionObject)
protected byte[] h(byte[] data)
throws NoSuchAlgorithmException
NoSuchAlgorithmExceptionpublic boolean isAllowedToUse(tigase.jaxmpp.core.client.SessionObject sessionObject)
protected SecretKey key(byte[] key)
public String name()
protected byte[] xor(byte[] a,
byte[] b)
Copyright © 2006–2017 Tigase. All rights reserved.