Package org.opensaml.spring.trust
Class StaticExplicitKeyFactoryBean
java.lang.Object
net.shibboleth.shared.spring.factory.AbstractFactoryBean<T>
net.shibboleth.shared.spring.factory.AbstractComponentAwareFactoryBean<ExplicitKeyTrustEngine>
org.opensaml.spring.trust.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.LoggerClass logger.Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected ExplicitKeyTrustEngineprotected List<Credential>Get the configured certificates.Class<?>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.shared.spring.factory.AbstractComponentAwareFactoryBean
createInstance, destroyInstance, setThrowIfNullMethods inherited from class net.shibboleth.shared.spring.factory.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:
getObjectTypein interfaceFactoryBean<ExplicitKeyTrustEngine>- Specified by:
getObjectTypein classAbstractFactoryBean<ExplicitKeyTrustEngine>
-
doCreateInstance
- Specified by:
doCreateInstancein classAbstractComponentAwareFactoryBean<ExplicitKeyTrustEngine>- Throws:
Exception
-