Class ArtifactVerificationOptions

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

    public final class ArtifactVerificationOptions
    extends com.google.protobuf.GeneratedMessage
    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
    See Also:
    Serialized Form
    • Field Detail

      • CERTIFICATE_IDENTITIES_FIELD_NUMBER

        public static final int CERTIFICATE_IDENTITIES_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PUBLIC_KEYS_FIELD_NUMBER

        public static final int PUBLIC_KEYS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TLOG_OPTIONS_FIELD_NUMBER

        public static final int TLOG_OPTIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CTLOG_OPTIONS_FIELD_NUMBER

        public static final int CTLOG_OPTIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • TSA_OPTIONS_FIELD_NUMBER

        public static final int TSA_OPTIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • INTEGRATED_TS_OPTIONS_FIELD_NUMBER

        public static final int INTEGRATED_TS_OPTIONS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • OBSERVER_OPTIONS_FIELD_NUMBER

        public static final int OBSERVER_OPTIONS_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
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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.
      • 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 ArtifactVerificationOptions parseFrom​(java.nio.ByteBuffer data)
                                                     throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

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

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

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

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

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

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

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

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

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

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

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

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

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

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

        public com.google.protobuf.Parser<ArtifactVerificationOptions> 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 ArtifactVerificationOptions getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder