public class ResourceBasedPublicKeyFactoryBean extends Object implements FactoryBean<PublicKey>
Resource
containing data in any of the formats supported by KeyPairUtil.readPublicKey(java.io.InputStream)
.KeyPairUtil.readPublicKey(java.io.InputStream)
Constructor and Description |
---|
ResourceBasedPublicKeyFactoryBean()
Creates a new instance.
|
ResourceBasedPublicKeyFactoryBean(Resource resource)
Creates a new instance by specifying all properties.
|
Modifier and Type | Method and Description |
---|---|
Resource |
getResource() |
PublicKey |
newInstance() |
void |
setResource(Resource resource)
Sets the resource containing key data.
|
public ResourceBasedPublicKeyFactoryBean()
public ResourceBasedPublicKeyFactoryBean(Resource resource)
resource
- Resource containing encoded key data.public Resource getResource()
public void setResource(Resource resource)
resource
- Resource containing key bytes.public PublicKey newInstance() throws EncodingException, StreamException
newInstance
in interface FactoryBean<PublicKey>
EncodingException
StreamException
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.