Class ArtifactVerificationOptions
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
dev.sigstore.proto.verification.v1.ArtifactVerificationOptions
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,ArtifactVerificationOptionsOrBuilder
,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:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
A light-weight set of options/policies for identifying trusted signers, used during verification of a single artifact.static final class
Protobuf typedev.sigstore.verification.v1.ArtifactVerificationOptions.CtlogOptions
static interface
static final class
Protobuf typedev.sigstore.verification.v1.ArtifactVerificationOptions.ObserverTimestampOptions
static interface
static enum
static final class
Protobuf typedev.sigstore.verification.v1.ArtifactVerificationOptions.TimestampAuthorityOptions
static interface
static final class
Protobuf typedev.sigstore.verification.v1.ArtifactVerificationOptions.TlogIntegratedTimestampOptions
static interface
static final class
Protobuf typedev.sigstore.verification.v1.ArtifactVerificationOptions.TlogOptions
static interface
Nested classes/interfaces inherited from class com.google.protobuf.GeneratedMessage
com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>,
BuilderT extends com.google.protobuf.GeneratedMessage.ExtendableBuilder<MessageT, BuilderT>>, com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.ExtendableMessageOrBuilder<MessageT extends com.google.protobuf.GeneratedMessage.ExtendableMessage<MessageT>>, com.google.protobuf.GeneratedMessage.FieldAccessorTable, com.google.protobuf.GeneratedMessage.GeneratedExtension<ContainingT extends com.google.protobuf.Message, T extends Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessage
com.google.protobuf.AbstractMessage.BuilderParent
Nested classes/interfaces inherited from class com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessageLite.InternalOneOfEnum
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
static final int
Fields inherited from class com.google.protobuf.GeneratedMessage
alwaysUseFieldBuilders, unknownFields
Fields inherited from class com.google.protobuf.AbstractMessage
memoizedSize
Fields inherited from class com.google.protobuf.AbstractMessageLite
memoizedHashCode
-
Method Summary
Modifier and TypeMethodDescriptionboolean
.dev.sigstore.verification.v1.CertificateIdentities certificate_identities = 1;
.dev.sigstore.verification.v1.CertificateIdentities certificate_identities = 1;
Optional options for certificate transparency log verification.Optional options for certificate transparency log verification.static ArtifactVerificationOptions
static final com.google.protobuf.Descriptors.Descriptor
Optional options for integrated timestamp verification.Optional options for integrated timestamp verification.Optional options for observed timestamp verification.Optional options for observed timestamp verification.com.google.protobuf.Parser<ArtifactVerificationOptions>
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)`.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)`.int
Optional options for artifact transparency log verification.Optional options for artifact transparency log verification.Optional options for certificate signed timestamp verification.Optional options for certificate signed timestamp verification.boolean
.dev.sigstore.verification.v1.CertificateIdentities certificate_identities = 1;
boolean
Optional options for certificate transparency log verification.int
hashCode()
boolean
Optional options for integrated timestamp verification.boolean
Optional options for observed timestamp verification.boolean
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)`.boolean
Optional options for artifact transparency log verification.boolean
Optional options for certificate signed timestamp verification.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
newBuilder
(ArtifactVerificationOptions prototype) protected ArtifactVerificationOptions.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static ArtifactVerificationOptions
parseDelimitedFrom
(InputStream input) static ArtifactVerificationOptions
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ArtifactVerificationOptions
parseFrom
(byte[] data) static ArtifactVerificationOptions
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ArtifactVerificationOptions
parseFrom
(com.google.protobuf.ByteString data) static ArtifactVerificationOptions
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ArtifactVerificationOptions
parseFrom
(com.google.protobuf.CodedInputStream input) static ArtifactVerificationOptions
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ArtifactVerificationOptions
parseFrom
(InputStream input) static ArtifactVerificationOptions
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static ArtifactVerificationOptions
parseFrom
(ByteBuffer data) static ArtifactVerificationOptions
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<ArtifactVerificationOptions>
parser()
void
writeTo
(com.google.protobuf.CodedOutputStream output) Methods inherited from class com.google.protobuf.GeneratedMessage
canUseUnsafe, computeStringSize, computeStringSizeNoTag, emptyBooleanList, emptyDoubleList, emptyFloatList, emptyIntList, emptyList, emptyLongList, getAllFields, getDescriptorForType, getField, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, isStringEmpty, makeMutableCopy, makeMutableCopy, mergeFromAndMakeImmutableInternal, newFileScopedGeneratedExtension, newInstance, newMessageScopedGeneratedExtension, parseDelimitedWithIOException, parseDelimitedWithIOException, parseUnknownField, parseUnknownFieldProto3, parseWithIOException, parseWithIOException, parseWithIOException, parseWithIOException, serializeBooleanMapTo, serializeIntegerMapTo, serializeLongMapTo, serializeStringMapTo, writeReplace, writeString, writeStringNoTag
Methods inherited from class com.google.protobuf.AbstractMessage
findInitializationErrors, getInitializationErrorString, hashFields, toString
Methods inherited from class com.google.protobuf.AbstractMessageLite
addAll, checkByteStringIsUtf8, toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.google.protobuf.MessageLite
toByteArray, toByteString, writeDelimitedTo, writeTo
Methods inherited from interface com.google.protobuf.MessageOrBuilder
findInitializationErrors, getAllFields, getDescriptorForType, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
-
Field Details
-
CERTIFICATE_IDENTITIES_FIELD_NUMBER
public static final int CERTIFICATE_IDENTITIES_FIELD_NUMBER- See Also:
-
PUBLIC_KEYS_FIELD_NUMBER
public static final int PUBLIC_KEYS_FIELD_NUMBER- See Also:
-
TLOG_OPTIONS_FIELD_NUMBER
public static final int TLOG_OPTIONS_FIELD_NUMBER- See Also:
-
CTLOG_OPTIONS_FIELD_NUMBER
public static final int CTLOG_OPTIONS_FIELD_NUMBER- See Also:
-
TSA_OPTIONS_FIELD_NUMBER
public static final int TSA_OPTIONS_FIELD_NUMBER- See Also:
-
INTEGRATED_TS_OPTIONS_FIELD_NUMBER
public static final int INTEGRATED_TS_OPTIONS_FIELD_NUMBER- See Also:
-
OBSERVER_OPTIONS_FIELD_NUMBER
public static final int OBSERVER_OPTIONS_FIELD_NUMBER- See Also:
-
-
Method Details
-
getDescriptor
public static final com.google.protobuf.Descriptors.Descriptor getDescriptor() -
internalGetFieldAccessorTable
protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()- Specified by:
internalGetFieldAccessorTable
in classcom.google.protobuf.GeneratedMessage
-
getSignersCase
- Specified by:
getSignersCase
in interfaceArtifactVerificationOptionsOrBuilder
-
hasCertificateIdentities
public boolean hasCertificateIdentities().dev.sigstore.verification.v1.CertificateIdentities certificate_identities = 1;
- Specified by:
hasCertificateIdentities
in interfaceArtifactVerificationOptionsOrBuilder
- Returns:
- Whether the certificateIdentities field is set.
-
getCertificateIdentities
.dev.sigstore.verification.v1.CertificateIdentities certificate_identities = 1;
- Specified by:
getCertificateIdentities
in interfaceArtifactVerificationOptionsOrBuilder
- Returns:
- The certificateIdentities.
-
getCertificateIdentitiesOrBuilder
.dev.sigstore.verification.v1.CertificateIdentities certificate_identities = 1;
- Specified by:
getCertificateIdentitiesOrBuilder
in interfaceArtifactVerificationOptionsOrBuilder
-
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 interfaceArtifactVerificationOptionsOrBuilder
- Returns:
- Whether the publicKeys field is set.
-
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 interfaceArtifactVerificationOptionsOrBuilder
- Returns:
- The publicKeys.
-
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 interfaceArtifactVerificationOptionsOrBuilder
-
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 interfaceArtifactVerificationOptionsOrBuilder
- Returns:
- Whether the tlogOptions field is set.
-
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 interfaceArtifactVerificationOptionsOrBuilder
- Returns:
- The tlogOptions.
-
getTlogOptionsOrBuilder
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:
getTlogOptionsOrBuilder
in interfaceArtifactVerificationOptionsOrBuilder
-
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 interfaceArtifactVerificationOptionsOrBuilder
- Returns:
- Whether the ctlogOptions field is set.
-
getCtlogOptions
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:
getCtlogOptions
in interfaceArtifactVerificationOptionsOrBuilder
- Returns:
- The ctlogOptions.
-
getCtlogOptionsOrBuilder
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:
getCtlogOptionsOrBuilder
in interfaceArtifactVerificationOptionsOrBuilder
-
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 interfaceArtifactVerificationOptionsOrBuilder
- Returns:
- Whether the tsaOptions field is set.
-
getTsaOptions
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:
getTsaOptions
in interfaceArtifactVerificationOptionsOrBuilder
- Returns:
- The tsaOptions.
-
getTsaOptionsOrBuilder
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:
getTsaOptionsOrBuilder
in interfaceArtifactVerificationOptionsOrBuilder
-
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 interfaceArtifactVerificationOptionsOrBuilder
- Returns:
- Whether the integratedTsOptions field is set.
-
getIntegratedTsOptions
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:
getIntegratedTsOptions
in interfaceArtifactVerificationOptionsOrBuilder
- Returns:
- The integratedTsOptions.
-
getIntegratedTsOptionsOrBuilder
public ArtifactVerificationOptions.TlogIntegratedTimestampOptionsOrBuilder getIntegratedTsOptionsOrBuilder()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:
getIntegratedTsOptionsOrBuilder
in interfaceArtifactVerificationOptionsOrBuilder
-
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 interfaceArtifactVerificationOptionsOrBuilder
- Returns:
- Whether the observerOptions field is set.
-
getObserverOptions
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:
getObserverOptions
in interfaceArtifactVerificationOptionsOrBuilder
- Returns:
- The observerOptions.
-
getObserverOptionsOrBuilder
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:
getObserverOptionsOrBuilder
in interfaceArtifactVerificationOptionsOrBuilder
-
isInitialized
public final boolean isInitialized()- Specified by:
isInitialized
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Overrides:
isInitialized
in classcom.google.protobuf.GeneratedMessage
-
writeTo
- Specified by:
writeTo
in interfacecom.google.protobuf.MessageLite
- Overrides:
writeTo
in classcom.google.protobuf.GeneratedMessage
- Throws:
IOException
-
getSerializedSize
public int getSerializedSize()- Specified by:
getSerializedSize
in interfacecom.google.protobuf.MessageLite
- Overrides:
getSerializedSize
in classcom.google.protobuf.GeneratedMessage
-
equals
- Specified by:
equals
in interfacecom.google.protobuf.Message
- Overrides:
equals
in classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()- Specified by:
hashCode
in interfacecom.google.protobuf.Message
- Overrides:
hashCode
in classcom.google.protobuf.AbstractMessage
-
parseFrom
public static ArtifactVerificationOptions parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static ArtifactVerificationOptions parseFrom(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
- Throws:
IOException
-
parseFrom
public static ArtifactVerificationOptions parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static ArtifactVerificationOptions parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static ArtifactVerificationOptions parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static ArtifactVerificationOptions parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
newBuilderForType
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.Message
- Specified by:
newBuilderForType
in interfacecom.google.protobuf.MessageLite
-
newBuilder
-
newBuilder
-
toBuilder
- Specified by:
toBuilder
in interfacecom.google.protobuf.Message
- Specified by:
toBuilder
in interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected ArtifactVerificationOptions.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent) - Overrides:
newBuilderForType
in classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
-
parser
-
getParserForType
- Specified by:
getParserForType
in interfacecom.google.protobuf.Message
- Specified by:
getParserForType
in interfacecom.google.protobuf.MessageLite
- Overrides:
getParserForType
in classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageLiteOrBuilder
- Specified by:
getDefaultInstanceForType
in interfacecom.google.protobuf.MessageOrBuilder
-