public class X509CertificateFactoryBean extends Object implements FactoryBean<X509Certificate>
X509Certificate from a file.
This factory bean supports DER and PEM encoded certificate files.| Modifier and Type | Field and Description |
|---|---|
private File |
certFile
Certificate chain file.
|
private X509Certificate |
certificate
The singleton instance of the certificate produced by this factory.
|
| Constructor and Description |
|---|
X509CertificateFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setCertificateFile(File file)
Sets the certificate chain file.
|
private File certFile
private X509Certificate certificate
public void setCertificateFile(@Nonnull File file)
file - certificate chain filepublic X509Certificate getObject() throws Exception
getObject in interface FactoryBean<X509Certificate>Exception@Nonnull public Class<?> getObjectType()
getObjectType in interface FactoryBean<X509Certificate>public boolean isSingleton()
isSingleton in interface FactoryBean<X509Certificate>Copyright © 1999-2013. All Rights Reserved.