Class EjwsSecureBasicAuth.Entry

java.lang.Object
org.bzdev.ejws.EjwsSecureBasicAuth.Entry
Enclosing class:
EjwsSecureBasicAuth

public static class EjwsSecureBasicAuth.Entry extends Object
User entry. This object contains a user's password, roles, and public-key operations.
See Also:
  • Constructor Details

    • Entry

      public Entry(String pw, Set<String> roles)
      Constructor.
      Parameters:
      pw - a password for a user
      roles - a set of roles that a user may have
    • Entry

      public Entry(String pem, String pw, Set<String> roles)
      Constructor with a PEM-encoded public-key.
      Parameters:
      pem - the PEM encoded public key or a certificate containing that public key.
      pw - a password for a user
      roles - a set of roles that a user may have
  • Method Details

    • getPassword

      public String getPassword()
      Get the password stored in this entry.
      Returns:
      the password
    • getRoles

      public Set<String> getRoles()
      Get the roles stored in this entry.
      Returns:
      a set of roles; null if not applicable
    • getSecureBasicUtilities

      public SecureBasicUtilities getSecureBasicUtilities()
      Get an instance of an object that provides secure basic authentication operations. This object is created by this class's constructors.
      Returns:
      the object