Class CryptoConfig

java.lang.Object
ai.nightfall.scan.model.redaction.CryptoConfig

public class CryptoConfig extends Object
An object that specifies how findings should be encrypted when returned by the API. Currently, encryption is only supported for RSA public keys.
  • Constructor Details

    • CryptoConfig

      public CryptoConfig(String publicKey)
      Builds a configuration object with the provided PEM-formatted RSA public key.
      Parameters:
      publicKey - a PEM-formatted RSA public key.
  • Method Details

    • getPublicKey

      public String getPublicKey()
      Get the public key.
      Returns:
      the public key
    • setPublicKey

      public void setPublicKey(String publicKey)
      Set the public key.
      Parameters:
      publicKey - the public key
    • toString

      public String toString()
      Overrides:
      toString in class Object