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
- 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()org.springframework.core.io.ResourceloadPublicKeyResource()voidsetKeyFormat(AsymmetricCryptography.KeyFormat keyFormat)
-
-
-
Method Detail
-
loadPrivateKeyResource
public org.springframework.core.io.Resource loadPrivateKeyResource()
-
loadPublicKeyResource
public org.springframework.core.io.Resource loadPublicKeyResource()
-
setKeyFormat
public void setKeyFormat(AsymmetricCryptography.KeyFormat keyFormat)
-
-