Package tigase.auth.credentials.entries
Class ScramCredentialsEntry
java.lang.Object
tigase.auth.credentials.entries.ScramCredentialsEntry
- All Implemented Interfaces:
Credentials.Entry
- Direct Known Subclasses:
ScramSha1CredentialsEntry
,ScramSha256CredentialsEntry
,ScramSha512CredentialsEntry
-
Nested Class Summary
Modifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
ConstructorDescriptionScramCredentialsEntry
(String algorithm, byte[] salt, int iterations, byte[] saltedPassword) ScramCredentialsEntry
(String algorithm, PlainCredentialsEntry entry) -
Method Summary
Modifier and TypeMethodDescriptionint
Name of the mechanism for which it will workbyte[]
getSalt()
byte[]
boolean
verifyPlainPassword
(String password) Check if plaintext password will match stored credential
-
Constructor Details
-
ScramCredentialsEntry
public ScramCredentialsEntry(String algorithm, PlainCredentialsEntry entry) throws NoSuchAlgorithmException, InvalidKeyException -
ScramCredentialsEntry
-
-
Method Details
-
getSalt
public byte[] getSalt() -
getSaltedPassword
public byte[] getSaltedPassword() -
getIterations
public int getIterations() -
getMechanism
Description copied from interface:Credentials.Entry
Name of the mechanism for which it will work- Specified by:
getMechanism
in interfaceCredentials.Entry
-
verifyPlainPassword
Description copied from interface:Credentials.Entry
Check if plaintext password will match stored credential- Specified by:
verifyPlainPassword
in interfaceCredentials.Entry
-