Package tigase.auth.credentials.entries
Class PlainCredentialsEntry
- java.lang.Object
-
- tigase.auth.credentials.entries.PlainCredentialsEntry
-
- All Implemented Interfaces:
Credentials.Entry
public class PlainCredentialsEntry extends 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(String password)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMechanism()Name of the mechanism for which it will workStringgetPassword()booleanverifyPlainPassword(String plain)Check if plaintext password will match stored credential
-
-
-
Constructor Detail
-
PlainCredentialsEntry
public PlainCredentialsEntry(String password)
-
-
Method Detail
-
getPassword
public String getPassword()
-
getMechanism
public String getMechanism()
Description copied from interface:Credentials.EntryName of the mechanism for which it will work- Specified by:
getMechanismin interfaceCredentials.Entry- Returns:
-
verifyPlainPassword
public boolean verifyPlainPassword(String plain)
Description copied from interface:Credentials.EntryCheck if plaintext password will match stored credential- Specified by:
verifyPlainPasswordin interfaceCredentials.Entry
-
-