Class DsseEnvelope

java.lang.Object
org.apache.commons.release.plugin.slsa.v1_2.DsseEnvelope

public class DsseEnvelope extends Object
DSSE (Dead Simple Signing Envelope) that wraps a signed in-toto statement payload.
Since:
1.10.0
See Also:
  • Field Details

  • Constructor Details

  • Method Details

    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • getPayload

      public byte[] getPayload()
      Gets the serialized payload bytes.

      When serialized to JSON, the bytes are Base64-encoded.

      Returns:
      The payload bytes, or null if not set.
    • getPayloadType

      Gets the payload type URI.
      Returns:
      The payload type, never null in a valid envelope.
    • getSignatures

      Gets the list of signatures over the PAE-encoded payload.
      Returns:
      The signatures, or null if not set.
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • setPayload

      public DsseEnvelope setPayload(byte[] payload)
      Sets the serialized payload bytes.
      Parameters:
      payload - The payload bytes.
      Returns:
      this for chaining.
    • setPayloadType

      public DsseEnvelope setPayloadType(String payloadType)
      Sets the payload type URI.
      Parameters:
      payloadType - The payload type URI.
      Returns:
      this for chaining.
    • setSignatures

      public DsseEnvelope setSignatures(List<Signature> signatures)
      Sets the list of signatures over the PAE-encoded payload.
      Parameters:
      signatures - The signatures.
      Returns:
      this for chaining.
    • toString

      public String toString()
      Overrides:
      toString in class Object