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 SummaryFields 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 SummaryConstructors Constructor Description JavaKeystoreKeyProviderFactory()
 - 
Method SummaryAll 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.AbstractRsaKeyProviderFactoryconfigurationBuilder
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.keycloak.component.ComponentFactorycreate, getCommonProviderConfigProperties, getTypeMetadata, onCreate, onUpdate, preRemove
 - 
Methods inherited from interface org.keycloak.provider.ConfiguredProvidergetConfig
 - 
Methods inherited from interface org.keycloak.keys.KeyProviderFactoryclose, createFallbackKeys, postInit
 - 
Methods inherited from interface org.keycloak.provider.ProviderFactorygetConfigMetadata, order
 
- 
 
- 
- 
- 
Field Detail- 
IDpublic static final String ID - See Also:
- Constant Field Values
 
 - 
KEYSTORE_KEYpublic static String KEYSTORE_KEY 
 - 
KEYSTORE_PROPERTYpublic static ProviderConfigProperty KEYSTORE_PROPERTY 
 - 
KEYSTORE_PASSWORD_KEYpublic static String KEYSTORE_PASSWORD_KEY 
 - 
KEYSTORE_PASSWORD_PROPERTYpublic static ProviderConfigProperty KEYSTORE_PASSWORD_PROPERTY 
 - 
KEYSTORE_TYPE_KEYpublic static String KEYSTORE_TYPE_KEY 
 - 
KEY_ALIAS_KEYpublic static String KEY_ALIAS_KEY 
 - 
KEY_ALIAS_PROPERTYpublic static ProviderConfigProperty KEY_ALIAS_PROPERTY 
 - 
KEY_PASSWORD_KEYpublic static String KEY_PASSWORD_KEY 
 - 
KEY_PASSWORD_PROPERTYpublic static ProviderConfigProperty KEY_PASSWORD_PROPERTY 
 
- 
 - 
Method Detail- 
initpublic 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
 - 
createpublic KeyProvider create(KeycloakSession session, ComponentModel model) 
 - 
validateConfigurationpublic 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 interface- ComponentFactory
- Overrides:
- validateConfigurationin class- AbstractRsaKeyProviderFactory
- Throws:
- ComponentValidationException
 
 - 
getHelpTextpublic String getHelpText() 
 - 
getConfigPropertiespublic List<ProviderConfigProperty> getConfigProperties() 
 - 
getIdpublic String getId() 
 
- 
 
-