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 theExplicitKeyTrustEngineand static credentials.- Since:
- 3.3.0
-
-
Field Summary
Fields Modifier and Type Field Description private List<Resource>certificateResourcesThe resources to be turned into certificates.private List<Resource>keyResourcesThe resources to be turned into keys.private org.slf4j.LoggerlogClass 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 ExplicitKeyTrustEnginedoCreateInstance()protected List<Credential>getCredentials()Get the configured certificates.Class<?>getObjectType()voidsetCertificates(List<Resource> certs)Set the resources which we will convert into certificates.voidsetPublicKeys(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:
getObjectTypein interfaceFactoryBean<ExplicitKeyTrustEngine>- Specified by:
getObjectTypein classAbstractFactoryBean<ExplicitKeyTrustEngine>
-
doCreateInstance
protected ExplicitKeyTrustEngine doCreateInstance() throws Exception
- Specified by:
doCreateInstancein classAbstractComponentAwareFactoryBean<ExplicitKeyTrustEngine>- Throws:
Exception
-
-