Class CertificateDescription (2.15.0)

public final class CertificateDescription extends GeneratedMessageV3 implements CertificateDescriptionOrBuilder

A 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.v1beta1.CertificateDescription

Static Fields

AIA_ISSUING_CERTIFICATE_URLS_FIELD_NUMBER

public static final int AIA_ISSUING_CERTIFICATE_URLS_FIELD_NUMBER
Field Value
TypeDescription
int

AUTHORITY_KEY_ID_FIELD_NUMBER

public static final int AUTHORITY_KEY_ID_FIELD_NUMBER
Field Value
TypeDescription
int

CERT_FINGERPRINT_FIELD_NUMBER

public static final int CERT_FINGERPRINT_FIELD_NUMBER
Field Value
TypeDescription
int

CONFIG_VALUES_FIELD_NUMBER

public static final int CONFIG_VALUES_FIELD_NUMBER
Field Value
TypeDescription
int

CRL_DISTRIBUTION_POINTS_FIELD_NUMBER

public static final int CRL_DISTRIBUTION_POINTS_FIELD_NUMBER
Field Value
TypeDescription
int

PUBLIC_KEY_FIELD_NUMBER

public static final int PUBLIC_KEY_FIELD_NUMBER
Field Value
TypeDescription
int

SUBJECT_DESCRIPTION_FIELD_NUMBER

public static final int SUBJECT_DESCRIPTION_FIELD_NUMBER
Field Value
TypeDescription
int

SUBJECT_KEY_ID_FIELD_NUMBER

public static final int SUBJECT_KEY_ID_FIELD_NUMBER
Field Value
TypeDescription
int

Static Methods

getDefaultInstance()

public static CertificateDescription getDefaultInstance()
Returns
TypeDescription
CertificateDescription

getDescriptor()

public static final Descriptors.Descriptor getDescriptor()
Returns
TypeDescription
Descriptor

newBuilder()

public static CertificateDescription.Builder newBuilder()
Returns
TypeDescription
CertificateDescription.Builder

newBuilder(CertificateDescription prototype)

public static CertificateDescription.Builder newBuilder(CertificateDescription prototype)
Parameter
NameDescription
prototypeCertificateDescription
Returns
TypeDescription
CertificateDescription.Builder

parseDelimitedFrom(InputStream input)

public static CertificateDescription parseDelimitedFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CertificateDescription
Exceptions
TypeDescription
IOException

parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CertificateDescription parseDelimitedFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateDescription
Exceptions
TypeDescription
IOException

parseFrom(byte[] data)

public static CertificateDescription parseFrom(byte[] data)
Parameter
NameDescription
databyte[]
Returns
TypeDescription
CertificateDescription
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)

public static CertificateDescription parseFrom(byte[] data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
databyte[]
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateDescription
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data)

public static CertificateDescription parseFrom(ByteString data)
Parameter
NameDescription
dataByteString
Returns
TypeDescription
CertificateDescription
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)

public static CertificateDescription parseFrom(ByteString data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteString
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateDescription
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(CodedInputStream input)

public static CertificateDescription parseFrom(CodedInputStream input)
Parameter
NameDescription
inputCodedInputStream
Returns
TypeDescription
CertificateDescription
Exceptions
TypeDescription
IOException

parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)

public static CertificateDescription parseFrom(CodedInputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputCodedInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateDescription
Exceptions
TypeDescription
IOException

parseFrom(InputStream input)

public static CertificateDescription parseFrom(InputStream input)
Parameter
NameDescription
inputInputStream
Returns
TypeDescription
CertificateDescription
Exceptions
TypeDescription
IOException

parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)

public static CertificateDescription parseFrom(InputStream input, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
inputInputStream
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateDescription
Exceptions
TypeDescription
IOException

parseFrom(ByteBuffer data)

public static CertificateDescription parseFrom(ByteBuffer data)
Parameter
NameDescription
dataByteBuffer
Returns
TypeDescription
CertificateDescription
Exceptions
TypeDescription
InvalidProtocolBufferException

parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)

public static CertificateDescription parseFrom(ByteBuffer data, ExtensionRegistryLite extensionRegistry)
Parameters
NameDescription
dataByteBuffer
extensionRegistryExtensionRegistryLite
Returns
TypeDescription
CertificateDescription
Exceptions
TypeDescription
InvalidProtocolBufferException

parser()

public static Parser<CertificateDescription> parser()
Returns
TypeDescription
Parser<CertificateDescription>

Methods

equals(Object obj)

public boolean equals(Object obj)
Parameter
NameDescription
objObject
Returns
TypeDescription
boolean
Overrides

getAiaIssuingCertificateUrls(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The aiaIssuingCertificateUrls at the given index.

getAiaIssuingCertificateUrlsBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the aiaIssuingCertificateUrls at the given index.

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;

Returns
TypeDescription
int

The count of aiaIssuingCertificateUrls.

getAiaIssuingCertificateUrlsList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the aiaIssuingCertificateUrls.

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.v1beta1.CertificateDescription.KeyId authority_key_id = 5;

Returns
TypeDescription
CertificateDescription.KeyId

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.v1beta1.CertificateDescription.KeyId authority_key_id = 5;

Returns
TypeDescription
CertificateDescription.KeyIdOrBuilder

getCertFingerprint()

public CertificateDescription.CertificateFingerprint getCertFingerprint()

The hash of the x.509 certificate.

.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8;

Returns
TypeDescription
CertificateDescription.CertificateFingerprint

The certFingerprint.

getCertFingerprintOrBuilder()

public CertificateDescription.CertificateFingerprintOrBuilder getCertFingerprintOrBuilder()

The hash of the x.509 certificate.

.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8;

Returns
TypeDescription
CertificateDescription.CertificateFingerprintOrBuilder

getConfigValues()

public ReusableConfigValues getConfigValues()

Describes some of the technical fields in a certificate.

.google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2;

Returns
TypeDescription
ReusableConfigValues

The configValues.

getConfigValuesOrBuilder()

public ReusableConfigValuesOrBuilder getConfigValuesOrBuilder()

Describes some of the technical fields in a certificate.

.google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2;

Returns
TypeDescription
ReusableConfigValuesOrBuilder

getCrlDistributionPoints(int index)

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;

Parameter
NameDescription
indexint

The index of the element to return.

Returns
TypeDescription
String

The crlDistributionPoints at the given index.

getCrlDistributionPointsBytes(int index)

public 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;

Parameter
NameDescription
indexint

The index of the value to return.

Returns
TypeDescription
ByteString

The bytes of the crlDistributionPoints at the given index.

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;

Returns
TypeDescription
int

The count of crlDistributionPoints.

getCrlDistributionPointsList()

public 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;

Returns
TypeDescription
ProtocolStringList

A list containing the crlDistributionPoints.

getDefaultInstanceForType()

public CertificateDescription getDefaultInstanceForType()
Returns
TypeDescription
CertificateDescription

getParserForType()

public Parser<CertificateDescription> getParserForType()
Returns
TypeDescription
Parser<CertificateDescription>
Overrides

getPublicKey()

public PublicKey getPublicKey()

The public key that corresponds to an issued certificate.

.google.cloud.security.privateca.v1beta1.PublicKey public_key = 3;

Returns
TypeDescription
PublicKey

The publicKey.

getPublicKeyOrBuilder()

public PublicKeyOrBuilder getPublicKeyOrBuilder()

The public key that corresponds to an issued certificate.

.google.cloud.security.privateca.v1beta1.PublicKey public_key = 3;

Returns
TypeDescription
PublicKeyOrBuilder

getSerializedSize()

public int getSerializedSize()
Returns
TypeDescription
int
Overrides

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.v1beta1.CertificateDescription.SubjectDescription subject_description = 1;

Returns
TypeDescription
CertificateDescription.SubjectDescription

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.v1beta1.CertificateDescription.SubjectDescription subject_description = 1;

Returns
TypeDescription
CertificateDescription.SubjectDescriptionOrBuilder

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.v1beta1.CertificateDescription.KeyId subject_key_id = 4;

Returns
TypeDescription
CertificateDescription.KeyId

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.v1beta1.CertificateDescription.KeyId subject_key_id = 4;

Returns
TypeDescription
CertificateDescription.KeyIdOrBuilder

getUnknownFields()

public final UnknownFieldSet getUnknownFields()
Returns
TypeDescription
UnknownFieldSet
Overrides

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.v1beta1.CertificateDescription.KeyId authority_key_id = 5;

Returns
TypeDescription
boolean

Whether the authorityKeyId field is set.

hasCertFingerprint()

public boolean hasCertFingerprint()

The hash of the x.509 certificate.

.google.cloud.security.privateca.v1beta1.CertificateDescription.CertificateFingerprint cert_fingerprint = 8;

Returns
TypeDescription
boolean

Whether the certFingerprint field is set.

hasConfigValues()

public boolean hasConfigValues()

Describes some of the technical fields in a certificate.

.google.cloud.security.privateca.v1beta1.ReusableConfigValues config_values = 2;

Returns
TypeDescription
boolean

Whether the configValues field is set.

hasPublicKey()

public boolean hasPublicKey()

The public key that corresponds to an issued certificate.

.google.cloud.security.privateca.v1beta1.PublicKey public_key = 3;

Returns
TypeDescription
boolean

Whether the publicKey field is set.

hasSubjectDescription()

public boolean hasSubjectDescription()

Describes some of the values in a certificate that are related to the subject and lifetime.

.google.cloud.security.privateca.v1beta1.CertificateDescription.SubjectDescription subject_description = 1;

Returns
TypeDescription
boolean

Whether the subjectDescription field is set.

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.v1beta1.CertificateDescription.KeyId subject_key_id = 4;

Returns
TypeDescription
boolean

Whether the subjectKeyId field is set.

hashCode()

public int hashCode()
Returns
TypeDescription
int
Overrides

internalGetFieldAccessorTable()

protected GeneratedMessageV3.FieldAccessorTable internalGetFieldAccessorTable()
Returns
TypeDescription
FieldAccessorTable
Overrides

isInitialized()

public final boolean isInitialized()
Returns
TypeDescription
boolean
Overrides

newBuilderForType()

public CertificateDescription.Builder newBuilderForType()
Returns
TypeDescription
CertificateDescription.Builder

newBuilderForType(GeneratedMessageV3.BuilderParent parent)

protected CertificateDescription.Builder newBuilderForType(GeneratedMessageV3.BuilderParent parent)
Parameter
NameDescription
parentBuilderParent
Returns
TypeDescription
CertificateDescription.Builder
Overrides

newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)

protected Object newInstance(GeneratedMessageV3.UnusedPrivateParameter unused)
Parameter
NameDescription
unusedUnusedPrivateParameter
Returns
TypeDescription
Object
Overrides

toBuilder()

public CertificateDescription.Builder toBuilder()
Returns
TypeDescription
CertificateDescription.Builder

writeTo(CodedOutputStream output)

public void writeTo(CodedOutputStream output)
Parameter
NameDescription
outputCodedOutputStream
Overrides
Exceptions
TypeDescription
IOException