Google Certificate Authority Service V1beta1 Client - Class SubjectConfig (1.4.2)

Reference documentation and code samples for the Google Certificate Authority Service V1beta1 Client class SubjectConfig.

These values are used to create the distinguished name and subject alternative name fields in an X.509 certificate.

Generated from protobuf message google.cloud.security.privateca.v1beta1.CertificateConfig.SubjectConfig

Namespace

Google \ Cloud \ Security \ PrivateCA \ V1beta1 \ CertificateConfig

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

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

Required. Contains distinguished name fields such as the location and organization.

↳ common_name string

Optional. The "common name" of the distinguished name.

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

Optional. The subject alternative name fields.

getSubject

Required. Contains distinguished name fields such as the location and organization.

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

hasSubject

clearSubject

setSubject

Required. Contains distinguished name fields such as the location and organization.

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

getCommonName

Optional. The "common name" of the distinguished name.

Returns
TypeDescription
string

setCommonName

Optional. The "common name" of the distinguished name.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSubjectAltName

Optional. The subject alternative name fields.

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

hasSubjectAltName

clearSubjectAltName

setSubjectAltName

Optional. The subject alternative name fields.

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