Class Secret

java.lang.Object
org.saidone.service.crypto.Secret

public class Secret extends Object
Container for a secret value retrieved from Vault.

Instances of this class are produced by SecretService when fetching encryption material. The version corresponds to the version number reported by Vault while data holds the secret bytes.

  • Field Details

    • version

      public int version
      Version of the secret as stored in Vault metadata.
    • data

      public byte[] data
      Raw secret bytes retrieved from Vault.
  • Constructor Details

    • Secret

      public Secret()