Package dev.sigstore.proto.trustroot.v1
Class TransparencyLogInstance
java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
dev.sigstore.proto.trustroot.v1.TransparencyLogInstance
- All Implemented Interfaces:
com.google.protobuf.Message
,com.google.protobuf.MessageLite
,com.google.protobuf.MessageLiteOrBuilder
,com.google.protobuf.MessageOrBuilder
,TransparencyLogInstanceOrBuilder
,Serializable
public final class TransparencyLogInstance
extends com.google.protobuf.GeneratedMessage
implements TransparencyLogInstanceOrBuilder
TransparencyLogInstance describes the immutable parameters from a transparency log. See https://www.rfc-editor.org/rfc/rfc9162.html#name-log-parameters for more details. The included parameters are the minimal set required to identify a log, and verify an inclusion proof/promise.Protobuf type
dev.sigstore.trustroot.v1.TransparencyLogInstance
- See Also:
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final class
TransparencyLogInstance describes the immutable parameters from a transparency log.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
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
The base URL at which can be used to URLs for the client.com.google.protobuf.ByteString
The base URL at which can be used to URLs for the client.The unique identifier for the log, used in the checkpoint.The unique identifier for the log, used in the checkpoint.static TransparencyLogInstance
static final com.google.protobuf.Descriptors.Descriptor
The hash algorithm used for the Merkle Tree.int
The hash algorithm used for the Merkle Tree.getLogId()
Deprecated.dev.sigstore.trustroot.v1.TransparencyLogInstance.log_id is deprecated.Deprecated.The name of the operator of this log deployment.com.google.protobuf.ByteString
The name of the operator of this log deployment.com.google.protobuf.Parser<TransparencyLogInstance>
The public key used to verify signatures generated by the log.The public key used to verify signatures generated by the log.int
boolean
The unique identifier for the log, used in the checkpoint.int
hashCode()
boolean
hasLogId()
Deprecated.dev.sigstore.trustroot.v1.TransparencyLogInstance.log_id is deprecated.boolean
The public key used to verify signatures generated by the log.protected com.google.protobuf.GeneratedMessage.FieldAccessorTable
final boolean
newBuilder
(TransparencyLogInstance prototype) protected TransparencyLogInstance.Builder
newBuilderForType
(com.google.protobuf.AbstractMessage.BuilderParent parent) static TransparencyLogInstance
parseDelimitedFrom
(InputStream input) static TransparencyLogInstance
parseDelimitedFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransparencyLogInstance
parseFrom
(byte[] data) static TransparencyLogInstance
parseFrom
(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransparencyLogInstance
parseFrom
(com.google.protobuf.ByteString data) static TransparencyLogInstance
parseFrom
(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransparencyLogInstance
parseFrom
(com.google.protobuf.CodedInputStream input) static TransparencyLogInstance
parseFrom
(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransparencyLogInstance
parseFrom
(InputStream input) static TransparencyLogInstance
parseFrom
(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static TransparencyLogInstance
parseFrom
(ByteBuffer data) static TransparencyLogInstance
parseFrom
(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) static com.google.protobuf.Parser<TransparencyLogInstance>
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
-
BASE_URL_FIELD_NUMBER
public static final int BASE_URL_FIELD_NUMBER- See Also:
-
HASH_ALGORITHM_FIELD_NUMBER
public static final int HASH_ALGORITHM_FIELD_NUMBER- See Also:
-
PUBLIC_KEY_FIELD_NUMBER
public static final int PUBLIC_KEY_FIELD_NUMBER- See Also:
-
LOG_ID_FIELD_NUMBER
public static final int LOG_ID_FIELD_NUMBER- See Also:
-
CHECKPOINT_KEY_ID_FIELD_NUMBER
public static final int CHECKPOINT_KEY_ID_FIELD_NUMBER- See Also:
-
OPERATOR_FIELD_NUMBER
public static final int OPERATOR_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
-
getBaseUrl
The base URL at which can be used to URLs for the client. SHOULD match the origin on the log checkpoint: https://github.com/C2SP/C2SP/blob/main/tlog-checkpoint.md#note-text.
string base_url = 1;
- Specified by:
getBaseUrl
in interfaceTransparencyLogInstanceOrBuilder
- Returns:
- The baseUrl.
-
getBaseUrlBytes
public com.google.protobuf.ByteString getBaseUrlBytes()The base URL at which can be used to URLs for the client. SHOULD match the origin on the log checkpoint: https://github.com/C2SP/C2SP/blob/main/tlog-checkpoint.md#note-text.
string base_url = 1;
- Specified by:
getBaseUrlBytes
in interfaceTransparencyLogInstanceOrBuilder
- Returns:
- The bytes for baseUrl.
-
getHashAlgorithmValue
public int getHashAlgorithmValue()The hash algorithm used for the Merkle Tree.
.dev.sigstore.common.v1.HashAlgorithm hash_algorithm = 2;
- Specified by:
getHashAlgorithmValue
in interfaceTransparencyLogInstanceOrBuilder
- Returns:
- The enum numeric value on the wire for hashAlgorithm.
-
getHashAlgorithm
The hash algorithm used for the Merkle Tree.
.dev.sigstore.common.v1.HashAlgorithm hash_algorithm = 2;
- Specified by:
getHashAlgorithm
in interfaceTransparencyLogInstanceOrBuilder
- Returns:
- The hashAlgorithm.
-
hasPublicKey
public boolean hasPublicKey()The public key used to verify signatures generated by the log. This attribute contains the signature algorithm used by the log.
.dev.sigstore.common.v1.PublicKey public_key = 3;
- Specified by:
hasPublicKey
in interfaceTransparencyLogInstanceOrBuilder
- Returns:
- Whether the publicKey field is set.
-
getPublicKey
The public key used to verify signatures generated by the log. This attribute contains the signature algorithm used by the log.
.dev.sigstore.common.v1.PublicKey public_key = 3;
- Specified by:
getPublicKey
in interfaceTransparencyLogInstanceOrBuilder
- Returns:
- The publicKey.
-
getPublicKeyOrBuilder
The public key used to verify signatures generated by the log. This attribute contains the signature algorithm used by the log.
.dev.sigstore.common.v1.PublicKey public_key = 3;
- Specified by:
getPublicKeyOrBuilder
in interfaceTransparencyLogInstanceOrBuilder
-
hasLogId
Deprecated.dev.sigstore.trustroot.v1.TransparencyLogInstance.log_id is deprecated. See sigstore_trustroot.proto;l=53The unique identifier for this transparency log. Represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2 MUST set checkpoint_key_id if multiple logs use the same signing key. Deprecated: Use checkpoint_key_id instead, since log_id is not guaranteed to be unique across multiple deployments. Clients must use the key name and key ID from a checkpoint to determine the correct TransparencyLogInstance to verify a proof.
.dev.sigstore.common.v1.LogId log_id = 4 [deprecated = true];
- Specified by:
hasLogId
in interfaceTransparencyLogInstanceOrBuilder
- Returns:
- Whether the logId field is set.
-
getLogId
Deprecated.dev.sigstore.trustroot.v1.TransparencyLogInstance.log_id is deprecated. See sigstore_trustroot.proto;l=53The unique identifier for this transparency log. Represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2 MUST set checkpoint_key_id if multiple logs use the same signing key. Deprecated: Use checkpoint_key_id instead, since log_id is not guaranteed to be unique across multiple deployments. Clients must use the key name and key ID from a checkpoint to determine the correct TransparencyLogInstance to verify a proof.
.dev.sigstore.common.v1.LogId log_id = 4 [deprecated = true];
- Specified by:
getLogId
in interfaceTransparencyLogInstanceOrBuilder
- Returns:
- The logId.
-
getLogIdOrBuilder
Deprecated.The unique identifier for this transparency log. Represented as the SHA-256 hash of the log's public key, calculated over the DER encoding of the key represented as SubjectPublicKeyInfo. See https://www.rfc-editor.org/rfc/rfc6962#section-3.2 MUST set checkpoint_key_id if multiple logs use the same signing key. Deprecated: Use checkpoint_key_id instead, since log_id is not guaranteed to be unique across multiple deployments. Clients must use the key name and key ID from a checkpoint to determine the correct TransparencyLogInstance to verify a proof.
.dev.sigstore.common.v1.LogId log_id = 4 [deprecated = true];
- Specified by:
getLogIdOrBuilder
in interfaceTransparencyLogInstanceOrBuilder
-
hasCheckpointKeyId
public boolean hasCheckpointKeyId()The unique identifier for the log, used in the checkpoint. Its calculation is described in https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures SHOULD be set for all logs. When not set, clients MUST use log_id. For Ed25519 signatures, the key ID is computed per the C2SP spec: key ID = SHA-256(key name || 0x0A || 0x01 || 32-byte Ed25519 public key)[:4] For ECDSA signatures, the key ID is computed per the C2SP spec: key ID = SHA-256(PKIX ASN.1 DER-encoded public key, in SubjectPublicKeyInfo format)[:4] For RSA signatures, the signature type will be 0xff with an appended identifier for the format, "PKIX-RSA-PKCS#1v1.5": key ID = SHA-256(key name || 0x0A || 0xff || PKIX-RSA-PKCS#1v1.5 || PKIX ASN.1 DER-encoded public key)[:4] This is provided for convenience. Clients can also calculate the checkpoint key ID given the log's public key. SHOULD be 4 bytes long, as a truncated hash. To find a matching TransparencyLogInstance in the TrustedRoot, clients will parse the checkpoint, and for each signature line, use the key name (i.e. log origin, base_url from TrustedRoot) and checkpoint key ID (i.e. checkpoint_key_id from TrustedRoot) which can then be compared against the TrustedRoot log instances.
.dev.sigstore.common.v1.LogId checkpoint_key_id = 5;
- Specified by:
hasCheckpointKeyId
in interfaceTransparencyLogInstanceOrBuilder
- Returns:
- Whether the checkpointKeyId field is set.
-
getCheckpointKeyId
The unique identifier for the log, used in the checkpoint. Its calculation is described in https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures SHOULD be set for all logs. When not set, clients MUST use log_id. For Ed25519 signatures, the key ID is computed per the C2SP spec: key ID = SHA-256(key name || 0x0A || 0x01 || 32-byte Ed25519 public key)[:4] For ECDSA signatures, the key ID is computed per the C2SP spec: key ID = SHA-256(PKIX ASN.1 DER-encoded public key, in SubjectPublicKeyInfo format)[:4] For RSA signatures, the signature type will be 0xff with an appended identifier for the format, "PKIX-RSA-PKCS#1v1.5": key ID = SHA-256(key name || 0x0A || 0xff || PKIX-RSA-PKCS#1v1.5 || PKIX ASN.1 DER-encoded public key)[:4] This is provided for convenience. Clients can also calculate the checkpoint key ID given the log's public key. SHOULD be 4 bytes long, as a truncated hash. To find a matching TransparencyLogInstance in the TrustedRoot, clients will parse the checkpoint, and for each signature line, use the key name (i.e. log origin, base_url from TrustedRoot) and checkpoint key ID (i.e. checkpoint_key_id from TrustedRoot) which can then be compared against the TrustedRoot log instances.
.dev.sigstore.common.v1.LogId checkpoint_key_id = 5;
- Specified by:
getCheckpointKeyId
in interfaceTransparencyLogInstanceOrBuilder
- Returns:
- The checkpointKeyId.
-
getCheckpointKeyIdOrBuilder
The unique identifier for the log, used in the checkpoint. Its calculation is described in https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures SHOULD be set for all logs. When not set, clients MUST use log_id. For Ed25519 signatures, the key ID is computed per the C2SP spec: key ID = SHA-256(key name || 0x0A || 0x01 || 32-byte Ed25519 public key)[:4] For ECDSA signatures, the key ID is computed per the C2SP spec: key ID = SHA-256(PKIX ASN.1 DER-encoded public key, in SubjectPublicKeyInfo format)[:4] For RSA signatures, the signature type will be 0xff with an appended identifier for the format, "PKIX-RSA-PKCS#1v1.5": key ID = SHA-256(key name || 0x0A || 0xff || PKIX-RSA-PKCS#1v1.5 || PKIX ASN.1 DER-encoded public key)[:4] This is provided for convenience. Clients can also calculate the checkpoint key ID given the log's public key. SHOULD be 4 bytes long, as a truncated hash. To find a matching TransparencyLogInstance in the TrustedRoot, clients will parse the checkpoint, and for each signature line, use the key name (i.e. log origin, base_url from TrustedRoot) and checkpoint key ID (i.e. checkpoint_key_id from TrustedRoot) which can then be compared against the TrustedRoot log instances.
.dev.sigstore.common.v1.LogId checkpoint_key_id = 5;
- Specified by:
getCheckpointKeyIdOrBuilder
in interfaceTransparencyLogInstanceOrBuilder
-
getOperator
The name of the operator of this log deployment. Operator MUST be formatted as a scheme-less URI, e.g. sigstore.dev This MUST be used when there are multiple transparency log instances to determine if log proof verification meets a specified threshold, e.g. two proofs from log deployments operated by the same operator should count as only one valid proof.
string operator = 6;
- Specified by:
getOperator
in interfaceTransparencyLogInstanceOrBuilder
- Returns:
- The operator.
-
getOperatorBytes
public com.google.protobuf.ByteString getOperatorBytes()The name of the operator of this log deployment. Operator MUST be formatted as a scheme-less URI, e.g. sigstore.dev This MUST be used when there are multiple transparency log instances to determine if log proof verification meets a specified threshold, e.g. two proofs from log deployments operated by the same operator should count as only one valid proof.
string operator = 6;
- Specified by:
getOperatorBytes
in interfaceTransparencyLogInstanceOrBuilder
- Returns:
- The bytes for operator.
-
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 TransparencyLogInstance parseFrom(ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransparencyLogInstance parseFrom(ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransparencyLogInstance parseFrom(com.google.protobuf.ByteString data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransparencyLogInstance parseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransparencyLogInstance parseFrom(byte[] data) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransparencyLogInstance parseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws com.google.protobuf.InvalidProtocolBufferException - Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
- Throws:
IOException
-
parseFrom
public static TransparencyLogInstance parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseDelimitedFrom
- Throws:
IOException
-
parseDelimitedFrom
public static TransparencyLogInstance parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException - Throws:
IOException
-
parseFrom
public static TransparencyLogInstance parseFrom(com.google.protobuf.CodedInputStream input) throws IOException - Throws:
IOException
-
parseFrom
public static TransparencyLogInstance 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 TransparencyLogInstance.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
-