Package org.keycloak.keys
Class DefaultKeyManager
java.lang.Object
org.keycloak.keys.DefaultKeyManager
- All Implemented Interfaces:
KeyManager
- Author:
- Stian Thorgersen
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.keycloak.models.KeyManager
KeyManager.ActiveAesKey, KeyManager.ActiveHmacKey, KeyManager.ActiveRsaKey
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptiongetActiveAesKey
(RealmModel realm) Deprecated.getActiveHmacKey
(RealmModel realm) Deprecated.getActiveKey
(RealmModel realm, KeyUse use, String algorithm) getActiveRsaKey
(RealmModel realm) Deprecated.getAesKeys
(RealmModel realm) getAesSecretKey
(RealmModel realm, String kid) Deprecated.getHmacKeys
(RealmModel realm) getHmacSecretKey
(RealmModel realm, String kid) Deprecated.getKey
(RealmModel realm, String kid, KeyUse use, String algorithm) getKeysStream
(RealmModel realm) Returns allKeyWrapper
for the given realm.getKeysStream
(RealmModel realm, KeyUse use, String algorithm) Returns allKeyWrapper
for the given realm that match given criteria.getRsaCertificate
(RealmModel realm, String kid) Deprecated.getRsaKeys
(RealmModel realm) Deprecated.getRsaPublicKey
(RealmModel realm, String kid) Deprecated.
-
Constructor Details
-
DefaultKeyManager
-
-
Method Details
-
getActiveKey
- Specified by:
getActiveKey
in interfaceKeyManager
-
getKey
- Specified by:
getKey
in interfaceKeyManager
-
getKeysStream
Description copied from interface:KeyManager
Returns allKeyWrapper
for the given realm that match given criteria.- Specified by:
getKeysStream
in interfaceKeyManager
- Parameters:
realm
-RealmModel
.use
-KeyUse
.algorithm
-String
.- Returns:
- Stream of all
KeyWrapper
in the realm. Never returnsnull
.
-
getKeysStream
Description copied from interface:KeyManager
Returns allKeyWrapper
for the given realm.- Specified by:
getKeysStream
in interfaceKeyManager
- Parameters:
realm
-RealmModel
.- Returns:
- Stream of all
KeyWrapper
in the realm. Never returnsnull
.
-
getActiveRsaKey
Deprecated.- Specified by:
getActiveRsaKey
in interfaceKeyManager
-
getActiveHmacKey
Deprecated.- Specified by:
getActiveHmacKey
in interfaceKeyManager
-
getActiveAesKey
Deprecated.- Specified by:
getActiveAesKey
in interfaceKeyManager
-
getRsaPublicKey
Deprecated.- Specified by:
getRsaPublicKey
in interfaceKeyManager
-
getRsaCertificate
Deprecated.- Specified by:
getRsaCertificate
in interfaceKeyManager
-
getHmacSecretKey
Deprecated.- Specified by:
getHmacSecretKey
in interfaceKeyManager
-
getAesSecretKey
Deprecated.- Specified by:
getAesSecretKey
in interfaceKeyManager
-
getRsaKeys
Deprecated.- Specified by:
getRsaKeys
in interfaceKeyManager
-
getHmacKeys
- Specified by:
getHmacKeys
in interfaceKeyManager
-
getAesKeys
- Specified by:
getAesKeys
in interfaceKeyManager
-