Class PkiCredentialFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<PkiCredential>
se.swedenconnect.security.credential.spring.factory.PkiCredentialFactoryBean
- All Implemented Interfaces:
- Aware,- BeanClassLoaderAware,- BeanFactoryAware,- DisposableBean,- FactoryBean<PkiCredential>,- InitializingBean
- Direct Known Subclasses:
- PkiCredentialFactoryBean
A 
FactoryBean for creating PkiCredential objects.- Author:
- Martin Lindström
- See Also:
- 
Field SummaryFields inherited from class org.springframework.beans.factory.config.AbstractFactoryBeanloggerFields inherited from interface org.springframework.beans.factory.FactoryBeanOBJECT_TYPE_ATTRIBUTE
- 
Constructor SummaryConstructorsConstructorDescriptionPkiCredentialFactoryBean(String bundle) Constructor accepting aStringwhich is a reference to a registeredPkiCredential.PkiCredentialFactoryBean(PemCredentialConfiguration configuration) Constructor aceepting aPemCredentialConfiguration.PkiCredentialFactoryBean(PkiCredentialConfiguration configuration) Constructor aceepting aPkiCredentialConfiguration.PkiCredentialFactoryBean(StoreCredentialConfiguration configuration) Constructor aceepting aStoreCredentialConfiguration.
- 
Method SummaryModifier and TypeMethodDescriptionvoidprotected PkiCredentialprotected PkiCredentialConfigurationReturns the underlying configuration.Class<?> voidsetCredentialBundles(CredentialBundles credentialBundles) Assigns theCredentialBundlesbean for resolving references to credentials and key stores.voidsetCredentialProvider(Function<String, PkiCredential> credentialProvider) If a configuration is used that has a credential reference, a credential provider is needed.voidsetKeyStoreProvider(Function<String, KeyStore> keyStoreProvider) If a store configuration is used that has a store reference, a key store provider is needed.voidsetKeyStoreReloaderProvider(Function<String, KeyStoreReloader> keyStoreReloaderProvider) If a store configuration is used that has a store reference, and that reference points to aReloadablePkiCredential, a resolver function for getting aKeyStoreReloadermay be needed.Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBeandestroy, destroyInstance, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
- 
Constructor Details- 
PkiCredentialFactoryBeanConstructor aceepting aPkiCredentialConfiguration.- Parameters:
- configuration- the configuration
 
- 
PkiCredentialFactoryBeanConstructor accepting aStringwhich is a reference to a registeredPkiCredential.- Parameters:
- bundle- bundle reference
 
- 
PkiCredentialFactoryBeanConstructor aceepting aStoreCredentialConfiguration.- Parameters:
- configuration- the configuration
 
- 
PkiCredentialFactoryBeanConstructor aceepting aPemCredentialConfiguration.- Parameters:
- configuration- the configuration
 
 
- 
- 
Method Details- 
setCredentialBundlesAssigns theCredentialBundlesbean for resolving references to credentials and key stores.Also see setCredentialProvider(Function)andsetKeyStoreProvider(Function).- Parameters:
- credentialBundles- the credential bundles bean
 
- 
setCredentialProviderIf a configuration is used that has a credential reference, a credential provider is needed.An alternative to assigned this function, is to assign a CredentialBundles, seesetCredentialBundles(CredentialBundles).- Parameters:
- credentialProvider- provides a- PkiCredentialbased on its registered ID
 
- 
setKeyStoreProviderIf a store configuration is used that has a store reference, a key store provider is needed.An alternative to assigned this function, is to assign a CredentialBundles, seesetCredentialBundles(CredentialBundles).- Parameters:
- keyStoreProvider- provides a- KeyStorebased on its registered ID
 
- 
setKeyStoreReloaderProviderpublic void setKeyStoreReloaderProvider(@Nonnull Function<String, KeyStoreReloader> keyStoreReloaderProvider) If a store configuration is used that has a store reference, and that reference points to aReloadablePkiCredential, a resolver function for getting aKeyStoreReloadermay be needed.- Parameters:
- keyStoreReloaderProvider- provides a- KeyStoreReloaderbased on a key stores' registered ID
 
- 
createInstance- Specified by:
- createInstancein class- AbstractFactoryBean<PkiCredential>
- Throws:
- Exception
 
- 
getObjectType- Specified by:
- getObjectTypein interface- FactoryBean<PkiCredential>
- Specified by:
- getObjectTypein class- AbstractFactoryBean<PkiCredential>
 
- 
afterPropertiesSet- Specified by:
- afterPropertiesSetin interface- InitializingBean
- Overrides:
- afterPropertiesSetin class- AbstractFactoryBean<PkiCredential>
- Throws:
- Exception
 
- 
getConfigurationReturns the underlying configuration.- Returns:
- the underlying configuration
 
 
-