Module net.shibboleth.ext.spring
Class X509CertificateFactoryBean
- java.lang.Object
-
- net.shibboleth.ext.spring.factory.X509CertificateFactoryBean
-
- All Implemented Interfaces:
FactoryBean<X509Certificate>
public class X509CertificateFactoryBean extends Object implements FactoryBean<X509Certificate>
Spring bean factory for producing aX509Certificatefrom aResource. This factory bean supports DER and PEM encoded certificate resources.
-
-
Field Summary
Fields Modifier and Type Field Description private X509CertificatecertificateThe singleton instance of the certificate 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 X509CertificateFactoryBean()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description X509CertificategetObject()Class<?>getObjectType()booleanisSingleton()voidsetResource(Resource res)Sets the certificate resource.
-
-
-
Field Detail
-
resource
private Resource resource
Certificate chain resource.
-
certificate
private X509Certificate certificate
The singleton instance of the certificate produced by this factory.
-
-
Method Detail
-
setResource
public void setResource(@Nonnull Resource res)Sets the certificate resource.- Parameters:
res- certificate 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>
-
-