Class VerificationMaterial

  • All Implemented Interfaces:
    com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, VerificationMaterialOrBuilder, java.io.Serializable

    public final class VerificationMaterial
    extends com.google.protobuf.GeneratedMessage
    implements VerificationMaterialOrBuilder
     VerificationMaterial captures details on the materials used to verify
     signatures. This message may be embedded in a DSSE envelope as a signature
     extension. Specifically, the `ext` field of the extension will expect this
     message when the signature extension is for Sigstore. This is identified by
     the `kind` field in the extension, which must be set to
     application/vnd.dev.sigstore.verificationmaterial;version=0.1 for Sigstore.
     When used as a DSSE extension, if the `public_key` field is used to indicate
     the key identifier, it MUST match the `keyid` field of the signature the
     extension is attached to.
     
    Protobuf type dev.sigstore.bundle.v1.VerificationMaterial
    See Also:
    Serialized Form
    • Field Detail

      • PUBLIC_KEY_FIELD_NUMBER

        public static final int PUBLIC_KEY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • X509_CERTIFICATE_CHAIN_FIELD_NUMBER

        public static final int X509_CERTIFICATE_CHAIN_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CERTIFICATE_FIELD_NUMBER

        public static final int CERTIFICATE_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TLOG_ENTRIES_FIELD_NUMBER

        public static final int TLOG_ENTRIES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TIMESTAMP_VERIFICATION_DATA_FIELD_NUMBER

        public static final int TIMESTAMP_VERIFICATION_DATA_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessage
      • hasPublicKey

        public boolean hasPublicKey()
        .dev.sigstore.common.v1.PublicKeyIdentifier public_key = 1 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasPublicKey in interface VerificationMaterialOrBuilder
        Returns:
        Whether the publicKey field is set.
      • hasX509CertificateChain

        public boolean hasX509CertificateChain()
        .dev.sigstore.common.v1.X509CertificateChain x509_certificate_chain = 2 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasX509CertificateChain in interface VerificationMaterialOrBuilder
        Returns:
        Whether the x509CertificateChain field is set.
      • hasCertificate

        public boolean hasCertificate()
        .dev.sigstore.common.v1.X509Certificate certificate = 5 [(.google.api.field_behavior) = REQUIRED];
        Specified by:
        hasCertificate in interface VerificationMaterialOrBuilder
        Returns:
        Whether the certificate field is set.
      • getTlogEntriesList

        public java.util.List<TransparencyLogEntry> getTlogEntriesList()
         An inclusion proof and an optional signed timestamp from the log.
         Client verification libraries MAY provide an option to support v0.1
         bundles for backwards compatibility, which may contain an inclusion
         promise and not an inclusion proof. In this case, the client MUST
         validate the promise.
         Verifiers SHOULD NOT allow v0.1 bundles if they're used in an
         ecosystem which never produced them.
         
        repeated .dev.sigstore.rekor.v1.TransparencyLogEntry tlog_entries = 3;
        Specified by:
        getTlogEntriesList in interface VerificationMaterialOrBuilder
      • getTlogEntriesOrBuilderList

        public java.util.List<? extends TransparencyLogEntryOrBuilder> getTlogEntriesOrBuilderList()
         An inclusion proof and an optional signed timestamp from the log.
         Client verification libraries MAY provide an option to support v0.1
         bundles for backwards compatibility, which may contain an inclusion
         promise and not an inclusion proof. In this case, the client MUST
         validate the promise.
         Verifiers SHOULD NOT allow v0.1 bundles if they're used in an
         ecosystem which never produced them.
         
        repeated .dev.sigstore.rekor.v1.TransparencyLogEntry tlog_entries = 3;
        Specified by:
        getTlogEntriesOrBuilderList in interface VerificationMaterialOrBuilder
      • getTlogEntriesCount

        public int getTlogEntriesCount()
         An inclusion proof and an optional signed timestamp from the log.
         Client verification libraries MAY provide an option to support v0.1
         bundles for backwards compatibility, which may contain an inclusion
         promise and not an inclusion proof. In this case, the client MUST
         validate the promise.
         Verifiers SHOULD NOT allow v0.1 bundles if they're used in an
         ecosystem which never produced them.
         
        repeated .dev.sigstore.rekor.v1.TransparencyLogEntry tlog_entries = 3;
        Specified by:
        getTlogEntriesCount in interface VerificationMaterialOrBuilder
      • getTlogEntries

        public TransparencyLogEntry getTlogEntries​(int index)
         An inclusion proof and an optional signed timestamp from the log.
         Client verification libraries MAY provide an option to support v0.1
         bundles for backwards compatibility, which may contain an inclusion
         promise and not an inclusion proof. In this case, the client MUST
         validate the promise.
         Verifiers SHOULD NOT allow v0.1 bundles if they're used in an
         ecosystem which never produced them.
         
        repeated .dev.sigstore.rekor.v1.TransparencyLogEntry tlog_entries = 3;
        Specified by:
        getTlogEntries in interface VerificationMaterialOrBuilder
      • getTlogEntriesOrBuilder

        public TransparencyLogEntryOrBuilder getTlogEntriesOrBuilder​(int index)
         An inclusion proof and an optional signed timestamp from the log.
         Client verification libraries MAY provide an option to support v0.1
         bundles for backwards compatibility, which may contain an inclusion
         promise and not an inclusion proof. In this case, the client MUST
         validate the promise.
         Verifiers SHOULD NOT allow v0.1 bundles if they're used in an
         ecosystem which never produced them.
         
        repeated .dev.sigstore.rekor.v1.TransparencyLogEntry tlog_entries = 3;
        Specified by:
        getTlogEntriesOrBuilder in interface VerificationMaterialOrBuilder
      • hasTimestampVerificationData

        public boolean hasTimestampVerificationData()
         Timestamp may also come from
         tlog_entries.inclusion_promise.signed_entry_timestamp.
         
        .dev.sigstore.bundle.v1.TimestampVerificationData timestamp_verification_data = 4;
        Specified by:
        hasTimestampVerificationData in interface VerificationMaterialOrBuilder
        Returns:
        Whether the timestampVerificationData field is set.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws java.io.IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessage
        Throws:
        java.io.IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessage
      • equals

        public boolean equals​(java.lang.Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static VerificationMaterial parseFrom​(java.nio.ByteBuffer data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VerificationMaterial parseFrom​(java.nio.ByteBuffer data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VerificationMaterial parseFrom​(com.google.protobuf.ByteString data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VerificationMaterial parseFrom​(com.google.protobuf.ByteString data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VerificationMaterial parseFrom​(byte[] data)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VerificationMaterial parseFrom​(byte[] data,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static VerificationMaterial parseFrom​(java.io.InputStream input)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static VerificationMaterial parseFrom​(java.io.InputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static VerificationMaterial parseDelimitedFrom​(java.io.InputStream input)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseDelimitedFrom

        public static VerificationMaterial parseDelimitedFrom​(java.io.InputStream input,
                                                              com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                       throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static VerificationMaterial parseFrom​(com.google.protobuf.CodedInputStream input)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • parseFrom

        public static VerificationMaterial parseFrom​(com.google.protobuf.CodedInputStream input,
                                                     com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                              throws java.io.IOException
        Throws:
        java.io.IOException
      • newBuilderForType

        public VerificationMaterial.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public VerificationMaterial.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected VerificationMaterial.Builder newBuilderForType​(com.google.protobuf.AbstractMessage.BuilderParent parent)
        Overrides:
        newBuilderForType in class com.google.protobuf.AbstractMessage
      • getParserForType

        public com.google.protobuf.Parser<VerificationMaterial> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessage
      • getDefaultInstanceForType

        public VerificationMaterial getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder