Google Certificate Authority Service V1 Client - Class X509Extension (1.1.0)

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

An [X509Extension][google.cloud.security.privateca.v1.X509Extension] specifies an X.509 extension, which may be used in different parts of X.509 objects like certificates, CSRs, and CRLs.

Generated from protobuf message google.cloud.security.privateca.v1.X509Extension

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ object_id Google\Cloud\Security\PrivateCA\V1\ObjectId

Required. The OID for this X.509 extension.

↳ critical bool

Optional. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error).

↳ value string

Required. The value of this X.509 extension.

getObjectId

Required. The OID for this X.509 extension.

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

hasObjectId

clearObjectId

setObjectId

Required. The OID for this X.509 extension.

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

getCritical

Optional. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error).

Returns
TypeDescription
bool

setCritical

Optional. Indicates whether or not this extension is critical (i.e., if the client does not know how to handle this extension, the client should consider this to be an error).

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getValue

Required. The value of this X.509 extension.

Returns
TypeDescription
string

setValue

Required. The value of this X.509 extension.

Parameter
NameDescription
var string
Returns
TypeDescription
$this