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 theExplicitKeyTrustEngine
and static credentials.- Since:
- 3.3.0
-
-
Field Summary
Fields Modifier and Type Field Description private List<Resource>
certificateResources
The resources to be turned into certificates.private List<Resource>
keyResources
The resources to be turned into keys.private org.slf4j.Logger
log
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 Constructor Description StaticExplicitKeyFactoryBean()
Constructor.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected ExplicitKeyTrustEngine
doCreateInstance()
protected List<Credential>
getCredentials()
Get the configured certificates.Class<?>
getObjectType()
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
-
-
-
-
Method Detail
-
setPublicKeys
public void setPublicKeys(@Nullable List<Resource> keys)
Set the resources which we will convert into certificates.- Parameters:
keys
- the resources
-
setCertificates
public void setCertificates(@Nullable List<Resource> certs)
Set the resources which we will convert into certificates.- Parameters:
certs
- the resources
-
getCredentials
@Nullable @NonnullElements protected List<Credential> getCredentials()
Get the configured certificates.- Returns:
- the certificates null
-
getObjectType
public Class<?> getObjectType()
- Specified by:
getObjectType
in interfaceFactoryBean<ExplicitKeyTrustEngine>
- Specified by:
getObjectType
in classAbstractFactoryBean<ExplicitKeyTrustEngine>
-
doCreateInstance
protected ExplicitKeyTrustEngine doCreateInstance() throws Exception
- Specified by:
doCreateInstance
in classAbstractComponentAwareFactoryBean<ExplicitKeyTrustEngine>
- Throws:
Exception
-
-