Class ArtifactVerificationOptions.Builder

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

    public static final class ArtifactVerificationOptions.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<ArtifactVerificationOptions.Builder>
    implements ArtifactVerificationOptionsOrBuilder
     A light-weight set of options/policies for identifying trusted signers,
     used during verification of a single artifact.
     
    Protobuf type dev.sigstore.verification.v1.ArtifactVerificationOptions
    • 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<ArtifactVerificationOptions.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<ArtifactVerificationOptions.Builder>
      • getDefaultInstanceForType

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

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

        public ArtifactVerificationOptions 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<ArtifactVerificationOptions.Builder>
      • mergeFrom

        public ArtifactVerificationOptions.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<ArtifactVerificationOptions.Builder>
        Throws:
        java.io.IOException
      • clearCertificateIdentities

        public ArtifactVerificationOptions.Builder clearCertificateIdentities()
        .dev.sigstore.verification.v1.CertificateIdentities certificate_identities = 1;
      • getCertificateIdentitiesBuilder

        public CertificateIdentities.Builder getCertificateIdentitiesBuilder()
        .dev.sigstore.verification.v1.CertificateIdentities certificate_identities = 1;
      • hasPublicKeys

        public boolean hasPublicKeys()
         To simplify verification implementation, the logic for
         bundle verification should be implemented as a
         higher-order function, where one of argument should be an
         interface over the set of trusted public keys, like this:
         `Verify(bytes artifact, bytes signature, string key_id)`.
         This way the caller is in full control of mapping the
         identified (or hinted) key in the bundle to one of the
         trusted keys, as this process is inherently application
         specific.
         
        .dev.sigstore.verification.v1.PublicKeyIdentities public_keys = 2;
        Specified by:
        hasPublicKeys in interface ArtifactVerificationOptionsOrBuilder
        Returns:
        Whether the publicKeys field is set.
      • getPublicKeys

        public PublicKeyIdentities getPublicKeys()
         To simplify verification implementation, the logic for
         bundle verification should be implemented as a
         higher-order function, where one of argument should be an
         interface over the set of trusted public keys, like this:
         `Verify(bytes artifact, bytes signature, string key_id)`.
         This way the caller is in full control of mapping the
         identified (or hinted) key in the bundle to one of the
         trusted keys, as this process is inherently application
         specific.
         
        .dev.sigstore.verification.v1.PublicKeyIdentities public_keys = 2;
        Specified by:
        getPublicKeys in interface ArtifactVerificationOptionsOrBuilder
        Returns:
        The publicKeys.
      • setPublicKeys

        public ArtifactVerificationOptions.Builder setPublicKeys​(PublicKeyIdentities value)
         To simplify verification implementation, the logic for
         bundle verification should be implemented as a
         higher-order function, where one of argument should be an
         interface over the set of trusted public keys, like this:
         `Verify(bytes artifact, bytes signature, string key_id)`.
         This way the caller is in full control of mapping the
         identified (or hinted) key in the bundle to one of the
         trusted keys, as this process is inherently application
         specific.
         
        .dev.sigstore.verification.v1.PublicKeyIdentities public_keys = 2;
      • setPublicKeys

        public ArtifactVerificationOptions.Builder setPublicKeys​(PublicKeyIdentities.Builder builderForValue)
         To simplify verification implementation, the logic for
         bundle verification should be implemented as a
         higher-order function, where one of argument should be an
         interface over the set of trusted public keys, like this:
         `Verify(bytes artifact, bytes signature, string key_id)`.
         This way the caller is in full control of mapping the
         identified (or hinted) key in the bundle to one of the
         trusted keys, as this process is inherently application
         specific.
         
        .dev.sigstore.verification.v1.PublicKeyIdentities public_keys = 2;
      • mergePublicKeys

        public ArtifactVerificationOptions.Builder mergePublicKeys​(PublicKeyIdentities value)
         To simplify verification implementation, the logic for
         bundle verification should be implemented as a
         higher-order function, where one of argument should be an
         interface over the set of trusted public keys, like this:
         `Verify(bytes artifact, bytes signature, string key_id)`.
         This way the caller is in full control of mapping the
         identified (or hinted) key in the bundle to one of the
         trusted keys, as this process is inherently application
         specific.
         
        .dev.sigstore.verification.v1.PublicKeyIdentities public_keys = 2;
      • clearPublicKeys

        public ArtifactVerificationOptions.Builder clearPublicKeys()
         To simplify verification implementation, the logic for
         bundle verification should be implemented as a
         higher-order function, where one of argument should be an
         interface over the set of trusted public keys, like this:
         `Verify(bytes artifact, bytes signature, string key_id)`.
         This way the caller is in full control of mapping the
         identified (or hinted) key in the bundle to one of the
         trusted keys, as this process is inherently application
         specific.
         
        .dev.sigstore.verification.v1.PublicKeyIdentities public_keys = 2;
      • getPublicKeysBuilder

        public PublicKeyIdentities.Builder getPublicKeysBuilder()
         To simplify verification implementation, the logic for
         bundle verification should be implemented as a
         higher-order function, where one of argument should be an
         interface over the set of trusted public keys, like this:
         `Verify(bytes artifact, bytes signature, string key_id)`.
         This way the caller is in full control of mapping the
         identified (or hinted) key in the bundle to one of the
         trusted keys, as this process is inherently application
         specific.
         
        .dev.sigstore.verification.v1.PublicKeyIdentities public_keys = 2;
      • getPublicKeysOrBuilder

        public PublicKeyIdentitiesOrBuilder getPublicKeysOrBuilder()
         To simplify verification implementation, the logic for
         bundle verification should be implemented as a
         higher-order function, where one of argument should be an
         interface over the set of trusted public keys, like this:
         `Verify(bytes artifact, bytes signature, string key_id)`.
         This way the caller is in full control of mapping the
         identified (or hinted) key in the bundle to one of the
         trusted keys, as this process is inherently application
         specific.
         
        .dev.sigstore.verification.v1.PublicKeyIdentities public_keys = 2;
        Specified by:
        getPublicKeysOrBuilder in interface ArtifactVerificationOptionsOrBuilder
      • hasTlogOptions

        public boolean hasTlogOptions()
         Optional options for artifact transparency log verification.
         If none is provided, the default verification options are:
         Threshold: 1
         Online verification: false
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions tlog_options = 3;
        Specified by:
        hasTlogOptions in interface ArtifactVerificationOptionsOrBuilder
        Returns:
        Whether the tlogOptions field is set.
      • getTlogOptions

        public ArtifactVerificationOptions.TlogOptions getTlogOptions()
         Optional options for artifact transparency log verification.
         If none is provided, the default verification options are:
         Threshold: 1
         Online verification: false
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions tlog_options = 3;
        Specified by:
        getTlogOptions in interface ArtifactVerificationOptionsOrBuilder
        Returns:
        The tlogOptions.
      • setTlogOptions

        public ArtifactVerificationOptions.Builder setTlogOptions​(ArtifactVerificationOptions.TlogOptions value)
         Optional options for artifact transparency log verification.
         If none is provided, the default verification options are:
         Threshold: 1
         Online verification: false
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions tlog_options = 3;
      • setTlogOptions

        public ArtifactVerificationOptions.Builder setTlogOptions​(ArtifactVerificationOptions.TlogOptions.Builder builderForValue)
         Optional options for artifact transparency log verification.
         If none is provided, the default verification options are:
         Threshold: 1
         Online verification: false
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions tlog_options = 3;
      • mergeTlogOptions

        public ArtifactVerificationOptions.Builder mergeTlogOptions​(ArtifactVerificationOptions.TlogOptions value)
         Optional options for artifact transparency log verification.
         If none is provided, the default verification options are:
         Threshold: 1
         Online verification: false
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions tlog_options = 3;
      • clearTlogOptions

        public ArtifactVerificationOptions.Builder clearTlogOptions()
         Optional options for artifact transparency log verification.
         If none is provided, the default verification options are:
         Threshold: 1
         Online verification: false
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions tlog_options = 3;
      • getTlogOptionsBuilder

        public ArtifactVerificationOptions.TlogOptions.Builder getTlogOptionsBuilder()
         Optional options for artifact transparency log verification.
         If none is provided, the default verification options are:
         Threshold: 1
         Online verification: false
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions tlog_options = 3;
      • hasCtlogOptions

        public boolean hasCtlogOptions()
         Optional options for certificate transparency log verification.
         If none is provided, the default verification options are:
         Threshold: 1
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions ctlog_options = 4;
        Specified by:
        hasCtlogOptions in interface ArtifactVerificationOptionsOrBuilder
        Returns:
        Whether the ctlogOptions field is set.
      • setCtlogOptions

        public ArtifactVerificationOptions.Builder setCtlogOptions​(ArtifactVerificationOptions.CtlogOptions value)
         Optional options for certificate transparency log verification.
         If none is provided, the default verification options are:
         Threshold: 1
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions ctlog_options = 4;
      • mergeCtlogOptions

        public ArtifactVerificationOptions.Builder mergeCtlogOptions​(ArtifactVerificationOptions.CtlogOptions value)
         Optional options for certificate transparency log verification.
         If none is provided, the default verification options are:
         Threshold: 1
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions ctlog_options = 4;
      • clearCtlogOptions

        public ArtifactVerificationOptions.Builder clearCtlogOptions()
         Optional options for certificate transparency log verification.
         If none is provided, the default verification options are:
         Threshold: 1
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions ctlog_options = 4;
      • getCtlogOptionsBuilder

        public ArtifactVerificationOptions.CtlogOptions.Builder getCtlogOptionsBuilder()
         Optional options for certificate transparency log verification.
         If none is provided, the default verification options are:
         Threshold: 1
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions ctlog_options = 4;
      • hasTsaOptions

        public boolean hasTsaOptions()
         Optional options for certificate signed timestamp verification.
         If none is provided, the default verification options are:
         Threshold: 0
         Disable: true
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions tsa_options = 5;
        Specified by:
        hasTsaOptions in interface ArtifactVerificationOptionsOrBuilder
        Returns:
        Whether the tsaOptions field is set.
      • clearTsaOptions

        public ArtifactVerificationOptions.Builder clearTsaOptions()
         Optional options for certificate signed timestamp verification.
         If none is provided, the default verification options are:
         Threshold: 0
         Disable: true
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions tsa_options = 5;
      • getTsaOptionsBuilder

        public ArtifactVerificationOptions.TimestampAuthorityOptions.Builder getTsaOptionsBuilder()
         Optional options for certificate signed timestamp verification.
         If none is provided, the default verification options are:
         Threshold: 0
         Disable: true
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions tsa_options = 5;
      • hasIntegratedTsOptions

        public boolean hasIntegratedTsOptions()
         Optional options for integrated timestamp verification.
         If none is provided, the default verification options are:
         Threshold: 0
         Disable: true
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogIntegratedTimestampOptions integrated_ts_options = 6;
        Specified by:
        hasIntegratedTsOptions in interface ArtifactVerificationOptionsOrBuilder
        Returns:
        Whether the integratedTsOptions field is set.
      • clearIntegratedTsOptions

        public ArtifactVerificationOptions.Builder clearIntegratedTsOptions()
         Optional options for integrated timestamp verification.
         If none is provided, the default verification options are:
         Threshold: 0
         Disable: true
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogIntegratedTimestampOptions integrated_ts_options = 6;
      • getIntegratedTsOptionsBuilder

        public ArtifactVerificationOptions.TlogIntegratedTimestampOptions.Builder getIntegratedTsOptionsBuilder()
         Optional options for integrated timestamp verification.
         If none is provided, the default verification options are:
         Threshold: 0
         Disable: true
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.TlogIntegratedTimestampOptions integrated_ts_options = 6;
      • hasObserverOptions

        public boolean hasObserverOptions()
         Optional options for observed timestamp verification.
         If none is provided, the default verification options are:
         Threshold 1
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptions observer_options = 7;
        Specified by:
        hasObserverOptions in interface ArtifactVerificationOptionsOrBuilder
        Returns:
        Whether the observerOptions field is set.
      • clearObserverOptions

        public ArtifactVerificationOptions.Builder clearObserverOptions()
         Optional options for observed timestamp verification.
         If none is provided, the default verification options are:
         Threshold 1
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptions observer_options = 7;
      • getObserverOptionsBuilder

        public ArtifactVerificationOptions.ObserverTimestampOptions.Builder getObserverOptionsBuilder()
         Optional options for observed timestamp verification.
         If none is provided, the default verification options are:
         Threshold 1
         Disable: false
         
        optional .dev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptions observer_options = 7;