Package tigase.auth.credentials.entries
Class PlainCredentialsEntry
- java.lang.Object
-
- tigase.auth.credentials.entries.PlainCredentialsEntry
-
- All Implemented Interfaces:
Credentials.Entry
public class PlainCredentialsEntry extends java.lang.Object implements Credentials.Entry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classPlainCredentialsEntry.Decoderstatic classPlainCredentialsEntry.Encoder
-
Constructor Summary
Constructors Constructor Description PlainCredentialsEntry(java.lang.String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetMechanism()Name of the mechanism for which it will workjava.lang.StringgetPassword()booleanverifyPlainPassword(java.lang.String plain)Check if plaintext password will match stored credential
-
-
-
Method Detail
-
getPassword
public java.lang.String getPassword()
-
getMechanism
public java.lang.String getMechanism()
Description copied from interface:Credentials.EntryName of the mechanism for which it will work- Specified by:
getMechanismin interfaceCredentials.Entry
-
verifyPlainPassword
public boolean verifyPlainPassword(java.lang.String plain)
Description copied from interface:Credentials.EntryCheck if plaintext password will match stored credential- Specified by:
verifyPlainPasswordin interfaceCredentials.Entry
-
-