public class DefaultKeyManager extends Object implements KeyManager
KeyManager.ActiveAesKey, KeyManager.ActiveHmacKey, KeyManager.ActiveRsaKey| Constructor and Description |
|---|
DefaultKeyManager(KeycloakSession session) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetKeys, getKeyspublic DefaultKeyManager(KeycloakSession session)
public KeyWrapper getActiveKey(RealmModel realm, KeyUse use, String algorithm)
getActiveKey in interface KeyManagerpublic KeyWrapper getKey(RealmModel realm, String kid, KeyUse use, String algorithm)
getKey in interface KeyManagerpublic Stream<KeyWrapper> getKeysStream(RealmModel realm, KeyUse use, String algorithm)
KeyManagerKeyWrapper for the given realm that match given criteria.getKeysStream in interface KeyManagerrealm - RealmModel.use - KeyUse.algorithm - String.KeyWrapper in the realm. Never returns null.public Stream<KeyWrapper> getKeysStream(RealmModel realm)
KeyManagerKeyWrapper for the given realm.getKeysStream in interface KeyManagerrealm - RealmModel.KeyWrapper in the realm. Never returns null.@Deprecated public KeyManager.ActiveRsaKey getActiveRsaKey(RealmModel realm)
getActiveRsaKey in interface KeyManager@Deprecated public KeyManager.ActiveHmacKey getActiveHmacKey(RealmModel realm)
getActiveHmacKey in interface KeyManager@Deprecated public KeyManager.ActiveAesKey getActiveAesKey(RealmModel realm)
getActiveAesKey in interface KeyManager@Deprecated public PublicKey getRsaPublicKey(RealmModel realm, String kid)
getRsaPublicKey in interface KeyManager@Deprecated public Certificate getRsaCertificate(RealmModel realm, String kid)
getRsaCertificate in interface KeyManager@Deprecated public SecretKey getHmacSecretKey(RealmModel realm, String kid)
getHmacSecretKey in interface KeyManager@Deprecated public SecretKey getAesSecretKey(RealmModel realm, String kid)
getAesSecretKey in interface KeyManager@Deprecated public List<RsaKeyMetadata> getRsaKeys(RealmModel realm)
getRsaKeys in interface KeyManagerpublic List<SecretKeyMetadata> getHmacKeys(RealmModel realm)
getHmacKeys in interface KeyManagerpublic List<SecretKeyMetadata> getAesKeys(RealmModel realm)
getAesKeys in interface KeyManagerCopyright © 2021 JBoss by Red Hat. All rights reserved.