public class X509CertificateChainFactoryBean extends Object implements FactoryBean<X509Certificate[]>
X509Certificate chains from a file.
This factory bean supports DER and PEM encoded certificate files.| Modifier and Type | Field and Description |
|---|---|
private File |
certChainFile
Certificate chain file.
|
private X509Certificate[] |
certificates
The singleton instance of the public certificate chain produced by this factory.
|
| Constructor and Description |
|---|
X509CertificateChainFactoryBean() |
| Modifier and Type | Method and Description |
|---|---|
X509Certificate[] |
getObject() |
Class<?> |
getObjectType() |
boolean |
isSingleton() |
void |
setCertificateChainFile(File file)
Sets the certificate chain file.
|
private File certChainFile
private X509Certificate[] certificates
public void setCertificateChainFile(@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.