Google Certificate Authority Service V1 Client - Class SubjectDescription (1.4.2)

Reference documentation and code samples for the Google Certificate Authority Service V1 Client class SubjectDescription.

These values describe fields in an issued X.509 certificate such as the distinguished name, subject alternative names, serial number, and lifetime.

Generated from protobuf message google.cloud.security.privateca.v1.CertificateDescription.SubjectDescription

Namespace

Google \ Cloud \ Security \ PrivateCA \ V1 \ CertificateDescription

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ subject Google\Cloud\Security\PrivateCA\V1\Subject

Contains distinguished name fields such as the common name, location and / organization.

↳ subject_alt_name Google\Cloud\Security\PrivateCA\V1\SubjectAltNames

The subject alternative name fields.

↳ hex_serial_number string

The serial number encoded in lowercase hexadecimal.

↳ lifetime Google\Protobuf\Duration

For convenience, the actual lifetime of an issued certificate.

↳ not_before_time Google\Protobuf\Timestamp

The time at which the certificate becomes valid.

↳ not_after_time Google\Protobuf\Timestamp

The time after which the certificate is expired. Per RFC 5280, the validity period for a certificate is the period of time from not_before_time through not_after_time, inclusive. Corresponds to 'not_before_time' + 'lifetime' - 1 second.

getSubject

Contains distinguished name fields such as the common name, location and / organization.

Returns
TypeDescription
Google\Cloud\Security\PrivateCA\V1\Subject|null

hasSubject

clearSubject

setSubject

Contains distinguished name fields such as the common name, location and / organization.

Parameter
NameDescription
var Google\Cloud\Security\PrivateCA\V1\Subject
Returns
TypeDescription
$this

getSubjectAltName

The subject alternative name fields.

Returns
TypeDescription
Google\Cloud\Security\PrivateCA\V1\SubjectAltNames|null

hasSubjectAltName

clearSubjectAltName

setSubjectAltName

The subject alternative name fields.

Parameter
NameDescription
var Google\Cloud\Security\PrivateCA\V1\SubjectAltNames
Returns
TypeDescription
$this

getHexSerialNumber

The serial number encoded in lowercase hexadecimal.

Returns
TypeDescription
string

setHexSerialNumber

The serial number encoded in lowercase hexadecimal.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getLifetime

For convenience, the actual lifetime of an issued certificate.

Returns
TypeDescription
Google\Protobuf\Duration|null

hasLifetime

clearLifetime

setLifetime

For convenience, the actual lifetime of an issued certificate.

Parameter
NameDescription
var Google\Protobuf\Duration
Returns
TypeDescription
$this

getNotBeforeTime

The time at which the certificate becomes valid.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasNotBeforeTime

clearNotBeforeTime

setNotBeforeTime

The time at which the certificate becomes valid.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this

getNotAfterTime

The time after which the certificate is expired.

Per RFC 5280, the validity period for a certificate is the period of time from not_before_time through not_after_time, inclusive. Corresponds to 'not_before_time' + 'lifetime' - 1 second.

Returns
TypeDescription
Google\Protobuf\Timestamp|null

hasNotAfterTime

clearNotAfterTime

setNotAfterTime

The time after which the certificate is expired.

Per RFC 5280, the validity period for a certificate is the period of time from not_before_time through not_after_time, inclusive. Corresponds to 'not_before_time' + 'lifetime' - 1 second.

Parameter
NameDescription
var Google\Protobuf\Timestamp
Returns
TypeDescription
$this