Package tigase.auth.credentials.entries
Class MD5UsernamePasswordCredentialsEntry
- java.lang.Object
-
- tigase.auth.credentials.entries.MD5UsernamePasswordCredentialsEntry
-
- All Implemented Interfaces:
Credentials.Entry
public class MD5UsernamePasswordCredentialsEntry extends Object implements Credentials.Entry
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classMD5UsernamePasswordCredentialsEntry.Decoderstatic classMD5UsernamePasswordCredentialsEntry.Encoder
-
Constructor Summary
Constructors Constructor Description MD5UsernamePasswordCredentialsEntry(BareJID user, String passwordHash)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description StringgetMechanism()Name of the mechanism for which it will workprotected static StringgetUsername(BareJID user)booleanverifyPlainPassword(String plain)Check if plaintext password will match stored credential
-
-
-
Method Detail
-
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
-
-