Google Certificate Authority Service V1beta1 Client - Class X509Extension (1.7.2)

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

An [X509Extension][google.cloud.security.privateca.v1beta1.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.v1beta1.X509Extension

Namespace

Google \ Cloud \ Security \ PrivateCA \ V1beta1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

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

Required. The OID for this X.509 extension.

↳ critical bool

Required. 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
Type Description
Google\Cloud\Security\PrivateCA\V1beta1\ObjectId|null

hasObjectId

clearObjectId

setObjectId

Required. The OID for this X.509 extension.

Parameter
Name Description
var Google\Cloud\Security\PrivateCA\V1beta1\ObjectId
Returns
Type Description
$this

getCritical

Required. 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
Type Description
bool

setCritical

Required. 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
Name Description
var bool
Returns
Type Description
$this

getValue

Required. The value of this X.509 extension.

Returns
Type Description
string

setValue

Required. The value of this X.509 extension.

Parameter
Name Description
var string
Returns
Type Description
$this