Class CertificateDescription

java.lang.Object
com.google.protobuf.AbstractMessageLite
com.google.protobuf.AbstractMessage
com.google.protobuf.GeneratedMessage
com.google.cloud.security.privateca.v1.CertificateDescription
All Implemented Interfaces:
CertificateDescriptionOrBuilder, com.google.protobuf.Message, com.google.protobuf.MessageLite, com.google.protobuf.MessageLiteOrBuilder, com.google.protobuf.MessageOrBuilder, Serializable

@Generated public final class CertificateDescription extends com.google.protobuf.GeneratedMessage 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:
  • Field Details

    • SUBJECT_DESCRIPTION_FIELD_NUMBER

      public static final int SUBJECT_DESCRIPTION_FIELD_NUMBER
      See Also:
    • X509_DESCRIPTION_FIELD_NUMBER

      public static final int X509_DESCRIPTION_FIELD_NUMBER
      See Also:
    • PUBLIC_KEY_FIELD_NUMBER

      public static final int PUBLIC_KEY_FIELD_NUMBER
      See Also:
    • SUBJECT_KEY_ID_FIELD_NUMBER

      public static final int SUBJECT_KEY_ID_FIELD_NUMBER
      See Also:
    • AUTHORITY_KEY_ID_FIELD_NUMBER

      public static final int AUTHORITY_KEY_ID_FIELD_NUMBER
      See Also:
    • CRL_DISTRIBUTION_POINTS_FIELD_NUMBER

      public static final int CRL_DISTRIBUTION_POINTS_FIELD_NUMBER
      See Also:
    • AIA_ISSUING_CERTIFICATE_URLS_FIELD_NUMBER

      public static final int AIA_ISSUING_CERTIFICATE_URLS_FIELD_NUMBER
      See Also:
    • CERT_FINGERPRINT_FIELD_NUMBER

      public static final int CERT_FINGERPRINT_FIELD_NUMBER
      See Also:
    • TBS_CERTIFICATE_DIGEST_FIELD_NUMBER

      public static final int TBS_CERTIFICATE_DIGEST_FIELD_NUMBER
      See Also:
  • Method Details

    • 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
    • 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.
    • getSubjectDescription

      public CertificateDescription.SubjectDescription getSubjectDescription()
       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:
      getSubjectDescription in interface CertificateDescriptionOrBuilder
      Returns:
      The subjectDescription.
    • getSubjectDescriptionOrBuilder

      public CertificateDescription.SubjectDescriptionOrBuilder getSubjectDescriptionOrBuilder()
       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:
      getSubjectDescriptionOrBuilder in interface CertificateDescriptionOrBuilder
    • 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.
    • getX509Description

      public X509Parameters getX509Description()
       Describes some of the technical X.509 fields in a certificate.
       
      .google.cloud.security.privateca.v1.X509Parameters x509_description = 2;
      Specified by:
      getX509Description in interface CertificateDescriptionOrBuilder
      Returns:
      The x509Description.
    • getX509DescriptionOrBuilder

      public X509ParametersOrBuilder getX509DescriptionOrBuilder()
       Describes some of the technical X.509 fields in a certificate.
       
      .google.cloud.security.privateca.v1.X509Parameters x509_description = 2;
      Specified by:
      getX509DescriptionOrBuilder in interface CertificateDescriptionOrBuilder
    • 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.
    • getPublicKeyOrBuilder

      public PublicKeyOrBuilder getPublicKeyOrBuilder()
       The public key that corresponds to an issued certificate.
       
      .google.cloud.security.privateca.v1.PublicKey public_key = 3;
      Specified by:
      getPublicKeyOrBuilder in interface CertificateDescriptionOrBuilder
    • 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.
    • getSubjectKeyIdOrBuilder

      public CertificateDescription.KeyIdOrBuilder getSubjectKeyIdOrBuilder()
       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:
      getSubjectKeyIdOrBuilder in interface CertificateDescriptionOrBuilder
    • 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.
    • getAuthorityKeyIdOrBuilder

      public CertificateDescription.KeyIdOrBuilder getAuthorityKeyIdOrBuilder()
       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:
      getAuthorityKeyIdOrBuilder in interface CertificateDescriptionOrBuilder
    • 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.
    • getCertFingerprint

      public CertificateDescription.CertificateFingerprint getCertFingerprint()
       The hash of the x.509 certificate.
       
      .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8;
      Specified by:
      getCertFingerprint in interface CertificateDescriptionOrBuilder
      Returns:
      The certFingerprint.
    • getCertFingerprintOrBuilder

      public CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder()
       The hash of the x.509 certificate.
       
      .google.cloud.security.privateca.v1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8;
      Specified by:
      getCertFingerprintOrBuilder in interface CertificateDescriptionOrBuilder
    • getTbsCertificateDigest

      public String getTbsCertificateDigest()
       The hash of the pre-signed certificate, which will be signed by the CA.
       Corresponds to the TBS Certificate in
       https://tools.ietf.org/html/rfc5280#section-4.1.2. The field will always be
       populated.
       
      string tbs_certificate_digest = 9;
      Specified by:
      getTbsCertificateDigest in interface CertificateDescriptionOrBuilder
      Returns:
      The tbsCertificateDigest.
    • getTbsCertificateDigestBytes

      public com.google.protobuf.ByteString getTbsCertificateDigestBytes()
       The hash of the pre-signed certificate, which will be signed by the CA.
       Corresponds to the TBS Certificate in
       https://tools.ietf.org/html/rfc5280#section-4.1.2. The field will always be
       populated.
       
      string tbs_certificate_digest = 9;
      Specified by:
      getTbsCertificateDigestBytes in interface CertificateDescriptionOrBuilder
      Returns:
      The bytes for tbsCertificateDigest.
    • isInitialized

      public final boolean isInitialized()
      Specified by:
      isInitialized in interface com.google.protobuf.MessageLiteOrBuilder
      Overrides:
      isInitialized in class com.google.protobuf.GeneratedMessage
    • 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.GeneratedMessage
      Throws:
      IOException
    • getSerializedSize

      public int getSerializedSize()
      Specified by:
      getSerializedSize in interface com.google.protobuf.MessageLite
      Overrides:
      getSerializedSize in class com.google.protobuf.GeneratedMessage
    • 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
    • parseFrom

      public static CertificateDescription parseFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CertificateDescription parseFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CertificateDescription parseDelimitedFrom(InputStream input) throws IOException
      Throws:
      IOException
    • parseDelimitedFrom

      public static CertificateDescription parseDelimitedFrom(InputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CertificateDescription parseFrom(com.google.protobuf.CodedInputStream input) throws IOException
      Throws:
      IOException
    • parseFrom

      public static CertificateDescription parseFrom(com.google.protobuf.CodedInputStream input, com.google.protobuf.ExtensionRegistryLite extensionRegistry) throws IOException
      Throws:
      IOException
    • newBuilderForType

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

      public static CertificateDescription.Builder newBuilder()
    • newBuilder

      public static CertificateDescription.Builder newBuilder(CertificateDescription prototype)
    • 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.AbstractMessage.BuilderParent parent)
      Overrides:
      newBuilderForType in class com.google.protobuf.AbstractMessage
    • getDefaultInstance

      public static CertificateDescription getDefaultInstance()
    • parser

      public static com.google.protobuf.Parser<CertificateDescription> parser()
    • 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.GeneratedMessage
    • getDefaultInstanceForType

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