java.lang.Object
org.bzdev.ejws.EjwsAuthenticator.Entry
org.bzdev.ejws.EjwsBasicAuthenticator.Entry
org.bzdev.ejws.EjwsSecureBasicAuth.Entry
- Enclosing class:
- EjwsSecureBasicAuth
User entry.
This object contains a user's password, roles, and public-key
operations.
- See Also:
-
Field Summary
Fields inherited from class org.bzdev.ejws.EjwsBasicAuthenticator.Entry
pw -
Constructor Summary
ConstructorsConstructorDescriptionConstructor with a PEM-encoded public-key.Constructor with a PEM-encoded public-key and SBL data.Constructor. -
Method Summary
Methods inherited from class org.bzdev.ejws.EjwsAuthenticator.Entry
getSBL, isActive, isSBLCompressed, makeActive, setActive, setSBL, setSBLCompressed
-
Constructor Details
-
Entry
Constructor.- Parameters:
pw- a password for a userroles- a set of roles that a user may have
-
Entry
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 userroles- a set of roles that a user may have
-
Entry
Constructor with a PEM-encoded public-key and SBL data. The term SBL refers to the file created with the program sbl.- Parameters:
pem- the PEM encoded public key or a certificate containing that public key.pw- a password for a userroles- a set of roles that a user may havesblCompressed- true if the sbldata is compressed, false otherwisesbldata- the SBL file as a byte array, possibly compressed
-
-
Method Details
-
getPEM
Get the PEM encoded public key- Returns:
- the PEM encoded key; null if there is none
-
getPassword
Get the password stored in this entry.- Overrides:
getPasswordin classEjwsBasicAuthenticator.Entry- Returns:
- the password
-
getRoles
Get the roles stored in this entry.- Overrides:
getRolesin classEjwsAuthenticator.Entry- Returns:
- a set of roles; null if not applicable
-
getSecureBasicUtilities
Get an instance of an object that provides secure basic authentication operations. This object is created by this class's constructors.- Overrides:
getSecureBasicUtilitiesin classEjwsAuthenticator.Entry- Returns:
- the object
-