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
public class X509InlineCredentialFactoryBean extends AbstractX509CredentialFactoryBean
A factory bean to understand X509Inline credentials.
-
-
Field Summary
Fields Modifier and Type Field Description private List<String>certificatesThe certificates.private List<String>crlsThe crls.private StringentityCertificateThe entity certificate.private org.slf4j.Loggerloglog.private byte[]privateKeyThe 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 Constructor Description X509InlineCredentialFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description protected List<X509Certificate>getCertificates()Get the configured certificates.protected List<X509CRL>getCRLs()Get the configured CRL list.protected X509CertificategetEntityCertificate()return the explicitly configured entity certificate.protected PrivateKeygetPrivateKey()Get the configured private key.voidsetCertificates(List<String> certs)Sets the certificates.voidsetCRLs(List<String> list)Sets the files which contain the crls.voidsetEntity(String entityCert)Set the file with the entity certificate.voidsetPrivateKey(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
-
-
-
-
Method Detail
-
setEntity
public void setEntity(@Nonnull String entityCert)Set the file with the entity certificate.- Parameters:
entityCert- The file to set.
-
setCertificates
public void setCertificates(@Nullable @NotEmpty List<String> certs)
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
public void setCRLs(@Nullable @NotEmpty List<String> list)
Sets the files which contain the crls.- Parameters:
list- The value to set.
-
getEntityCertificate
@Nullable protected X509Certificate getEntityCertificate()
return the explicitly configured entity certificate..- Specified by:
getEntityCertificatein classAbstractX509CredentialFactoryBean- Returns:
- the certificate, or none if not configured.
-
getCertificates
@Nonnull protected List<X509Certificate> getCertificates()
Get the configured certificates. This MUST include the entity certificate if it was configured.- Specified by:
getCertificatesin classAbstractX509CredentialFactoryBean- Returns:
- the certificates.
-
getPrivateKey
@Nullable protected PrivateKey getPrivateKey()
Get the configured private key.- Specified by:
getPrivateKeyin classAbstractX509CredentialFactoryBean- Returns:
- the key or null if non configured
-
getCRLs
@Nullable protected List<X509CRL> getCRLs()
Get the configured CRL list.- Specified by:
getCRLsin classAbstractX509CredentialFactoryBean- Returns:
- the crls or null
-
-