Class Signature

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

public class Signature extends Object
A single cryptographic signature within a DSSE envelope.
Since:
1.10.0
See Also:
  • Constructor Details

    • Signature

      public Signature()
      Creates a new Signature instance.
  • Method Details

    • equals

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

      public String getKeyid()
      Gets the key identifier hint, or null if not set.
      Returns:
      The key identifier, or null
    • getSig

      public byte[] getSig()
      Gets the raw signature bytes.
      Returns:
      The signature bytes, or null if not set.
    • hashCode

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

      public Signature setKeyid(String keyid)
      Sets the key identifier hint.
      Parameters:
      keyid - The key identifier, or null to leave unset.
      Returns:
      this for chaining.
    • setSig

      public Signature setSig(byte[] sig)
      Sets the raw signature bytes.
      Parameters:
      sig - The signature bytes.
      Returns:
      this for chaining.
    • toString

      public String toString()
      Overrides:
      toString in class Object