Package org.opensaml.spring.credential
Class X509InlineCredentialFactoryBean
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
org.opensaml.spring.credential.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 StringThe entity certificate.private final org.slf4j.Loggerlog.private byte[]The private key.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 X509Certificatereturn the explicitly configured entity certificate.protected PrivateKeyGet the configured private key.voidsetCertificates(List<String> certs) Sets the certificates.voidSets the files which contain the crls.voidSet the file with the entity certificate.voidsetPrivateKey(byte[] key) Set the private key.Methods inherited from class org.opensaml.spring.credential.AbstractX509CredentialFactoryBean
doCreateInstance, getObjectTypeMethods 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. -
entityCertificate
The entity certificate. -
certificates
The certificates. -
privateKey
@Nullable 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:
getEntityCertificatein 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:
getCertificatesin classAbstractX509CredentialFactoryBean- Returns:
- the certificates.
-
getPrivateKey
Get the configured private key.- Specified by:
getPrivateKeyin classAbstractX509CredentialFactoryBean- Returns:
- the key or null if non configured
-
getCRLs
Get the configured CRL list.- Specified by:
getCRLsin classAbstractX509CredentialFactoryBean- Returns:
- the crls or null
-