Class SimpleAsymmetricConfig
- java.lang.Object
-
- com.ulisesbocchio.jasyptspringboot.encryptor.SimpleAsymmetricConfig
-
public class SimpleAsymmetricConfig extends Object
High level configuration class that provides a fallback mechanism to load private/public keys from three different sources in the following order:A Spring Resource
A String containing the public/private key
A String containing the resource location that contains the public/private key
- Version:
- $Id: $Id
- Author:
- Ulises Bocchio
-
-
Constructor Summary
Constructors Constructor Description SimpleAsymmetricConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description org.springframework.core.io.ResourceloadPrivateKeyResource()loadPrivateKeyResource.org.springframework.core.io.ResourceloadPublicKeyResource()loadPublicKeyResource.voidsetKeyFormat(AsymmetricCryptography.KeyFormat keyFormat)setKeyFormat.
-
-
-
Method Detail
-
loadPrivateKeyResource
public org.springframework.core.io.Resource loadPrivateKeyResource()
loadPrivateKeyResource.
- Returns:
- a
Resourceobject
-
loadPublicKeyResource
public org.springframework.core.io.Resource loadPublicKeyResource()
loadPublicKeyResource.
- Returns:
- a
Resourceobject
-
setKeyFormat
public void setKeyFormat(AsymmetricCryptography.KeyFormat keyFormat)
setKeyFormat.
- Parameters:
keyFormat- aAsymmetricCryptography.KeyFormatobject
-
-