Cloud KMS V1 Client - Class Certificate (1.23.0)

Reference documentation and code samples for the Cloud KMS V1 Client class Certificate.

A Certificate represents an X.509 certificate used to authenticate HTTPS connections to EKM replicas.

Generated from protobuf message google.cloud.kms.v1.Certificate

Namespace

Google \ Cloud \ Kms \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ raw_der string

Required. The raw certificate bytes in DER format.

↳ parsed bool

Output only. True if the certificate was parsed successfully.

↳ issuer string

Output only. The issuer distinguished name in RFC 2253 format. Only present if parsed is true.

↳ subject string

Output only. The subject distinguished name in RFC 2253 format. Only present if parsed is true.

↳ subject_alternative_dns_names array

Output only. The subject Alternative DNS names. Only present if parsed is true.

↳ not_before_time Google\Protobuf\Timestamp

Output only. The certificate is not valid before this time. Only present if parsed is true.

↳ not_after_time Google\Protobuf\Timestamp

Output only. The certificate is not valid after this time. Only present if parsed is true.

↳ serial_number string

Output only. The certificate serial number as a hex string. Only present if parsed is true.

↳ sha256_fingerprint string

Output only. The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true.

getRawDer

Required. The raw certificate bytes in DER format.

Returns
Type Description
string

setRawDer

Required. The raw certificate bytes in DER format.

Parameter
Name Description
var string
Returns
Type Description
$this

getParsed

Output only. True if the certificate was parsed successfully.

Returns
Type Description
bool

setParsed

Output only. True if the certificate was parsed successfully.

Parameter
Name Description
var bool
Returns
Type Description
$this

getIssuer

Output only. The issuer distinguished name in RFC 2253 format. Only present if parsed is true.

Returns
Type Description
string

setIssuer

Output only. The issuer distinguished name in RFC 2253 format. Only present if parsed is true.

Parameter
Name Description
var string
Returns
Type Description
$this

getSubject

Output only. The subject distinguished name in RFC 2253 format. Only present if parsed is true.

Returns
Type Description
string

setSubject

Output only. The subject distinguished name in RFC 2253 format. Only present if parsed is true.

Parameter
Name Description
var string
Returns
Type Description
$this

getSubjectAlternativeDnsNames

Output only. The subject Alternative DNS names. Only present if parsed is true.

Returns
Type Description
Google\Protobuf\Internal\RepeatedField

setSubjectAlternativeDnsNames

Output only. The subject Alternative DNS names. Only present if parsed is true.

Parameter
Name Description
var string[]
Returns
Type Description
$this

getNotBeforeTime

Output only. The certificate is not valid before this time. Only present if parsed is true.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasNotBeforeTime

clearNotBeforeTime

setNotBeforeTime

Output only. The certificate is not valid before this time. Only present if parsed is true.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getNotAfterTime

Output only. The certificate is not valid after this time. Only present if parsed is true.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasNotAfterTime

clearNotAfterTime

setNotAfterTime

Output only. The certificate is not valid after this time. Only present if parsed is true.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getSerialNumber

Output only. The certificate serial number as a hex string. Only present if parsed is true.

Returns
Type Description
string

setSerialNumber

Output only. The certificate serial number as a hex string. Only present if parsed is true.

Parameter
Name Description
var string
Returns
Type Description
$this

getSha256Fingerprint

Output only. The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true.

Returns
Type Description
string

setSha256Fingerprint

Output only. The SHA-256 certificate fingerprint as a hex string. Only present if parsed is true.

Parameter
Name Description
var string
Returns
Type Description
$this