Class X509CertificateFactoryBean
java.lang.Object
net.shibboleth.shared.spring.security.factory.X509CertificateFactoryBean
- All Implemented Interfaces:
FactoryBean<X509Certificate>
Spring bean factory for producing a
X509Certificate from a Resource.
This factory bean supports DER and PEM encoded certificate resources.-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate X509CertificateThe singleton instance of the certificate 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 resource.
-
Field Details
-
resource
Certificate chain resource. -
certificate
The singleton instance of the certificate produced by this factory.
-
-
Constructor Details
-
X509CertificateFactoryBean
public X509CertificateFactoryBean()
-
-
Method Details
-
setResource
Sets the certificate resource.- Parameters:
res- certificate resource
-
getObject
- Specified by:
getObjectin interfaceFactoryBean<X509Certificate>- Throws:
Exception
-
getObjectType
- Specified by:
getObjectTypein interfaceFactoryBean<X509Certificate>
-
isSingleton
public boolean isSingleton()- Specified by:
isSingletonin interfaceFactoryBean<X509Certificate>
-