Package org.opensaml.spring.credential
Class AbstractX509CredentialFactoryBean
java.lang.Object
net.shibboleth.shared.spring.factory.AbstractFactoryBean<T>
net.shibboleth.shared.spring.factory.AbstractComponentAwareFactoryBean<T>
org.opensaml.spring.credential.AbstractCredentialFactoryBean<BasicX509Credential>
org.opensaml.spring.credential.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 backed
BasicX509Credential.-
Field Summary
FieldsFields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected BasicX509Credentialprotected abstract List<X509Certificate>Get the configured certificates.getCRLs()Get the configured CRL list.protected abstract X509Certificatereturn the explicitly configured entity certificate.protected abstract PrivateKeyGet the configured private key.Methods inherited from class org.opensaml.spring.credential.AbstractCredentialFactoryBean
getConfigDescription, getEntityID, getKeyNames, getPrivateKeyPassword, getUsageType, setConfigDescription, setEntityID, setKeyNames, setPrivateKeyPassword, setUsageTypeMethods 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 final org.slf4j.Logger logLog.
-
-
Constructor Details
-
AbstractX509CredentialFactoryBean
public AbstractX509CredentialFactoryBean()
-
-
Method Details
-
doCreateInstance
- Specified by:
doCreateInstancein classAbstractComponentAwareFactoryBean<BasicX509Credential>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<BasicX509Credential>- Specified by:
getObjectTypein classAbstractFactoryBean<BasicX509Credential>
-
getEntityCertificate
return the explicitly configured entity certificate.- Returns:
- the certificate, or none if not configured.
-
getCertificates
Get the configured certificates. This MUST include the entity certificate if it was configured.- Returns:
- the certificates.
-
getPrivateKey
Get the configured private key.- Returns:
- the key or null if non configured
-
getCRLs
Get the configured CRL list.- Returns:
- the crls or null
-