public class X509CertificateFactoryBean extends Object implements org.springframework.beans.factory.FactoryBean<X509Certificate>
X509Certificate from a Resource.
This factory bean supports DER and PEM encoded certificate resources.| Modifier and Type | Field and Description |
|---|---|
private X509Certificate |
certificate
The singleton instance of the certificate produced by this factory.
|
private org.springframework.core.io.Resource |
resource
Certificate chain resource.
|
| Constructor and Description |
|---|
X509CertificateFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setResource(org.springframework.core.io.Resource res)
Sets the certificate resource.
|
private org.springframework.core.io.Resource resource
private X509Certificate certificate
public void setResource(@Nonnull org.springframework.core.io.Resource res)
res - certificate resourcepublic X509Certificate getObject() throws Exception
getObject in interface org.springframework.beans.factory.FactoryBean<X509Certificate>Exception@Nonnull public Class<?> getObjectType()
getObjectType in interface org.springframework.beans.factory.FactoryBean<X509Certificate>public boolean isSingleton()
isSingleton in interface org.springframework.beans.factory.FactoryBean<X509Certificate>Copyright © 1999–2019 Shibboleth Consortium. All rights reserved.