Class CertificateDescription

  • All Implemented Interfaces:
    CertificateDescriptionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

    public final class CertificateDescription
    extends com.google.protobuf.GeneratedMessageV3
    implements CertificateDescriptionOrBuilder
     A
     [CertificateDescription][google.cloud.security.privateca.v1.CertificateDescription]
     describes an X.509 certificate or CSR that has been issued, as an alternative
     to using ASN.1 / X.509.
     
    Protobuf type google.cloud.security.privateca.v1.CertificateDescription
    See Also:
    Serialized Form
    • Field Detail

      • SUBJECT_DESCRIPTION_FIELD_NUMBER

        public static final int SUBJECT_DESCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • X509_DESCRIPTION_FIELD_NUMBER

        public static final int X509_DESCRIPTION_FIELD_NUMBER
        See Also:
        Constant Field Values
      • PUBLIC_KEY_FIELD_NUMBER

        public static final int PUBLIC_KEY_FIELD_NUMBER
        See Also:
        Constant Field Values
      • SUBJECT_KEY_ID_FIELD_NUMBER

        public static final int SUBJECT_KEY_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AUTHORITY_KEY_ID_FIELD_NUMBER

        public static final int AUTHORITY_KEY_ID_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CRL_DISTRIBUTION_POINTS_FIELD_NUMBER

        public static final int CRL_DISTRIBUTION_POINTS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • AIA_ISSUING_CERTIFICATE_URLS_FIELD_NUMBER

        public static final int AIA_ISSUING_CERTIFICATE_URLS_FIELD_NUMBER
        See Also:
        Constant Field Values
      • CERT_FINGERPRINT_FIELD_NUMBER

        public static final int CERT_FINGERPRINT_FIELD_NUMBER
        See Also:
        Constant Field Values
    • Method Detail

      • newInstance

        protected Object newInstance​(com.google.protobuf.GeneratedMessageV3.UnusedPrivateParameter unused)
        Overrides:
        newInstance in class com.google.protobuf.GeneratedMessageV3
      • getDescriptor

        public static final com.google.protobuf.Descriptors.Descriptor getDescriptor()
      • internalGetFieldAccessorTable

        protected com.google.protobuf.GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
        Specified by:
        internalGetFieldAccessorTable in class com.google.protobuf.GeneratedMessageV3
      • hasSubjectDescription

        public boolean hasSubjectDescription()
         Describes some of the values in a certificate that are related to the
         subject and lifetime.
         
        .google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription subject_description = 1;
        Specified by:
        hasSubjectDescription in interface CertificateDescriptionOrBuilder
        Returns:
        Whether the subjectDescription field is set.
      • hasX509Description

        public boolean hasX509Description()
         Describes some of the technical X.509 fields in a certificate.
         
        .google.cloud.security.privateca.v1.X509Parameters x509_description = 2;
        Specified by:
        hasX509Description in interface CertificateDescriptionOrBuilder
        Returns:
        Whether the x509Description field is set.
      • hasPublicKey

        public boolean hasPublicKey()
         The public key that corresponds to an issued certificate.
         
        .google.cloud.security.privateca.v1.PublicKey public_key = 3;
        Specified by:
        hasPublicKey in interface CertificateDescriptionOrBuilder
        Returns:
        Whether the publicKey field is set.
      • getPublicKey

        public PublicKey getPublicKey()
         The public key that corresponds to an issued certificate.
         
        .google.cloud.security.privateca.v1.PublicKey public_key = 3;
        Specified by:
        getPublicKey in interface CertificateDescriptionOrBuilder
        Returns:
        The publicKey.
      • hasSubjectKeyId

        public boolean hasSubjectKeyId()
         Provides a means of identifiying certificates that contain a particular
         public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
         
        .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4;
        Specified by:
        hasSubjectKeyId in interface CertificateDescriptionOrBuilder
        Returns:
        Whether the subjectKeyId field is set.
      • getSubjectKeyId

        public CertificateDescription.KeyId getSubjectKeyId()
         Provides a means of identifiying certificates that contain a particular
         public key, per https://tools.ietf.org/html/rfc5280#section-4.2.1.2.
         
        .google.cloud.security.privateca.v1.CertificateDescription.KeyId subject_key_id = 4;
        Specified by:
        getSubjectKeyId in interface CertificateDescriptionOrBuilder
        Returns:
        The subjectKeyId.
      • hasAuthorityKeyId

        public boolean hasAuthorityKeyId()
         Identifies the subject_key_id of the parent certificate, per
         https://tools.ietf.org/html/rfc5280#section-4.2.1.1
         
        .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5;
        Specified by:
        hasAuthorityKeyId in interface CertificateDescriptionOrBuilder
        Returns:
        Whether the authorityKeyId field is set.
      • getAuthorityKeyId

        public CertificateDescription.KeyId getAuthorityKeyId()
         Identifies the subject_key_id of the parent certificate, per
         https://tools.ietf.org/html/rfc5280#section-4.2.1.1
         
        .google.cloud.security.privateca.v1.CertificateDescription.KeyId authority_key_id = 5;
        Specified by:
        getAuthorityKeyId in interface CertificateDescriptionOrBuilder
        Returns:
        The authorityKeyId.
      • getCrlDistributionPointsList

        public com.google.protobuf.ProtocolStringList getCrlDistributionPointsList()
         Describes a list of locations to obtain CRL information, i.e.
         the DistributionPoint.fullName described by
         https://tools.ietf.org/html/rfc5280#section-4.2.1.13
         
        repeated string crl_distribution_points = 6;
        Specified by:
        getCrlDistributionPointsList in interface CertificateDescriptionOrBuilder
        Returns:
        A list containing the crlDistributionPoints.
      • getCrlDistributionPointsCount

        public int getCrlDistributionPointsCount()
         Describes a list of locations to obtain CRL information, i.e.
         the DistributionPoint.fullName described by
         https://tools.ietf.org/html/rfc5280#section-4.2.1.13
         
        repeated string crl_distribution_points = 6;
        Specified by:
        getCrlDistributionPointsCount in interface CertificateDescriptionOrBuilder
        Returns:
        The count of crlDistributionPoints.
      • getCrlDistributionPoints

        public String getCrlDistributionPoints​(int index)
         Describes a list of locations to obtain CRL information, i.e.
         the DistributionPoint.fullName described by
         https://tools.ietf.org/html/rfc5280#section-4.2.1.13
         
        repeated string crl_distribution_points = 6;
        Specified by:
        getCrlDistributionPoints in interface CertificateDescriptionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The crlDistributionPoints at the given index.
      • getCrlDistributionPointsBytes

        public com.google.protobuf.ByteString getCrlDistributionPointsBytes​(int index)
         Describes a list of locations to obtain CRL information, i.e.
         the DistributionPoint.fullName described by
         https://tools.ietf.org/html/rfc5280#section-4.2.1.13
         
        repeated string crl_distribution_points = 6;
        Specified by:
        getCrlDistributionPointsBytes in interface CertificateDescriptionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the crlDistributionPoints at the given index.
      • getAiaIssuingCertificateUrlsList

        public com.google.protobuf.ProtocolStringList getAiaIssuingCertificateUrlsList()
         Describes lists of issuer CA certificate URLs that appear in the
         "Authority Information Access" extension in the certificate.
         
        repeated string aia_issuing_certificate_urls = 7;
        Specified by:
        getAiaIssuingCertificateUrlsList in interface CertificateDescriptionOrBuilder
        Returns:
        A list containing the aiaIssuingCertificateUrls.
      • getAiaIssuingCertificateUrlsCount

        public int getAiaIssuingCertificateUrlsCount()
         Describes lists of issuer CA certificate URLs that appear in the
         "Authority Information Access" extension in the certificate.
         
        repeated string aia_issuing_certificate_urls = 7;
        Specified by:
        getAiaIssuingCertificateUrlsCount in interface CertificateDescriptionOrBuilder
        Returns:
        The count of aiaIssuingCertificateUrls.
      • getAiaIssuingCertificateUrls

        public String getAiaIssuingCertificateUrls​(int index)
         Describes lists of issuer CA certificate URLs that appear in the
         "Authority Information Access" extension in the certificate.
         
        repeated string aia_issuing_certificate_urls = 7;
        Specified by:
        getAiaIssuingCertificateUrls in interface CertificateDescriptionOrBuilder
        Parameters:
        index - The index of the element to return.
        Returns:
        The aiaIssuingCertificateUrls at the given index.
      • getAiaIssuingCertificateUrlsBytes

        public com.google.protobuf.ByteString getAiaIssuingCertificateUrlsBytes​(int index)
         Describes lists of issuer CA certificate URLs that appear in the
         "Authority Information Access" extension in the certificate.
         
        repeated string aia_issuing_certificate_urls = 7;
        Specified by:
        getAiaIssuingCertificateUrlsBytes in interface CertificateDescriptionOrBuilder
        Parameters:
        index - The index of the value to return.
        Returns:
        The bytes of the aiaIssuingCertificateUrls at the given index.
      • hasCertFingerprint

        public boolean hasCertFingerprint()
         The hash of the x.509 certificate.
         
        .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8;
        Specified by:
        hasCertFingerprint in interface CertificateDescriptionOrBuilder
        Returns:
        Whether the certFingerprint field is set.
      • isInitialized

        public final boolean isInitialized()
        Specified by:
        isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
        Overrides:
        isInitialized in class com.google.protobuf.GeneratedMessageV3
      • writeTo

        public void writeTo​(com.google.protobuf.CodedOutputStream output)
                     throws IOException
        Specified by:
        writeTo in interface com.google.protobuf.MessageLite
        Overrides:
        writeTo in class com.google.protobuf.GeneratedMessageV3
        Throws:
        IOException
      • getSerializedSize

        public int getSerializedSize()
        Specified by:
        getSerializedSize in interface com.google.protobuf.MessageLite
        Overrides:
        getSerializedSize in class com.google.protobuf.GeneratedMessageV3
      • equals

        public boolean equals​(Object obj)
        Specified by:
        equals in interface com.google.protobuf.Message
        Overrides:
        equals in class com.google.protobuf.AbstractMessage
      • hashCode

        public int hashCode()
        Specified by:
        hashCode in interface com.google.protobuf.Message
        Overrides:
        hashCode in class com.google.protobuf.AbstractMessage
      • parseFrom

        public static CertificateDescription parseFrom​(ByteBuffer data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CertificateDescription parseFrom​(ByteBuffer data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CertificateDescription parseFrom​(com.google.protobuf.ByteString data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CertificateDescription parseFrom​(com.google.protobuf.ByteString data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CertificateDescription parseFrom​(byte[] data)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • parseFrom

        public static CertificateDescription parseFrom​(byte[] data,
                                                       com.google.protobuf.ExtensionRegistryLite extensionRegistry)
                                                throws com.google.protobuf.InvalidProtocolBufferException
        Throws:
        com.google.protobuf.InvalidProtocolBufferException
      • newBuilderForType

        public CertificateDescription.Builder newBuilderForType()
        Specified by:
        newBuilderForType in interface com.google.protobuf.Message
        Specified by:
        newBuilderForType in interface com.google.protobuf.MessageLite
      • toBuilder

        public CertificateDescription.Builder toBuilder()
        Specified by:
        toBuilder in interface com.google.protobuf.Message
        Specified by:
        toBuilder in interface com.google.protobuf.MessageLite
      • newBuilderForType

        protected CertificateDescription.Builder newBuilderForType​(com.google.protobuf.GeneratedMessageV3.BuilderParent parent)
        Specified by:
        newBuilderForType in class com.google.protobuf.GeneratedMessageV3
      • getParserForType

        public com.google.protobuf.Parser<CertificateDescription> getParserForType()
        Specified by:
        getParserForType in interface com.google.protobuf.Message
        Specified by:
        getParserForType in interface com.google.protobuf.MessageLite
        Overrides:
        getParserForType in class com.google.protobuf.GeneratedMessageV3
      • getDefaultInstanceForType

        public CertificateDescription getDefaultInstanceForType()
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageLiteOrBuilder
        Specified by:
        getDefaultInstanceForType in interface com.google.protobuf.MessageOrBuilder