Class DsseEnvelope
java.lang.Object
org.apache.commons.release.plugin.slsa.v1_2.DsseEnvelope
DSSE (Dead Simple Signing Envelope) that wraps a signed in-toto statement payload.
- Since:
- 1.10.0
- See Also:
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionCreates a new DsseEnvelope instance withpayloadTypepre-set toPAYLOAD_TYPE. -
Method Summary
Modifier and TypeMethodDescriptionbooleanbyte[]Gets the serialized payload bytes.Gets the payload type URI.Gets the list of signatures over the PAE-encoded payload.inthashCode()setPayload(byte[] payload) Sets the serialized payload bytes.setPayloadType(String payloadType) Sets the payload type URI.setSignatures(List<Signature> signatures) Sets the list of signatures over the PAE-encoded payload.toString()
-
Field Details
-
PAYLOAD_TYPE
The payload type URI for in-toto attestation statements.- See Also:
-
payload
Serialized statement bytes, Base64-encoded in JSON. -
payloadType
Content type identifying the format ofpayload. -
signatures
One or more signatures over the PAE-encoded payload.
-
-
Constructor Details
-
DsseEnvelope
public DsseEnvelope()Creates a new DsseEnvelope instance withpayloadTypepre-set toPAYLOAD_TYPE.
-
-
Method Details
-
equals
-
getPayload
Gets the serialized payload bytes.When serialized to JSON, the bytes are Base64-encoded.
- Returns:
- The payload bytes, or
nullif not set.
-
getPayloadType
Gets the payload type URI.- Returns:
- The payload type, never
nullin a valid envelope.
-
getSignatures
Gets the list of signatures over the PAE-encoded payload.- Returns:
- The signatures, or
nullif not set.
-
hashCode
-
setPayload
Sets the serialized payload bytes.- Parameters:
payload- The payload bytes.- Returns:
- this for chaining.
-
setPayloadType
Sets the payload type URI.- Parameters:
payloadType- The payload type URI.- Returns:
- this for chaining.
-
setSignatures
Sets the list of signatures over the PAE-encoded payload.- Parameters:
signatures- The signatures.- Returns:
- this for chaining.
-
toString
-