java.lang.Object
org.bzdev.ejws.EjwsUserTable<EjwsSecureBasicAuth,EjwsSecureBasicAuth.Entry>
org.bzdev.ejws.GPGSecureBasicUT
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidcreateEntryFromDB(String email) Create an entry corresponding to the data in persistent storage.protected EjwsSecureBasicAuth.EntrygetEntryFromDB(EjwsSecureBasicAuth.Entry currentEntry, String user) Get an entry corresponding to the data in persistent storage.protected booleanhasDB()Determine if persistent storage exists.protected voidSet up the map based on information in persistent storage.protected voidmakeActiveInDB(String user) protected voidremoveEntryFromDB(String user) Remove an entry from persistent storage.Methods inherited from class org.bzdev.ejws.EjwsUserTable
copyEntryToDB, getAuthenticator, getEntry, getRoles, makeActive, putEntry, removeEntry, setAuth, setMap, updateEntry
-
Constructor Details
-
GPGSecureBasicUT
public GPGSecureBasicUT()
-
-
Method Details
-
loadEntriesFromDB
Set up the map based on information in persistent storage. This method is called byEjwsUserTable.setMap(java.util.Map<java.lang.String, E>).- Overrides:
loadEntriesFromDBin classEjwsUserTable<EjwsSecureBasicAuth,EjwsSecureBasicAuth.Entry> - Parameters:
map- the map
-
createEntryFromDB
Create an entry corresponding to the data in persistent storage.Subclasses for which
EjwsUserTable.hasDB()returnstruemust override this method.- Overrides:
createEntryFromDBin classEjwsUserTable<EjwsSecureBasicAuth,EjwsSecureBasicAuth.Entry> - Parameters:
email- the user name- Throws:
Exception
-
getEntryFromDB
protected EjwsSecureBasicAuth.Entry getEntryFromDB(EjwsSecureBasicAuth.Entry currentEntry, String user) throws Exception Get an entry corresponding to the data in persistent storage.Subclasses for which
EjwsUserTable.hasDB()returnstruemust override this method.- Overrides:
getEntryFromDBin classEjwsUserTable<EjwsSecureBasicAuth,EjwsSecureBasicAuth.Entry> user- the user name- Returns:
- the entry; null if there is none in persistent storage
- Throws:
Exception
-
makeActiveInDB
- Overrides:
makeActiveInDBin classEjwsUserTable<EjwsSecureBasicAuth,EjwsSecureBasicAuth.Entry> - Throws:
Exception
-
removeEntryFromDB
Remove an entry from persistent storage.Subclasses for which
EjwsUserTable.hasDB()returnstruemust override this method.- Overrides:
removeEntryFromDBin classEjwsUserTable<EjwsSecureBasicAuth,EjwsSecureBasicAuth.Entry> - Parameters:
user- the user name
-
hasDB
protected boolean hasDB()Determine if persistent storage exists. For a given instance of EjwsUserTable, this method should always return the same value.- Overrides:
hasDBin classEjwsUserTable<EjwsSecureBasicAuth,EjwsSecureBasicAuth.Entry> - Returns:
- true if persistent storage exists; false otherwise.
-