Module net.shibboleth.ext.spring
Class X509CertificateChainFactoryBean
- java.lang.Object
-
- net.shibboleth.ext.spring.factory.X509CertificateChainFactoryBean
-
- All Implemented Interfaces:
FactoryBean<X509Certificate[]>
public class X509CertificateChainFactoryBean extends Object implements FactoryBean<X509Certificate[]>
Spring bean factory for producing aX509Certificatechain from aResource. This factory bean supports DER and PEM encoded certificate resources.
-
-
Field Summary
Fields Modifier and Type Field Description private X509Certificate[]certificatesThe singleton instance of the public certificate chain produced by this factory.private ResourceresourceCertificate chain resource.-
Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE
-
-
Constructor Summary
Constructors Constructor Description X509CertificateChainFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X509Certificate[]getObject()Class<?>getObjectType()booleanisSingleton()voidsetResource(Resource res)Sets the certificate chain resource.
-
-
-
Field Detail
-
resource
private Resource resource
Certificate chain resource.
-
certificates
private X509Certificate[] certificates
The singleton instance of the public certificate chain produced by this factory.
-
-
Method Detail
-
setResource
public void setResource(@Nonnull Resource res)Sets the certificate chain resource.- Parameters:
res- certificate chain resource
-
getObject
public X509Certificate[] getObject() throws Exception
- Specified by:
getObjectin interfaceFactoryBean<X509Certificate[]>- Throws:
Exception
-
getObjectType
@Nonnull public Class<?> getObjectType()
- Specified by:
getObjectTypein interfaceFactoryBean<X509Certificate[]>
-
isSingleton
public boolean isSingleton()
- Specified by:
isSingletonin interfaceFactoryBean<X509Certificate[]>
-
-