Package org.keycloak.keys
Class JavaKeystoreKeyProviderFactory
- java.lang.Object
-
- org.keycloak.keys.AbstractRsaKeyProviderFactory
-
- org.keycloak.keys.JavaKeystoreKeyProviderFactory
-
- All Implemented Interfaces:
ComponentFactory,KeyProviderFactory,ConfiguredProvider,ProviderFactory
public class JavaKeystoreKeyProviderFactory extends AbstractRsaKeyProviderFactory
- Author:
- Stian Thorgersen
-
-
Field Summary
Fields Modifier and Type Field Description static StringIDstatic StringKEY_ALIAS_KEYstatic ProviderConfigPropertyKEY_ALIAS_PROPERTYstatic StringKEY_PASSWORD_KEYstatic ProviderConfigPropertyKEY_PASSWORD_PROPERTYstatic StringKEYSTORE_KEYstatic StringKEYSTORE_PASSWORD_KEYstatic ProviderConfigPropertyKEYSTORE_PASSWORD_PROPERTYstatic ProviderConfigPropertyKEYSTORE_PROPERTYstatic StringKEYSTORE_TYPE_KEY
-
Constructor Summary
Constructors Constructor Description JavaKeystoreKeyProviderFactory()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description KeyProvidercreate(KeycloakSession session, ComponentModel model)List<ProviderConfigProperty>getConfigProperties()StringgetHelpText()StringgetId()voidinit(Config.Scope config)Only called once when the factory is first created.voidvalidateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel model)Called before a component is created or updated.-
Methods inherited from class org.keycloak.keys.AbstractRsaKeyProviderFactory
configurationBuilder
-
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
getConfigMetadata, order
-
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
KEYSTORE_KEY
public static String KEYSTORE_KEY
-
KEYSTORE_PROPERTY
public static ProviderConfigProperty KEYSTORE_PROPERTY
-
KEYSTORE_PASSWORD_KEY
public static String KEYSTORE_PASSWORD_KEY
-
KEYSTORE_PASSWORD_PROPERTY
public static ProviderConfigProperty KEYSTORE_PASSWORD_PROPERTY
-
KEYSTORE_TYPE_KEY
public static String KEYSTORE_TYPE_KEY
-
KEY_ALIAS_KEY
public static String KEY_ALIAS_KEY
-
KEY_ALIAS_PROPERTY
public static ProviderConfigProperty KEY_ALIAS_PROPERTY
-
KEY_PASSWORD_KEY
public static String KEY_PASSWORD_KEY
-
KEY_PASSWORD_PROPERTY
public static ProviderConfigProperty KEY_PASSWORD_PROPERTY
-
-
Method Detail
-
init
public void init(Config.Scope config)
Description copied from interface:ProviderFactoryOnly called once when the factory is first created. This config is pulled from keycloak_server.json
-
create
public KeyProvider create(KeycloakSession session, ComponentModel model)
-
validateConfiguration
public void validateConfiguration(KeycloakSession session, RealmModel realm, ComponentModel model) throws ComponentValidationException
Description copied from interface:ComponentFactoryCalled before a component is created or updated. Allows you to validate the configuration- Specified by:
validateConfigurationin interfaceComponentFactory- Overrides:
validateConfigurationin classAbstractRsaKeyProviderFactory- Throws:
ComponentValidationException
-
getHelpText
public String getHelpText()
-
getConfigProperties
public List<ProviderConfigProperty> getConfigProperties()
-
getId
public String getId()
-
-