public class BasicX509CredentialFactoryBean extends AbstractX509CredentialFactoryBean
BasicX509Credential from Resources.
This factory bean supports DER and PEM encoded certificate resources and encrypted and non-encrypted PKCS8, DER, or PEM encoded private key resources.
| Modifier and Type | Field and Description |
|---|---|
private List<org.springframework.core.io.Resource> |
certificateResources
Where the certificates are to be found.
|
private List<org.springframework.core.io.Resource> |
crlResources
Where the crls are to be found.
|
private org.springframework.core.io.Resource |
entityResource
The specification of where the entity Resource is to be found.
|
private org.slf4j.Logger |
log
log.
|
private org.springframework.core.io.Resource |
privateKeyResource
Where the private key is to be found.
|
| Constructor and Description |
|---|
BasicX509CredentialFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
protected List<X509Certificate> |
getCertificates()
Get the configured certificates.
|
protected List<X509CRL> |
getCRLs()
Get the configured CRL list.
|
protected X509Certificate |
getEntityCertificate()
return the explicitly configured entity certificate.
|
protected PrivateKey |
getPrivateKey()
Get the configured private key.
|
boolean |
isSingleton() |
void |
setCertificateResource(org.springframework.core.io.Resource res)
Set the certificate resource.
|
void |
setCertificates(List<org.springframework.core.io.Resource> what)
Sets the Resources which contain the certificates.
|
void |
setCRLs(List<org.springframework.core.io.Resource> what)
Sets the Resources which contain the crls.
|
void |
setEntity(org.springframework.core.io.Resource what)
Set the Resource with the entity certificate.
|
void |
setEntityId(String id)
Set the entityID for the credential.
|
void |
setPrivateKey(org.springframework.core.io.Resource what)
Set the Resource with the entity certificate.
|
void |
setPrivateKeyPassword(String password)
Set the password for the private key.
|
void |
setPrivateKeyResource(org.springframework.core.io.Resource res)
Set the resource containing the private key.
|
doCreateInstance, getObjectTypegetConfigDescription, getEntityID, getKeyNames, getPrivateKeyPassword, getUsageType, setConfigDescription, setEntityID, setKeyNames, setPrivateKeyPassword, setUsageTypecreateInstance, destroyInstanceprivate final org.slf4j.Logger log
private org.springframework.core.io.Resource entityResource
private List<org.springframework.core.io.Resource> certificateResources
private org.springframework.core.io.Resource privateKeyResource
private List<org.springframework.core.io.Resource> crlResources
public void setEntity(@Nonnull org.springframework.core.io.Resource what)
what - The Resource to set.public void setCertificates(@Nullable@NotEmpty List<org.springframework.core.io.Resource> what)
what - The values to set.public void setPrivateKey(@Nullable org.springframework.core.io.Resource what)
what - The resource to set.public void setCRLs(@Nullable@NotEmpty List<org.springframework.core.io.Resource> what)
what - The value to set.public void setPrivateKeyResource(@Nonnull org.springframework.core.io.Resource res)
res - private key resource, never nullpublic void setPrivateKeyPassword(@Nullable String password)
password - password for the private key, may be null if the key is not encryptedpublic void setCertificateResource(@Nonnull org.springframework.core.io.Resource res)
res - certificate resourcepublic void setEntityId(@Nullable String id)
id - entityIDpublic boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<BasicX509Credential>isSingleton in class org.springframework.beans.factory.config.AbstractFactoryBean<BasicX509Credential>@Nullable protected X509Certificate getEntityCertificate()
getEntityCertificate in class AbstractX509CredentialFactoryBean@Nonnull protected List<X509Certificate> getCertificates()
getCertificates in class AbstractX509CredentialFactoryBean@Nullable protected PrivateKey getPrivateKey()
getPrivateKey in class AbstractX509CredentialFactoryBean@Nullable protected List<X509CRL> getCRLs()
getCRLs in class AbstractX509CredentialFactoryBeanCopyright © 1999–2018 Shibboleth Consortium. All rights reserved.