Class PasswordCredentials
- java.lang.Object
-
- io.streamthoughts.azkarra.http.security.auth.PasswordCredentials
-
- All Implemented Interfaces:
Credentials
- Direct Known Subclasses:
DigestPasswordCredentials
,PlainPasswordCredentials
public abstract class PasswordCredentials extends Object implements Credentials
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
PasswordCredentials.Type
-
Nested classes/interfaces inherited from interface io.streamthoughts.azkarra.http.security.auth.Credentials
Credentials.UnsupportedCredentialException
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
PasswordCredentials(String password)
Creates a newPasswordCredentials
instance.
-
Method Summary
All Methods Static Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
static PasswordCredentials
get(String password)
int
hashCode()
String
password()
abstract boolean
verify(Object credentials)
-
-
-
Field Detail
-
password
protected final String password
-
-
Constructor Detail
-
PasswordCredentials
protected PasswordCredentials(String password)
Creates a newPasswordCredentials
instance.- Parameters:
password
- the user password.
-
-
Method Detail
-
get
public static PasswordCredentials get(String password)
-
password
public String password()
-
verify
public abstract boolean verify(Object credentials) throws Credentials.UnsupportedCredentialException
-
-