Class X509InlineCredentialFactoryBean
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
net.shibboleth.idp.profile.spring.factory.X509InlineCredentialFactoryBean
- All Implemented Interfaces:
Aware
,BeanClassLoaderAware
,BeanFactoryAware
,DisposableBean
,FactoryBean<BasicX509Credential>
,InitializingBean
A factory bean to understand X509Inline credentials.
-
Field Summary
FieldsModifier and TypeFieldDescriptionThe certificates.The crls.private String
The entity certificate.private final org.slf4j.Logger
log.private byte[]
The private key.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 -
Method Summary
Modifier and TypeMethodDescriptionprotected List<X509Certificate>
Get the configured certificates.getCRLs()
Get the configured CRL list.protected X509Certificate
return the explicitly configured entity certificate.protected PrivateKey
Get the configured private key.void
setCertificates
(List<String> certs) Sets the certificates.void
Sets the files which contain the crls.void
Set the file with the entity certificate.void
setPrivateKey
(byte[] key) Set the private key.Methods inherited from class net.shibboleth.idp.profile.spring.factory.AbstractX509CredentialFactoryBean
doCreateInstance, getObjectType
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
-
Field Details
-
log
private final org.slf4j.Logger loglog. -
entityCertificate
The entity certificate. -
certificates
The certificates. -
privateKey
private byte[] privateKeyThe private key. -
crls
The crls.
-
-
Constructor Details
-
X509InlineCredentialFactoryBean
public X509InlineCredentialFactoryBean()
-
-
Method Details
-
setEntity
Set the file with the entity certificate.- Parameters:
entityCert
- The file to set.
-
setCertificates
Sets the certificates.- Parameters:
certs
- The value to set.
-
setPrivateKey
public void setPrivateKey(@Nullable byte[] key) Set the private key.- Parameters:
key
- The file to set.
-
setCRLs
Sets the files which contain the crls.- Parameters:
list
- The value to set.
-
getEntityCertificate
return the explicitly configured entity certificate..- Specified by:
getEntityCertificate
in classAbstractX509CredentialFactoryBean
- Returns:
- the certificate, or none if not configured.
-
getCertificates
Get the configured certificates. This MUST include the entity certificate if it was configured.- Specified by:
getCertificates
in classAbstractX509CredentialFactoryBean
- Returns:
- the certificates.
-
getPrivateKey
Get the configured private key.- Specified by:
getPrivateKey
in classAbstractX509CredentialFactoryBean
- Returns:
- the key or null if non configured
-
getCRLs
Get the configured CRL list.- Specified by:
getCRLs
in classAbstractX509CredentialFactoryBean
- Returns:
- the crls or null
-