Class X509CertificateChain.Builder

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

    public static final class X509CertificateChain.Builder
    extends com.google.protobuf.GeneratedMessage.Builder<X509CertificateChain.Builder>
    implements X509CertificateChainOrBuilder
     A collection of X.509 certificates.
    
     This "chain" can be used in multiple contexts, such as providing a root CA
     certificate within a TUF root of trust or multiple untrusted certificates for
     the purpose of chain building.
     
    Protobuf type dev.sigstore.common.v1.X509CertificateChain
    • 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<X509CertificateChain.Builder>
      • clear

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

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

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

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

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

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

        public java.util.List<X509Certificate> getCertificatesList()
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
        Specified by:
        getCertificatesList in interface X509CertificateChainOrBuilder
      • getCertificatesCount

        public int getCertificatesCount()
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
        Specified by:
        getCertificatesCount in interface X509CertificateChainOrBuilder
      • getCertificates

        public X509Certificate getCertificates​(int index)
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
        Specified by:
        getCertificates in interface X509CertificateChainOrBuilder
      • setCertificates

        public X509CertificateChain.Builder setCertificates​(int index,
                                                            X509Certificate value)
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
      • setCertificates

        public X509CertificateChain.Builder setCertificates​(int index,
                                                            X509Certificate.Builder builderForValue)
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
      • addCertificates

        public X509CertificateChain.Builder addCertificates​(X509Certificate value)
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
      • addCertificates

        public X509CertificateChain.Builder addCertificates​(int index,
                                                            X509Certificate value)
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
      • addCertificates

        public X509CertificateChain.Builder addCertificates​(X509Certificate.Builder builderForValue)
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
      • addCertificates

        public X509CertificateChain.Builder addCertificates​(int index,
                                                            X509Certificate.Builder builderForValue)
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
      • addAllCertificates

        public X509CertificateChain.Builder addAllCertificates​(java.lang.Iterable<? extends X509Certificate> values)
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
      • clearCertificates

        public X509CertificateChain.Builder clearCertificates()
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
      • removeCertificates

        public X509CertificateChain.Builder removeCertificates​(int index)
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
      • getCertificatesBuilder

        public X509Certificate.Builder getCertificatesBuilder​(int index)
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
      • getCertificatesOrBuilder

        public X509CertificateOrBuilder getCertificatesOrBuilder​(int index)
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
        Specified by:
        getCertificatesOrBuilder in interface X509CertificateChainOrBuilder
      • getCertificatesOrBuilderList

        public java.util.List<? extends X509CertificateOrBuilder> getCertificatesOrBuilderList()
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
        Specified by:
        getCertificatesOrBuilderList in interface X509CertificateChainOrBuilder
      • addCertificatesBuilder

        public X509Certificate.Builder addCertificatesBuilder()
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
      • addCertificatesBuilder

        public X509Certificate.Builder addCertificatesBuilder​(int index)
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;
      • getCertificatesBuilderList

        public java.util.List<X509Certificate.Builder> getCertificatesBuilderList()
         One or more DER-encoded certificates.
        
         In some contexts (such as `VerificationMaterial.x509_certificate_chain`), this sequence
         has an imposed order. Unless explicitly specified, there is otherwise no
         guaranteed order.
         
        repeated .dev.sigstore.common.v1.X509Certificate certificates = 1;