public class ResourceBasedSecretKeyFactoryBean extends Object implements FactoryBean<SecretKey>
Constructor and Description |
---|
ResourceBasedSecretKeyFactoryBean()
Creates a new instance.
|
ResourceBasedSecretKeyFactoryBean(Resource resource,
String algorithm)
Creates a new instance by specifying all properties.
|
Modifier and Type | Method and Description |
---|---|
String |
getAlgorithm() |
Resource |
getResource() |
SecretKey |
newInstance() |
void |
setAlgorithm(String algorithm)
Sets the key algorithm.
|
void |
setResource(Resource resource)
Sets the resource containing key data.
|
public ResourceBasedSecretKeyFactoryBean()
public String getAlgorithm()
public void setAlgorithm(String algorithm)
algorithm
- Secret key algorithm, e.g. AES.public Resource getResource()
public void setResource(Resource resource)
resource
- Resource containing key bytes.public SecretKey newInstance() throws StreamException
newInstance
in interface FactoryBean<SecretKey>
StreamException
Copyright © 2003-2024 Virginia Tech. All Rights Reserved.