|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.mortbay.util.Credential
Credentials. The Credential class represents an abstract mechanism for checking authentication credentials. A credential instance either represents a secret, or some data that could only be derived from knowing the secret.
Often a Credential is related to a Password via a one way algorithm, so while a Password itself is a Credential, a UnixCrypt or MD5 digest of a a password is only a credential that can be checked against the password.
This class includes an implementation for unix Crypt an MD5 digest.
Password
Nested Class Summary | |
static class |
Credential.Crypt
Unix Crypt Credentials |
static class |
Credential.MD5
Unix Crypt Credentials |
Constructor Summary | |
Credential()
|
Method Summary | |
abstract boolean |
check(java.lang.Object credentials)
Check a credential |
static Credential |
getCredential(java.lang.String credential)
Get a credential from a String. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Credential()
Method Detail |
public abstract boolean check(java.lang.Object credentials)
credentials
- The credential to check against. This may either be
another Credential object, a Password object or a String which is
interpreted by this credential.
public static Credential getCredential(java.lang.String credential)
credential
- String representation of the credential
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |