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