Package tigase.auth.credentials.entries
Class XTokenCredentialsEntry
java.lang.Object
tigase.auth.credentials.entries.XTokenCredentialsEntry
- All Implemented Interfaces:
Credentials.Entry
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
static class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionencoded()
Name of the encryption mechanism used to encode stored credentials.byte[]
boolean
boolean
verifyPlainPassword
(String plain) Check if plaintext password will match stored credential
-
Constructor Details
-
XTokenCredentialsEntry
public XTokenCredentialsEntry(byte[] secretKey, boolean oneTime)
-
-
Method Details
-
getSecretKey
public byte[] getSecretKey() -
isOneTime
public boolean isOneTime() -
getMechanism
Description copied from interface:Credentials.Entry
Name of the encryption mechanism used to encode stored credentials. Note: Value returned by this method may be equal to SASL mechanism name used to encode this value, but doesn't have to be only one of SASL mechanism name, ie. for passwords encoded for PLAIN mechanism not stored in plain format in the repository.- 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
-
encoded
-