Interface KEStore<V extends KERecord>
-
- All Superinterfaces:
Map<edu.uiuc.ncsa.security.core.Identifier,V>,edu.uiuc.ncsa.security.core.Store<V>
- All Known Implementing Classes:
KEFileStore,KEMemoryStore,KESQLStore
public interface KEStore<V extends KERecord> extends edu.uiuc.ncsa.security.core.Store<V>
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description KERecordgetByKID(String kid)For a given key id (kid) find an return.edu.uiuc.ncsa.security.core.util.IdentifiableMap<KERecord>getByVI(VirtualIssuer vi)Return valid Key Records for a given virtual issuer.edu.uiuc.ncsa.security.core.util.IdentifiableMap<KERecord>getByVI(VirtualIssuer vi, boolean validKeysOnly)edu.uiuc.ncsa.security.util.jwk.JSONWebKeysgetCurrentKeys()Get all currently active keys.edu.uiuc.ncsa.security.util.jwk.JSONWebKeysgetCurrentKeys(VirtualIssuer vi)Gets the currently active keys for a given virtual issuer.HashSet<String>getKIDs()Get all of the key ids used in this store.-
Methods inherited from interface java.util.Map
clear, compute, computeIfAbsent, computeIfPresent, containsKey, containsValue, entrySet, equals, forEach, get, getOrDefault, hashCode, isEmpty, merge, put, putAll, putIfAbsent, remove, remove, replace, replace, replaceAll, size, values
-
-
-
-
Method Detail
-
getByKID
KERecord getByKID(String kid)
For a given key id (kid) find an return. Key ids are unique in the database. This may be null if there is no suchKERecord.- Parameters:
kid-- Returns:
-
getCurrentKeys
edu.uiuc.ncsa.security.util.jwk.JSONWebKeys getCurrentKeys(VirtualIssuer vi)
Gets the currently active keys for a given virtual issuer. Note that the virtual issuer for the server is OA2SE#SERVER_VI_ID. A current key is defined as having not expired and being valid.- Parameters:
vi-- Returns:
-
getCurrentKeys
edu.uiuc.ncsa.security.util.jwk.JSONWebKeys getCurrentKeys()
Get all currently active keys.- Returns:
-
getByVI
edu.uiuc.ncsa.security.core.util.IdentifiableMap<KERecord> getByVI(VirtualIssuer vi)
Return valid Key Records for a given virtual issuer. This means that they have no expired and are valid. The identifier is the ID of the KERecord.- Parameters:
vi-- Returns:
-
getByVI
edu.uiuc.ncsa.security.core.util.IdentifiableMap<KERecord> getByVI(VirtualIssuer vi, boolean validKeysOnly)
-
-