Package org.keycloak.keys
Class JavaKeystoreKeyProviderFactory
java.lang.Object
org.keycloak.keys.JavaKeystoreKeyProviderFactory
- All Implemented Interfaces:
ComponentFactory
,KeyProviderFactory
,ConfiguredProvider
,ProviderFactory
- Author:
- Stian Thorgersen
-
Field Summary
Modifier and TypeFieldDescriptionstatic final String
static String
static ProviderConfigProperty
static String
static ProviderConfigProperty
static String
static String
static ProviderConfigProperty
static ProviderConfigProperty
static String
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptioncreate
(KeycloakSession session, ComponentModel model) getId()
void
init
(Config.Scope config) Only called once when the factory is first created.void
validateConfiguration
(KeycloakSession session, RealmModel realm, ComponentModel model) Called before a component is created or updated.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
Methods inherited from interface org.keycloak.keys.KeyProviderFactory
close, createFallbackKeys, postInit
Methods inherited from interface org.keycloak.provider.ProviderFactory
dependsOn, getConfigMetadata, order
-
Field Details
-
ID
- See Also:
-
KEYSTORE_KEY
-
KEYSTORE_PROPERTY
-
KEYSTORE_PASSWORD_KEY
-
KEYSTORE_PASSWORD_PROPERTY
-
KEYSTORE_TYPE_KEY
-
KEY_ALIAS_KEY
-
KEY_ALIAS_PROPERTY
-
KEY_PASSWORD_KEY
-
KEY_PASSWORD_PROPERTY
-
-
Constructor Details
-
JavaKeystoreKeyProviderFactory
public JavaKeystoreKeyProviderFactory()
-
-
Method Details
-
init
Description copied from interface:ProviderFactory
Only called once when the factory is first created. This config is pulled from keycloak_server.json- Specified by:
init
in interfaceKeyProviderFactory
- Specified by:
init
in interfaceProviderFactory
-
create
- Specified by:
create
in interfaceComponentFactory
- Specified by:
create
in interfaceKeyProviderFactory
-
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
- Throws:
ComponentValidationException
-
getHelpText
- Specified by:
getHelpText
in interfaceConfiguredProvider
-
getConfigProperties
- Specified by:
getConfigProperties
in interfaceConfiguredProvider
-
getId
- Specified by:
getId
in interfaceProviderFactory
-