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,java.io.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 typedev.sigstore.trustroot.v1.TransparencyLogInstance- See Also:
- Serialized Form
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classTransparencyLogInstance.BuilderTransparencyLogInstance 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 java.lang.Object>, com.google.protobuf.GeneratedMessage.UnusedPrivateParameter
-
-
Field Summary
Fields Modifier and Type Field Description static intBASE_URL_FIELD_NUMBERstatic intCHECKPOINT_KEY_ID_FIELD_NUMBERstatic intHASH_ALGORITHM_FIELD_NUMBERstatic intLOG_ID_FIELD_NUMBERstatic intPUBLIC_KEY_FIELD_NUMBER
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetBaseUrl()The base URL at which can be used to URLs for the client.com.google.protobuf.ByteStringgetBaseUrlBytes()The base URL at which can be used to URLs for the client.LogIdgetCheckpointKeyId()The checkpoint key identifier for the log used in a checkpoint.LogIdOrBuildergetCheckpointKeyIdOrBuilder()The checkpoint key identifier for the log used in a checkpoint.static TransparencyLogInstancegetDefaultInstance()TransparencyLogInstancegetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()HashAlgorithmgetHashAlgorithm()The hash algorithm used for the Merkle Tree.intgetHashAlgorithmValue()The hash algorithm used for the Merkle Tree.LogIdgetLogId()The unique identifier for this transparency log.LogIdOrBuildergetLogIdOrBuilder()The unique identifier for this transparency log.com.google.protobuf.Parser<TransparencyLogInstance>getParserForType()PublicKeygetPublicKey()The public key used to verify signatures generated by the log.PublicKeyOrBuildergetPublicKeyOrBuilder()The public key used to verify signatures generated by the log.intgetSerializedSize()booleanhasCheckpointKeyId()The checkpoint key identifier for the log used in a checkpoint.inthashCode()booleanhasLogId()The unique identifier for this transparency log.booleanhasPublicKey()The public key used to verify signatures generated by the log.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()static TransparencyLogInstance.BuildernewBuilder()static TransparencyLogInstance.BuildernewBuilder(TransparencyLogInstance prototype)TransparencyLogInstance.BuildernewBuilderForType()protected TransparencyLogInstance.BuildernewBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)static TransparencyLogInstanceparseDelimitedFrom(java.io.InputStream input)static TransparencyLogInstanceparseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TransparencyLogInstanceparseFrom(byte[] data)static TransparencyLogInstanceparseFrom(byte[] data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TransparencyLogInstanceparseFrom(com.google.protobuf.ByteString data)static TransparencyLogInstanceparseFrom(com.google.protobuf.ByteString data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TransparencyLogInstanceparseFrom(com.google.protobuf.CodedInputStream input)static TransparencyLogInstanceparseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TransparencyLogInstanceparseFrom(java.io.InputStream input)static TransparencyLogInstanceparseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static TransparencyLogInstanceparseFrom(java.nio.ByteBuffer data)static TransparencyLogInstanceparseFrom(java.nio.ByteBuffer data, com.google.protobuf.ExtensionRegistryLite extensionRegistry)static com.google.protobuf.Parser<TransparencyLogInstance>parser()TransparencyLogInstance.BuildertoBuilder()voidwriteTo(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
-
-
-
-
Field Detail
-
BASE_URL_FIELD_NUMBER
public static final int BASE_URL_FIELD_NUMBER
- See Also:
- Constant Field Values
-
HASH_ALGORITHM_FIELD_NUMBER
public static final int HASH_ALGORITHM_FIELD_NUMBER
- See Also:
- Constant Field Values
-
PUBLIC_KEY_FIELD_NUMBER
public static final int PUBLIC_KEY_FIELD_NUMBER
- See Also:
- Constant Field Values
-
LOG_ID_FIELD_NUMBER
public static final int LOG_ID_FIELD_NUMBER
- See Also:
- Constant Field Values
-
CHECKPOINT_KEY_ID_FIELD_NUMBER
public static final int CHECKPOINT_KEY_ID_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:
internalGetFieldAccessorTablein classcom.google.protobuf.GeneratedMessage
-
getBaseUrl
public java.lang.String getBaseUrl()
The base URL at which can be used to URLs for the client.
string base_url = 1;- Specified by:
getBaseUrlin interfaceTransparencyLogInstanceOrBuilder- Returns:
- The baseUrl.
-
getBaseUrlBytes
public com.google.protobuf.ByteString getBaseUrlBytes()
The base URL at which can be used to URLs for the client.
string base_url = 1;- Specified by:
getBaseUrlBytesin 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:
getHashAlgorithmValuein interfaceTransparencyLogInstanceOrBuilder- Returns:
- The enum numeric value on the wire for hashAlgorithm.
-
getHashAlgorithm
public HashAlgorithm getHashAlgorithm()
The hash algorithm used for the Merkle Tree.
.dev.sigstore.common.v1.HashAlgorithm hash_algorithm = 2;- Specified by:
getHashAlgorithmin 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:
hasPublicKeyin interfaceTransparencyLogInstanceOrBuilder- Returns:
- Whether the publicKey field is set.
-
getPublicKey
public PublicKey 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:
getPublicKeyin interfaceTransparencyLogInstanceOrBuilder- Returns:
- The publicKey.
-
getPublicKeyOrBuilder
public PublicKeyOrBuilder 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:
getPublicKeyOrBuilderin interfaceTransparencyLogInstanceOrBuilder
-
hasLogId
public boolean hasLogId()
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
.dev.sigstore.common.v1.LogId log_id = 4;- Specified by:
hasLogIdin interfaceTransparencyLogInstanceOrBuilder- Returns:
- Whether the logId field is set.
-
getLogId
public LogId getLogId()
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
.dev.sigstore.common.v1.LogId log_id = 4;- Specified by:
getLogIdin interfaceTransparencyLogInstanceOrBuilder- Returns:
- The logId.
-
getLogIdOrBuilder
public LogIdOrBuilder getLogIdOrBuilder()
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
.dev.sigstore.common.v1.LogId log_id = 4;- Specified by:
getLogIdOrBuilderin interfaceTransparencyLogInstanceOrBuilder
-
hasCheckpointKeyId
public boolean hasCheckpointKeyId()
The checkpoint key identifier for the log used in a checkpoint. Optional, not provided for logs that do not generate checkpoints. For logs that do generate checkpoints, if not set, assume log_id equals checkpoint_key_id. Follows the specification described here for ECDSA and Ed25519 signatures: https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures For RSA signatures, the key ID will match the ECDSA format, the hashed DER-encoded SPKI public key. Publicly witnessed logs MUST NOT use RSA-signed checkpoints, since witnesses do not support RSA signatures. This is provided for convenience. Clients can also calculate the checkpoint key ID given the log's public key. SHOULD be set for logs generating Ed25519 signatures. SHOULD be 4 bytes long, as a truncated hash.
.dev.sigstore.common.v1.LogId checkpoint_key_id = 5;- Specified by:
hasCheckpointKeyIdin interfaceTransparencyLogInstanceOrBuilder- Returns:
- Whether the checkpointKeyId field is set.
-
getCheckpointKeyId
public LogId getCheckpointKeyId()
The checkpoint key identifier for the log used in a checkpoint. Optional, not provided for logs that do not generate checkpoints. For logs that do generate checkpoints, if not set, assume log_id equals checkpoint_key_id. Follows the specification described here for ECDSA and Ed25519 signatures: https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures For RSA signatures, the key ID will match the ECDSA format, the hashed DER-encoded SPKI public key. Publicly witnessed logs MUST NOT use RSA-signed checkpoints, since witnesses do not support RSA signatures. This is provided for convenience. Clients can also calculate the checkpoint key ID given the log's public key. SHOULD be set for logs generating Ed25519 signatures. SHOULD be 4 bytes long, as a truncated hash.
.dev.sigstore.common.v1.LogId checkpoint_key_id = 5;- Specified by:
getCheckpointKeyIdin interfaceTransparencyLogInstanceOrBuilder- Returns:
- The checkpointKeyId.
-
getCheckpointKeyIdOrBuilder
public LogIdOrBuilder getCheckpointKeyIdOrBuilder()
The checkpoint key identifier for the log used in a checkpoint. Optional, not provided for logs that do not generate checkpoints. For logs that do generate checkpoints, if not set, assume log_id equals checkpoint_key_id. Follows the specification described here for ECDSA and Ed25519 signatures: https://github.com/C2SP/C2SP/blob/main/signed-note.md#signatures For RSA signatures, the key ID will match the ECDSA format, the hashed DER-encoded SPKI public key. Publicly witnessed logs MUST NOT use RSA-signed checkpoints, since witnesses do not support RSA signatures. This is provided for convenience. Clients can also calculate the checkpoint key ID given the log's public key. SHOULD be set for logs generating Ed25519 signatures. SHOULD be 4 bytes long, as a truncated hash.
.dev.sigstore.common.v1.LogId checkpoint_key_id = 5;- Specified by:
getCheckpointKeyIdOrBuilderin interfaceTransparencyLogInstanceOrBuilder
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage
-
writeTo
public void writeTo(com.google.protobuf.CodedOutputStream output) throws java.io.IOException- Specified by:
writeToin interfacecom.google.protobuf.MessageLite- Overrides:
writeToin classcom.google.protobuf.GeneratedMessage- Throws:
java.io.IOException
-
getSerializedSize
public int getSerializedSize()
- Specified by:
getSerializedSizein interfacecom.google.protobuf.MessageLite- Overrides:
getSerializedSizein classcom.google.protobuf.GeneratedMessage
-
equals
public boolean equals(java.lang.Object obj)
- Specified by:
equalsin interfacecom.google.protobuf.Message- Overrides:
equalsin classcom.google.protobuf.AbstractMessage
-
hashCode
public int hashCode()
- Specified by:
hashCodein interfacecom.google.protobuf.Message- Overrides:
hashCodein classcom.google.protobuf.AbstractMessage
-
parseFrom
public static TransparencyLogInstance parseFrom(java.nio.ByteBuffer data) throws com.google.protobuf.InvalidProtocolBufferException
- Throws:
com.google.protobuf.InvalidProtocolBufferException
-
parseFrom
public static TransparencyLogInstance parseFrom(java.nio.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
public static TransparencyLogInstance parseFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static TransparencyLogInstance parseFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static TransparencyLogInstance parseDelimitedFrom(java.io.InputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseDelimitedFrom
public static TransparencyLogInstance parseDelimitedFrom(java.io.InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static TransparencyLogInstance parseFrom(com.google.protobuf.CodedInputStream input) throws java.io.IOException
- Throws:
java.io.IOException
-
parseFrom
public static TransparencyLogInstance parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Throws:
java.io.IOException
-
newBuilderForType
public TransparencyLogInstance.Builder newBuilderForType()
- Specified by:
newBuilderForTypein interfacecom.google.protobuf.Message- Specified by:
newBuilderForTypein interfacecom.google.protobuf.MessageLite
-
newBuilder
public static TransparencyLogInstance.Builder newBuilder()
-
newBuilder
public static TransparencyLogInstance.Builder newBuilder(TransparencyLogInstance prototype)
-
toBuilder
public TransparencyLogInstance.Builder toBuilder()
- Specified by:
toBuilderin interfacecom.google.protobuf.Message- Specified by:
toBuilderin interfacecom.google.protobuf.MessageLite
-
newBuilderForType
protected TransparencyLogInstance.Builder newBuilderForType(com.google.protobuf.AbstractMessage.BuilderParent parent)
- Overrides:
newBuilderForTypein classcom.google.protobuf.AbstractMessage
-
getDefaultInstance
public static TransparencyLogInstance getDefaultInstance()
-
parser
public static com.google.protobuf.Parser<TransparencyLogInstance> parser()
-
getParserForType
public com.google.protobuf.Parser<TransparencyLogInstance> getParserForType()
- Specified by:
getParserForTypein interfacecom.google.protobuf.Message- Specified by:
getParserForTypein interfacecom.google.protobuf.MessageLite- Overrides:
getParserForTypein classcom.google.protobuf.GeneratedMessage
-
getDefaultInstanceForType
public TransparencyLogInstance getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
-