Class CertificateIdentity.Builder

  • All Implemented Interfaces:
    com.google.protobuf.Message.Builder, com.google.protobuf.MessageLite.Builder, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, CertificateIdentityOrBuilder, java.lang.Cloneable
    Enclosing class:
    CertificateIdentity

    public static final class CertificateIdentity.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<CertificateIdentity.Builder>
    implements CertificateIdentityOrBuilder
     The identity of a X.509 Certificate signer.
     
    Protobuf type dev.sigstore.verification.v1.CertificateIdentity
    • 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<CertificateIdentity.Builder>
      • clear

        public CertificateIdentity.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<CertificateIdentity.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<CertificateIdentity.Builder>
      • getDefaultInstanceForType

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

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

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

        public CertificateIdentity.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<CertificateIdentity.Builder>
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessage.Builder<CertificateIdentity.Builder>
      • mergeFrom

        public CertificateIdentity.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<CertificateIdentity.Builder>
        Throws:
        java.io.IOException
      • getIssuer

        public java.lang.String getIssuer()
         The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1)
         
        string issuer = 1;
        Specified by:
        getIssuer in interface CertificateIdentityOrBuilder
        Returns:
        The issuer.
      • getIssuerBytes

        public com.google.protobuf.ByteString getIssuerBytes()
         The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1)
         
        string issuer = 1;
        Specified by:
        getIssuerBytes in interface CertificateIdentityOrBuilder
        Returns:
        The bytes for issuer.
      • setIssuer

        public CertificateIdentity.Builder setIssuer​(java.lang.String value)
         The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1)
         
        string issuer = 1;
        Parameters:
        value - The issuer to set.
        Returns:
        This builder for chaining.
      • clearIssuer

        public CertificateIdentity.Builder clearIssuer()
         The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1)
         
        string issuer = 1;
        Returns:
        This builder for chaining.
      • setIssuerBytes

        public CertificateIdentity.Builder setIssuerBytes​(com.google.protobuf.ByteString value)
         The X.509v3 issuer extension (OID 1.3.6.1.4.1.57264.1.1)
         
        string issuer = 1;
        Parameters:
        value - The bytes for issuer to set.
        Returns:
        This builder for chaining.
      • hasSan

        public boolean hasSan()
        .dev.sigstore.common.v1.SubjectAlternativeName san = 2;
        Specified by:
        hasSan in interface CertificateIdentityOrBuilder
        Returns:
        Whether the san field is set.
      • getOidsList

        public java.util.List<ObjectIdentifierValuePair> getOidsList()
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
        Specified by:
        getOidsList in interface CertificateIdentityOrBuilder
      • getOidsCount

        public int getOidsCount()
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
        Specified by:
        getOidsCount in interface CertificateIdentityOrBuilder
      • getOids

        public ObjectIdentifierValuePair getOids​(int index)
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
        Specified by:
        getOids in interface CertificateIdentityOrBuilder
      • setOids

        public CertificateIdentity.Builder setOids​(int index,
                                                   ObjectIdentifierValuePair value)
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
      • setOids

        public CertificateIdentity.Builder setOids​(int index,
                                                   ObjectIdentifierValuePair.Builder builderForValue)
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
      • addOids

        public CertificateIdentity.Builder addOids​(ObjectIdentifierValuePair value)
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
      • addOids

        public CertificateIdentity.Builder addOids​(int index,
                                                   ObjectIdentifierValuePair value)
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
      • addOids

        public CertificateIdentity.Builder addOids​(ObjectIdentifierValuePair.Builder builderForValue)
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
      • addOids

        public CertificateIdentity.Builder addOids​(int index,
                                                   ObjectIdentifierValuePair.Builder builderForValue)
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
      • addAllOids

        public CertificateIdentity.Builder addAllOids​(java.lang.Iterable<? extends ObjectIdentifierValuePair> values)
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
      • clearOids

        public CertificateIdentity.Builder clearOids()
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
      • removeOids

        public CertificateIdentity.Builder removeOids​(int index)
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
      • getOidsBuilder

        public ObjectIdentifierValuePair.Builder getOidsBuilder​(int index)
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
      • getOidsOrBuilder

        public ObjectIdentifierValuePairOrBuilder getOidsOrBuilder​(int index)
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
        Specified by:
        getOidsOrBuilder in interface CertificateIdentityOrBuilder
      • getOidsOrBuilderList

        public java.util.List<? extends ObjectIdentifierValuePairOrBuilder> getOidsOrBuilderList()
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
        Specified by:
        getOidsOrBuilderList in interface CertificateIdentityOrBuilder
      • addOidsBuilder

        public ObjectIdentifierValuePair.Builder addOidsBuilder()
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
      • addOidsBuilder

        public ObjectIdentifierValuePair.Builder addOidsBuilder​(int index)
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;
      • getOidsBuilderList

        public java.util.List<ObjectIdentifierValuePair.Builder> getOidsBuilderList()
         An unordered list of OIDs that must be verified.
         All OID/values provided in this list MUST exactly match against
         the values in the certificate for verification to be successful.
         
        repeated .dev.sigstore.common.v1.ObjectIdentifierValuePair oids = 3;