Class EjwsAuthenticator.Entry

java.lang.Object
org.bzdev.ejws.EjwsAuthenticator.Entry
Direct Known Subclasses:
EjwsBasicAuthenticator.Entry
Enclosing class:
EjwsAuthenticator

public static class EjwsAuthenticator.Entry extends Object
  • Constructor Details

    • Entry

      public Entry()
      Constructor.
    • Entry

      public Entry(Set<String> roles)
      Constructor specifying roles.
      Parameters:
      roles - the roles; null if there are none
  • Method Details

    • setActive

      public void setActive(boolean active)
      Set whether or not this entry is active. Authentication should fail if an entry is not active. If this method was not called or overridden, isActive() will return true.
      Parameters:
      active - true if the entry is active; false otherwise
    • makeActive

      public void makeActive()
      Set whether or not this entry is active. Authentication should fail if an entry is not active. If this method was not called or overridden, isActive() will return true.
    • isActive

      public boolean isActive()
      Determine whether or not this entry is active. Authentication should fail if an entry is not active.
      Returns:
      true if the entry is active; false otherwise
    • getRoles

      public Set<String> getRoles()
      Get the roles stored in this entry
      Returns:
      a set of roles; null if not applicable or if there are no roles defined
    • getPassword

      public String getPassword()
      Get the password
      Returns:
      the password; null if it does not exist
    • getSecureBasicUtilities

      public SecureBasicUtilities getSecureBasicUtilities()
    • isSBLCompressed

      public boolean isSBLCompressed()
      Determine if the SBL file for this entry (if it exists) is GZIP compressed.
      Returns:
      true if the SBL file is compressed using GZIP; false otherwise
    • setSBLCompressed

      protected void setSBLCompressed(boolean value)
      Set if an SBL file should be compressed.
      Parameters:
      value - true if the SBL file should be compressed; false otherwise
    • getSBL

      public byte[] getSBL()
      Get an SBL file for this entry.
      Returns:
      the SBL file as an array of bytes, possibly compressed
    • setSBL

      protected void setSBL(byte[] data)
      Set the SBL file.
      Parameters:
      data - the byte array containing the SBL file