Class X509CertificateChainFactoryBean
java.lang.Object
net.shibboleth.shared.spring.security.factory.X509CertificateChainFactoryBean
- All Implemented Interfaces:
FactoryBean<X509Certificate[]>
public class X509CertificateChainFactoryBean
extends Object
implements FactoryBean<X509Certificate[]>
Spring bean factory for producing a
X509Certificate chain from a Resource.
This factory bean supports DER and PEM encoded certificate resources.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate X509Certificate[]The singleton instance of the public certificate chain produced by this factory.private ResourceCertificate chain resource.Fields inherited from interface org.springframework.beans.factory.FactoryBean
OBJECT_TYPE_ATTRIBUTE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionClass<?>booleanvoidsetResource(Resource res) Sets the certificate chain resource.
-
Field Details
-
resource
Certificate chain resource. -
certificates
The singleton instance of the public certificate chain produced by this factory.
-
-
Constructor Details
-
X509CertificateChainFactoryBean
public X509CertificateChainFactoryBean()
-
-
Method Details
-
setResource
Sets the certificate chain resource.- Parameters:
res- certificate chain resource
-
getObject
- Specified by:
getObjectin interfaceFactoryBean<X509Certificate[]>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<X509Certificate[]>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceFactoryBean<X509Certificate[]>
-