Class 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 type dev.sigstore.common.v1.PublicKeyIdentifier
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      PublicKeyIdentifier build()  
      PublicKeyIdentifier buildPartial()  
      PublicKeyIdentifier.Builder clear()  
      PublicKeyIdentifier.Builder clearHint()
      Optional unauthenticated hint on which key to use.
      PublicKeyIdentifier getDefaultInstanceForType()  
      static com.google.protobuf.Descriptors.Descriptor getDescriptor()  
      com.google.protobuf.Descriptors.Descriptor getDescriptorForType()  
      java.lang.String getHint()
      Optional unauthenticated hint on which key to use.
      com.google.protobuf.ByteString getHintBytes()
      Optional unauthenticated hint on which key to use.
      protected com.google.protobuf.GeneratedMessage.FieldAccessorTable internalGetFieldAccessorTable()  
      boolean isInitialized()  
      PublicKeyIdentifier.Builder mergeFrom​(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry)  
      PublicKeyIdentifier.Builder mergeFrom​(com.google.protobuf.Message other)  
      PublicKeyIdentifier.Builder mergeFrom​(PublicKeyIdentifier other)  
      PublicKeyIdentifier.Builder setHint​(java.lang.String value)
      Optional unauthenticated hint on which key to use.
      PublicKeyIdentifier.Builder setHintBytes​(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
      • Methods inherited from interface com.google.protobuf.Message.Builder

        mergeDelimitedFrom, mergeDelimitedFrom
      • Methods inherited from interface com.google.protobuf.MessageLite.Builder

        mergeFrom
      • Methods inherited from interface com.google.protobuf.MessageOrBuilder

        findInitializationErrors, getAllFields, getField, getInitializationErrorString, getOneofFieldDescriptor, getRepeatedField, getRepeatedFieldCount, getUnknownFields, hasField, hasOneof
    • 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.Builder<PublicKeyIdentifier.Builder>
      • clear

        public PublicKeyIdentifier.Builder clear()
        Specified by:
        clear in interface com.google.protobuf.Message.Builder
        Specified by:
        clear in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        clear in class com.google.protobuf.GeneratedMessage.Builder<PublicKeyIdentifier.Builder>
      • getDescriptorForType

        public com.google.protobuf.Descriptors.Descriptor getDescriptorForType()
        Specified by:
        getDescriptorForType in interface com.google.protobuf.Message.Builder
        Specified by:
        getDescriptorForType in interface com.google.protobuf.MessageOrBuilder
        Overrides:
        getDescriptorForType in class com.google.protobuf.GeneratedMessage.Builder<PublicKeyIdentifier.Builder>
      • getDefaultInstanceForType

        public PublicKeyIdentifier getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder
      • build

        public PublicKeyIdentifier build()
        Specified by:
        build in interface com.google.protobuf.Message.Builder
        Specified by:
        build in interface com.google.protobuf.MessageLite.Builder
      • buildPartial

        public PublicKeyIdentifier buildPartial()
        Specified by:
        buildPartial in interface com.google.protobuf.Message.Builder
        Specified by:
        buildPartial in interface com.google.protobuf.MessageLite.Builder
      • mergeFrom

        public PublicKeyIdentifier.Builder mergeFrom​(com.google.protobuf.Message other)
        Specified by:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Overrides:
        mergeFrom in class com.google.protobuf.AbstractMessage.Builder<PublicKeyIdentifier.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.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:
        mergeFrom in interface com.google.protobuf.Message.Builder
        Specified by:
        mergeFrom in interface com.google.protobuf.MessageLite.Builder
        Overrides:
        mergeFrom in class com.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:
        getHint in interface PublicKeyIdentifierOrBuilder
        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:
        getHintBytes in interface PublicKeyIdentifierOrBuilder
        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.