Package dev.sigstore.proto.common.v1
Class PublicKeyIdentifier.Builder
- java.lang.Object
-
- com.google.protobuf.AbstractMessageLite.Builder
-
- com.google.protobuf.AbstractMessage.Builder<BuilderT>
-
- com.google.protobuf.GeneratedMessage.Builder<PublicKeyIdentifier.Builder>
-
- dev.sigstore.proto.common.v1.PublicKeyIdentifier.Builder
-
- All Implemented Interfaces:
com.google.protobuf.Message.Builder,com.google.protobuf.MessageLite.Builder,com.google.protobuf.MessageLiteOrBuilder,com.google.protobuf.MessageOrBuilder,PublicKeyIdentifierOrBuilder,java.lang.Cloneable
- Enclosing class:
- PublicKeyIdentifier
public static final class PublicKeyIdentifier.Builder extends com.google.protobuf.GeneratedMessage.Builder<PublicKeyIdentifier.Builder> implements PublicKeyIdentifierOrBuilder
PublicKeyIdentifier can be used to identify an (out of band) delivered key, to verify a signature.
Protobuf typedev.sigstore.common.v1.PublicKeyIdentifier
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description PublicKeyIdentifierbuild()PublicKeyIdentifierbuildPartial()PublicKeyIdentifier.Builderclear()PublicKeyIdentifier.BuilderclearHint()Optional unauthenticated hint on which key to use.PublicKeyIdentifiergetDefaultInstanceForType()static com.google.protobuf.Descriptors.DescriptorgetDescriptor()com.google.protobuf.Descriptors.DescriptorgetDescriptorForType()java.lang.StringgetHint()Optional unauthenticated hint on which key to use.com.google.protobuf.ByteStringgetHintBytes()Optional unauthenticated hint on which key to use.protected com.google.protobuf.GeneratedMessage.FieldAccessorTableinternalGetFieldAccessorTable()booleanisInitialized()PublicKeyIdentifier.BuildermergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)PublicKeyIdentifier.BuildermergeFrom(com.google.protobuf.Message other)PublicKeyIdentifier.BuildermergeFrom(PublicKeyIdentifier other)PublicKeyIdentifier.BuildersetHint(java.lang.String value)Optional unauthenticated hint on which key to use.PublicKeyIdentifier.BuildersetHintBytes(com.google.protobuf.ByteString value)Optional unauthenticated hint on which key to use.-
Methods inherited from class com.google.protobuf.GeneratedMessage.Builder
addRepeatedField, clearField, clearOneof, clone, getAllFields, getField, getFieldBuilder, getOneofFieldDescriptor, getParentForChildren, getRepeatedField, getRepeatedFieldBuilder, getRepeatedFieldCount, getUnknownFields, getUnknownFieldSetBuilder, hasField, hasOneof, internalGetMapField, internalGetMapFieldReflection, internalGetMutableMapField, internalGetMutableMapFieldReflection, isClean, markClean, mergeUnknownFields, mergeUnknownLengthDelimitedField, mergeUnknownVarintField, newBuilderForField, onBuilt, onChanged, parseUnknownField, setField, setRepeatedField, setUnknownFields, setUnknownFieldSetBuilder, setUnknownFieldsProto3
-
Methods inherited from class com.google.protobuf.AbstractMessage.Builder
findInitializationErrors, getInitializationErrorString, internalMergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, mergeFrom, newUninitializedMessageException, toString
-
Methods inherited from class com.google.protobuf.AbstractMessageLite.Builder
addAll, addAll, mergeDelimitedFrom, mergeDelimitedFrom, mergeFrom, newUninitializedMessageException
-
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
-
-
-
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.Builder<PublicKeyIdentifier.Builder>
-
clear
public PublicKeyIdentifier.Builder clear()
- Specified by:
clearin interfacecom.google.protobuf.Message.Builder- Specified by:
clearin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
clearin classcom.google.protobuf.GeneratedMessage.Builder<PublicKeyIdentifier.Builder>
-
getDescriptorForType
public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.Message.Builder- Specified by:
getDescriptorForTypein interfacecom.google.protobuf.MessageOrBuilder- Overrides:
getDescriptorForTypein classcom.google.protobuf.GeneratedMessage.Builder<PublicKeyIdentifier.Builder>
-
getDefaultInstanceForType
public PublicKeyIdentifier getDefaultInstanceForType()
- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageLiteOrBuilder- Specified by:
getDefaultInstanceForTypein interfacecom.google.protobuf.MessageOrBuilder
-
build
public PublicKeyIdentifier build()
- Specified by:
buildin interfacecom.google.protobuf.Message.Builder- Specified by:
buildin interfacecom.google.protobuf.MessageLite.Builder
-
buildPartial
public PublicKeyIdentifier buildPartial()
- Specified by:
buildPartialin interfacecom.google.protobuf.Message.Builder- Specified by:
buildPartialin interfacecom.google.protobuf.MessageLite.Builder
-
mergeFrom
public PublicKeyIdentifier.Builder mergeFrom(com.google.protobuf.Message other)
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PublicKeyIdentifier.Builder>
-
mergeFrom
public PublicKeyIdentifier.Builder mergeFrom(PublicKeyIdentifier other)
-
isInitialized
public final boolean isInitialized()
- Specified by:
isInitializedin interfacecom.google.protobuf.MessageLiteOrBuilder- Overrides:
isInitializedin classcom.google.protobuf.GeneratedMessage.Builder<PublicKeyIdentifier.Builder>
-
mergeFrom
public PublicKeyIdentifier.Builder mergeFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws java.io.IOException
- Specified by:
mergeFromin interfacecom.google.protobuf.Message.Builder- Specified by:
mergeFromin interfacecom.google.protobuf.MessageLite.Builder- Overrides:
mergeFromin classcom.google.protobuf.AbstractMessage.Builder<PublicKeyIdentifier.Builder>- Throws:
java.io.IOException
-
getHint
public java.lang.String getHint()
Optional unauthenticated hint on which key to use. The format of the hint must be agreed upon out of band by the signer and the verifiers, and so is not subject to this specification. Example use-case is to specify the public key to use, from a trusted key-ring. Implementors are RECOMMENDED to derive the value from the public key as described in RFC 6962. See: <https://www.rfc-editor.org/rfc/rfc6962#section-3.2>
string hint = 1;- Specified by:
getHintin interfacePublicKeyIdentifierOrBuilder- Returns:
- The hint.
-
getHintBytes
public com.google.protobuf.ByteString getHintBytes()
Optional unauthenticated hint on which key to use. The format of the hint must be agreed upon out of band by the signer and the verifiers, and so is not subject to this specification. Example use-case is to specify the public key to use, from a trusted key-ring. Implementors are RECOMMENDED to derive the value from the public key as described in RFC 6962. See: <https://www.rfc-editor.org/rfc/rfc6962#section-3.2>
string hint = 1;- Specified by:
getHintBytesin interfacePublicKeyIdentifierOrBuilder- Returns:
- The bytes for hint.
-
setHint
public PublicKeyIdentifier.Builder setHint(java.lang.String value)
Optional unauthenticated hint on which key to use. The format of the hint must be agreed upon out of band by the signer and the verifiers, and so is not subject to this specification. Example use-case is to specify the public key to use, from a trusted key-ring. Implementors are RECOMMENDED to derive the value from the public key as described in RFC 6962. See: <https://www.rfc-editor.org/rfc/rfc6962#section-3.2>
string hint = 1;- Parameters:
value- The hint to set.- Returns:
- This builder for chaining.
-
clearHint
public PublicKeyIdentifier.Builder clearHint()
Optional unauthenticated hint on which key to use. The format of the hint must be agreed upon out of band by the signer and the verifiers, and so is not subject to this specification. Example use-case is to specify the public key to use, from a trusted key-ring. Implementors are RECOMMENDED to derive the value from the public key as described in RFC 6962. See: <https://www.rfc-editor.org/rfc/rfc6962#section-3.2>
string hint = 1;- Returns:
- This builder for chaining.
-
setHintBytes
public PublicKeyIdentifier.Builder setHintBytes(com.google.protobuf.ByteString value)
Optional unauthenticated hint on which key to use. The format of the hint must be agreed upon out of band by the signer and the verifiers, and so is not subject to this specification. Example use-case is to specify the public key to use, from a trusted key-ring. Implementors are RECOMMENDED to derive the value from the public key as described in RFC 6962. See: <https://www.rfc-editor.org/rfc/rfc6962#section-3.2>
string hint = 1;- Parameters:
value- The bytes for hint to set.- Returns:
- This builder for chaining.
-
-