Package org.keycloak.models
Interface KeyManager
- All Known Implementing Classes:
DefaultKeyManager
public interface KeyManager
- Author:
- Stian Thorgersen
-
Nested Class Summary
Modifier and TypeInterfaceDescriptionstatic class
static class
static class
-
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) Deprecated.getAesSecretKey
(RealmModel realm, String kid) Deprecated.getHmacKeys
(RealmModel realm) Deprecated.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.
-
Method Details
-
getActiveKey
-
getKey
-
getKeysStream
Returns allKeyWrapper
for the given realm.- Parameters:
realm
-RealmModel
.- Returns:
- Stream of all
KeyWrapper
in the realm. Never returnsnull
.
-
getKeysStream
Returns allKeyWrapper
for the given realm that match given criteria.- Parameters:
realm
-RealmModel
.use
-KeyUse
.algorithm
-String
.- Returns:
- Stream of all
KeyWrapper
in the realm. Never returnsnull
.
-
getActiveRsaKey
Deprecated. -
getRsaPublicKey
Deprecated. -
getRsaCertificate
Deprecated. -
getRsaKeys
Deprecated. -
getActiveHmacKey
Deprecated. -
getHmacSecretKey
Deprecated. -
getHmacKeys
Deprecated. -
getActiveAesKey
Deprecated. -
getAesSecretKey
Deprecated. -
getAesKeys
Deprecated.
-