Class AbstractX509CredentialFactoryBean
- java.lang.Object
-
- org.springframework.beans.factory.config.AbstractFactoryBean<T>
-
- net.shibboleth.ext.spring.factory.AbstractComponentAwareFactoryBean<T>
-
- net.shibboleth.idp.profile.spring.factory.AbstractCredentialFactoryBean<BasicX509Credential>
-
- net.shibboleth.idp.profile.spring.factory.AbstractX509CredentialFactoryBean
-
- All Implemented Interfaces:
Aware,BeanClassLoaderAware,BeanFactoryAware,DisposableBean,FactoryBean<BasicX509Credential>,InitializingBean
- Direct Known Subclasses:
BasicX509CredentialFactoryBean,X509InlineCredentialFactoryBean
public abstract class AbstractX509CredentialFactoryBean extends AbstractCredentialFactoryBean<BasicX509Credential>
A factory bean to collect information to do with an X509 backedBasicX509Credential.
-
-
Field Summary
Fields Modifier and Type Field Description private org.slf4j.LoggerlogLog.-
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 AbstractX509CredentialFactoryBean()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected BasicX509CredentialdoCreateInstance()protected abstract List<X509Certificate>getCertificates()Get the configured certificates.protected abstract List<X509CRL>getCRLs()Get the configured CRL list.protected abstract X509CertificategetEntityCertificate()return the explicitly configured entity certificate.Class<BasicX509Credential>getObjectType()protected abstract PrivateKeygetPrivateKey()Get the configured private key.-
Methods inherited from class net.shibboleth.idp.profile.spring.factory.AbstractCredentialFactoryBean
getConfigDescription, getEntityID, getKeyNames, getPrivateKeyPassword, getUsageType, setConfigDescription, setEntityID, setKeyNames, setPrivateKeyPassword, setUsageType
-
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
-
doCreateInstance
protected BasicX509Credential doCreateInstance() throws Exception
- Specified by:
doCreateInstancein classAbstractComponentAwareFactoryBean<BasicX509Credential>- Throws:
Exception
-
getObjectType
public Class<BasicX509Credential> getObjectType()
- Specified by:
getObjectTypein interfaceFactoryBean<BasicX509Credential>- Specified by:
getObjectTypein classAbstractFactoryBean<BasicX509Credential>
-
getEntityCertificate
@Nullable protected abstract X509Certificate getEntityCertificate()
return the explicitly configured entity certificate.- Returns:
- the certificate, or none if not configured.
-
getCertificates
@Nonnull @NotEmpty protected abstract List<X509Certificate> getCertificates()
Get the configured certificates. This MUST include the entity certificate if it was configured.- Returns:
- the certificates.
-
getPrivateKey
@Nullable protected abstract PrivateKey getPrivateKey()
Get the configured private key.- Returns:
- the key or null if non configured
-
-