Package org.keycloak.keys
Class AbstractGeneratedEcKeyProviderFactory<T extends KeyProvider>
java.lang.Object
org.keycloak.keys.AbstractEcKeyProviderFactory<T>
org.keycloak.keys.AbstractGeneratedEcKeyProviderFactory<T>
- All Implemented Interfaces:
ComponentFactory<T,
,KeyProvider> KeyProviderFactory<T>
,ConfiguredProvider
,ProviderFactory<KeyProvider>
- Direct Known Subclasses:
GeneratedEcdhKeyProviderFactory
,GeneratedEcdsaKeyProviderFactory
public abstract class AbstractGeneratedEcKeyProviderFactory<T extends KeyProvider>
extends AbstractEcKeyProviderFactory<T>
-
Field Summary
Fields inherited from class org.keycloak.keys.AbstractEcKeyProviderFactory
DEFAULT_EC_ELLIPTIC_CURVE
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
createFallbackKeys
(KeycloakSession session, KeyUse keyUse, String algorithm) protected void
generateKeys
(ComponentModel model, String ecInNistRep) protected String
getCurveFromPublicKey
(String publicEcKeyBase64Encoded) protected abstract String
protected abstract String
protected abstract String
getEcEllipticCurveKey
(String algorithm) protected abstract ProviderConfigProperty
protected abstract String
protected abstract String
protected abstract org.jboss.logging.Logger
protected abstract boolean
isSupportedEcAlgorithm
(String algorithm) protected abstract boolean
isValidKeyUse
(KeyUse keyUse) void
validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel model) Called before a component is created or updated.Methods inherited from class org.keycloak.keys.AbstractEcKeyProviderFactory
configurationBuilder, convertECDomainParmNistRepToSecRep, generateEcKeyPair
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.keycloak.component.ComponentFactory
create, getCommonProviderConfigProperties, getTypeMetadata, onCreate, onUpdate, preRemove
Methods inherited from interface org.keycloak.provider.ConfiguredProvider
getConfig, getConfigProperties, getHelpText
Methods inherited from interface org.keycloak.keys.KeyProviderFactory
close, create, init, postInit
Methods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, getId, order
-
Constructor Details
-
AbstractGeneratedEcKeyProviderFactory
public AbstractGeneratedEcKeyProviderFactory()
-
-
Method Details
-
getDefaultEcEllipticCurve
-
getEcEllipticCurveKey
-
getEcEllipticCurveKey
-
getEcEllipticCurveProperty
-
getEcPrivateKeyKey
-
getEcPublicKeyKey
-
getLogger
protected abstract org.jboss.logging.Logger getLogger() -
isSupportedEcAlgorithm
-
isValidKeyUse
-
createFallbackKeys
-
validateConfiguration
public void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel model) throws ComponentValidationException Description copied from interface:ComponentFactory
Called before a component is created or updated. Allows you to validate the configuration- Specified by:
validateConfiguration
in interfaceComponentFactory<T extends KeyProvider,
KeyProvider> - Overrides:
validateConfiguration
in classAbstractEcKeyProviderFactory<T extends KeyProvider>
- Throws:
ComponentValidationException
-
generateKeys
-
getCurveFromPublicKey
-