Class TimestampVerificationData.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, TimestampVerificationDataOrBuilder, java.lang.Cloneable
    Enclosing class:
    TimestampVerificationData

    public static final class TimestampVerificationData.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<TimestampVerificationData.Builder>
    implements TimestampVerificationDataOrBuilder
     Various timestamped counter signatures over the artifacts signature.
     Currently only RFC3161 signatures are provided. More formats may be added
     in the future.
     
    Protobuf type dev.sigstore.bundle.v1.TimestampVerificationData
    • 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.Builder<TimestampVerificationData.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<TimestampVerificationData.Builder>
      • getDefaultInstanceForType

        public TimestampVerificationData getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public TimestampVerificationData build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public TimestampVerificationData buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<TimestampVerificationData.Builder>
      • mergeFrom

        public TimestampVerificationData.Builder mergeFrom​(com.google.protobuf.CodedInputStream input,
                                                           com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                    throws java.io.IOException
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<TimestampVerificationData.Builder>
        Throws:
        java.io.IOException
      • getRfc3161TimestampsList

        public java.util.List<RFC3161SignedTimestamp> getRfc3161TimestampsList()
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
        Specified by:
        getRfc3161TimestampsList in interface TimestampVerificationDataOrBuilder
      • getRfc3161TimestampsCount

        public int getRfc3161TimestampsCount()
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
        Specified by:
        getRfc3161TimestampsCount in interface TimestampVerificationDataOrBuilder
      • getRfc3161Timestamps

        public RFC3161SignedTimestamp getRfc3161Timestamps​(int index)
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
        Specified by:
        getRfc3161Timestamps in interface TimestampVerificationDataOrBuilder
      • setRfc3161Timestamps

        public TimestampVerificationData.Builder setRfc3161Timestamps​(int index,
                                                                      RFC3161SignedTimestamp value)
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
      • setRfc3161Timestamps

        public TimestampVerificationData.Builder setRfc3161Timestamps​(int index,
                                                                      RFC3161SignedTimestamp.Builder builderForValue)
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
      • addRfc3161Timestamps

        public TimestampVerificationData.Builder addRfc3161Timestamps​(RFC3161SignedTimestamp value)
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
      • addRfc3161Timestamps

        public TimestampVerificationData.Builder addRfc3161Timestamps​(int index,
                                                                      RFC3161SignedTimestamp value)
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
      • addRfc3161Timestamps

        public TimestampVerificationData.Builder addRfc3161Timestamps​(RFC3161SignedTimestamp.Builder builderForValue)
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
      • addRfc3161Timestamps

        public TimestampVerificationData.Builder addRfc3161Timestamps​(int index,
                                                                      RFC3161SignedTimestamp.Builder builderForValue)
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
      • addAllRfc3161Timestamps

        public TimestampVerificationData.Builder addAllRfc3161Timestamps​(java.lang.Iterable<? extends RFC3161SignedTimestamp> values)
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
      • clearRfc3161Timestamps

        public TimestampVerificationData.Builder clearRfc3161Timestamps()
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
      • removeRfc3161Timestamps

        public TimestampVerificationData.Builder removeRfc3161Timestamps​(int index)
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
      • getRfc3161TimestampsBuilder

        public RFC3161SignedTimestamp.Builder getRfc3161TimestampsBuilder​(int index)
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
      • getRfc3161TimestampsOrBuilder

        public RFC3161SignedTimestampOrBuilder getRfc3161TimestampsOrBuilder​(int index)
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
        Specified by:
        getRfc3161TimestampsOrBuilder in interface TimestampVerificationDataOrBuilder
      • getRfc3161TimestampsOrBuilderList

        public java.util.List<? extends RFC3161SignedTimestampOrBuilder> getRfc3161TimestampsOrBuilderList()
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
        Specified by:
        getRfc3161TimestampsOrBuilderList in interface TimestampVerificationDataOrBuilder
      • addRfc3161TimestampsBuilder

        public RFC3161SignedTimestamp.Builder addRfc3161TimestampsBuilder()
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
      • addRfc3161TimestampsBuilder

        public RFC3161SignedTimestamp.Builder addRfc3161TimestampsBuilder​(int index)
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;
      • getRfc3161TimestampsBuilderList

        public java.util.List<RFC3161SignedTimestamp.Builder> getRfc3161TimestampsBuilderList()
         A list of RFC3161 signed timestamps provided by the user.
         This can be used when the entry has not been stored on a
         transparency log, or in conjunction for a stronger trust model.
         Clients MUST verify the hashed message in the message imprint
         against the signature in the bundle.
         
        repeated .dev.sigstore.common.v1.RFC3161SignedTimestamp rfc3161_timestamps = 1;