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 Details

    • SimpleAsymmetricConfig

      public SimpleAsymmetricConfig()
  • Method Details

    • loadPrivateKeyResource

      public org.springframework.core.io.Resource loadPrivateKeyResource()

      loadPrivateKeyResource.

      Returns:
      a Resource object
    • loadPublicKeyResource

      public org.springframework.core.io.Resource loadPublicKeyResource()

      loadPublicKeyResource.

      Returns:
      a Resource object
    • setKeyFormat

      public void setKeyFormat(AsymmetricCryptography.KeyFormat keyFormat)

      setKeyFormat.

      Parameters:
      keyFormat - a AsymmetricCryptography.KeyFormat object