Package org.eclipse.jetty.util.security
Class Credential.MD5
- java.lang.Object
-
- org.eclipse.jetty.util.security.Credential
-
- org.eclipse.jetty.util.security.Credential.MD5
-
- All Implemented Interfaces:
java.io.Serializable
- Enclosing class:
- Credential
public static class Credential.MD5 extends Credential
MD5 Credentials- See Also:
- Serialized Form
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.eclipse.jetty.util.security.Credential
Credential.Crypt, Credential.MD5
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
check(java.lang.Object credentials)
Check a credentialstatic java.lang.String
digest(java.lang.String password)
boolean
equals(java.lang.Object obj)
byte[]
getDigest()
-
Methods inherited from class org.eclipse.jetty.util.security.Credential
byteEquals, getCredential, stringEquals
-
-
-
-
Method Detail
-
getDigest
public byte[] getDigest()
-
check
public boolean check(java.lang.Object credentials)
Description copied from class:Credential
Check a credential- Specified by:
check
in classCredential
- Parameters:
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.- Returns:
- True if the credentials indicated that the shared secret is known to both this Credential and the passed credential.
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equals
in classjava.lang.Object
-
digest
public static java.lang.String digest(java.lang.String password)
-
-