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()
newInstance
in interface FactoryBean<SecretKey>
Copyright © 2016 JBoss by Red Hat. All rights reserved.