Class Credential.MD

java.lang.Object
org.eclipse.jetty.util.security.Credential
org.eclipse.jetty.util.security.Credential.MD
All Implemented Interfaces:
Serializable
Enclosing class:
Credential

public static class Credential.MD extends Credential

Generic message digest credential.

The string format is MD:<algorithm>:<hex>, for example: MD:SHA-1:5bAa61E4C9B93f3f0682250b6cF8331b7eE68fD8.

See Also:
  • Method Details

    • check

      public boolean check(Object credentials)
      Description copied from class: Credential

      Checks the given credential against this credential instance.

      Specified by:
      check in class Credential
      Parameters:
      credentials - the credential to check against this instance. This may either be another Credential object; or a Password object; or a String, char[] or byte[] that are interpreted by this credential.
      Returns:
      whether the given credentials match this credential instance
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • equals

      public boolean equals(Object obj)
      Overrides:
      equals in class Object