public class ScramCredentialsEntry extends Object implements Credentials.Entry
Modifier and Type | Class and Description |
---|---|
static class |
ScramCredentialsEntry.Decoder |
static class |
ScramCredentialsEntry.Encoder |
Constructor and Description |
---|
ScramCredentialsEntry(String algorithm,
byte[] salt,
int iterations,
byte[] saltedPassword) |
ScramCredentialsEntry(String algorithm,
PlainCredentialsEntry entry) |
Modifier and Type | Method and Description |
---|---|
int |
getIterations() |
String |
getMechanism()
Name of the mechanism for which it will work
|
byte[] |
getSalt() |
byte[] |
getSaltedPassword() |
boolean |
verifyPlainPassword(String password)
Check if plaintext password will match stored credential
|
public ScramCredentialsEntry(String algorithm, PlainCredentialsEntry entry) throws NoSuchAlgorithmException, InvalidKeyException
public ScramCredentialsEntry(String algorithm, byte[] salt, int iterations, byte[] saltedPassword)
public byte[] getSalt()
public byte[] getSaltedPassword()
public int getIterations()
public String getMechanism()
Credentials.Entry
getMechanism
in interface Credentials.Entry
public boolean verifyPlainPassword(String password)
Credentials.Entry
verifyPlainPassword
in interface Credentials.Entry
Copyright © 2004–2019 "Tigase, Inc.". All rights reserved.