Google Certificate Authority Service V1beta1 Client - Class X509Extension (1.4.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
NameDescription
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
TypeDescription
Google\Cloud\Security\PrivateCA\V1beta1\ObjectId|null

hasObjectId

clearObjectId

setObjectId

Required. The OID for this X.509 extension.

Parameter
NameDescription
var Google\Cloud\Security\PrivateCA\V1beta1\ObjectId
Returns
TypeDescription
$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
TypeDescription
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
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