Class StaticExplicitKeyFactoryBean
java.lang.Object
org.springframework.beans.factory.config.AbstractFactoryBean<T>
net.shibboleth.ext.spring.factory.AbstractComponentAwareFactoryBean<ExplicitKeyTrustEngine>
net.shibboleth.idp.profile.spring.factory.StaticExplicitKeyFactoryBean
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<ExplicitKeyTrustEngine>
,InitializingBean
public class StaticExplicitKeyFactoryBean
extends AbstractComponentAwareFactoryBean<ExplicitKeyTrustEngine>
Factory bean for simple use cases involving the
ExplicitKeyTrustEngine
and static credentials.- Since:
- 3.3.0
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe resources to be turned into certificates.The resources to be turned into keys.private org.slf4j.Logger
Class logger.Fields inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
logger
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ExplicitKeyTrustEngine
protected List<Credential>
Get the configured certificates.Class<?>
void
setCertificates
(List<Resource> certs) Set the resources which we will convert into certificates.void
setPublicKeys
(List<Resource> keys) Set the resources which we will convert into certificates.Methods inherited from class net.shibboleth.ext.spring.factory.AbstractComponentAwareFactoryBean
createInstance, destroyInstance
Methods inherited from class org.springframework.beans.factory.config.AbstractFactoryBean
afterPropertiesSet, destroy, getBeanFactory, getBeanTypeConverter, getEarlySingletonInterfaces, getObject, isSingleton, setBeanClassLoader, setBeanFactory, setSingleton
-
Field Details
-
log
@Nonnull private org.slf4j.Logger logClass logger. -
keyResources
The resources to be turned into keys. -
certificateResources
The resources to be turned into certificates.
-
-
Constructor Details
-
StaticExplicitKeyFactoryBean
public StaticExplicitKeyFactoryBean()Constructor.
-
-
Method Details
-
setPublicKeys
Set the resources which we will convert into certificates.- Parameters:
keys
- the resources
-
setCertificates
Set the resources which we will convert into certificates.- Parameters:
certs
- the resources
-
getCredentials
Get the configured certificates.- Returns:
- the certificates null
-
getObjectType
- Specified by:
getObjectType
in interfaceFactoryBean<ExplicitKeyTrustEngine>
- Specified by:
getObjectType
in classAbstractFactoryBean<ExplicitKeyTrustEngine>
-
doCreateInstance
- Specified by:
doCreateInstance
in classAbstractComponentAwareFactoryBean<ExplicitKeyTrustEngine>
- Throws:
Exception
-