Class Bundle


  • @Immutable
    public abstract class Bundle
    extends java.lang.Object
    A representation of sigstore signing materials. See protobuf-specs
    • Constructor Detail

      • Bundle

        public Bundle()
    • Method Detail

      • getMediaType

        @Default
        public java.lang.String getMediaType()
        The bundle version
      • getMessageSignature

        public abstract java.util.Optional<Bundle.MessageSignature> getMessageSignature()
        A signature represented as a signature and digest
      • getDSSESignature

        public abstract java.util.Optional<Bundle.DSSESignature> getDSSESignature()
        A DSSE envelope signature type that may contain an arbitrary payload
      • checkOnlyOneSignature

        @Check
        protected void checkOnlyOneSignature()
      • checkAtLeastOneTimestamp

        @Check
        protected void checkAtLeastOneTimestamp()
      • getCertPath

        public abstract java.security.cert.CertPath getCertPath()
        The partial certificate chain provided by fulcio for the public key and identity used to sign the artifact, this should NOT contain the trusted root or any trusted intermediates. But users of this object should understand that older signatures may include the full chain.
      • getEntries

        public abstract java.util.List<RekorEntry> getEntries()
        The entry in the rekor transparency log (represented as a list for future compatibility, but currently only allow for at most one entry.
      • getTimestamps

        public abstract java.util.List<Bundle.Timestamp> getTimestamps()
        A list of timestamps to verify the time of signing. Currently, allows rfc3161 timestamps.
      • from

        public static Bundle from​(java.nio.file.Path file,
                                  java.nio.charset.Charset cs)
                           throws BundleParseException,
                                  java.io.IOException
        Read a json formatted bundle from a file.
        Throws:
        BundleParseException
        java.io.IOException
      • toJson

        @Lazy
        public java.lang.String toJson()