|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||
java.lang.Objectorg.eclipse.jetty.util.security.Credential
public abstract class 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,
序列化表格| 嵌套类摘要 | |
|---|---|
static class |
Credential.Crypt
Unix Crypt Credentials |
static class |
Credential.MD5
MD5 Credentials |
| 构造方法摘要 | |
|---|---|
Credential()
|
|
| 方法摘要 | |
|---|---|
abstract boolean |
check(Object credentials)
Check a credential |
static Credential |
getCredential(String credential)
Get a credential from a String. |
| 从类 java.lang.Object 继承的方法 |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| 构造方法详细信息 |
|---|
public Credential()
| 方法详细信息 |
|---|
public abstract boolean check(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(String credential)
credential - String representation of the credential
|
||||||||||
| 上一个类 下一个类 | 框架 无框架 | |||||||||
| 摘要: 嵌套 | 字段 | 构造方法 | 方法 | 详细信息: 字段 | 构造方法 | 方法 | |||||||||