Google Certificate Authority Service V1beta1 Client - Class KeyUsage (1.3.1)

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

A KeyUsage describes key usage values that may appear in an X.509 certificate.

Generated from protobuf message google.cloud.security.privateca.v1beta1.KeyUsage

Namespace

Google \ Cloud \ Security \ PrivateCA \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ base_key_usage Google\Cloud\Security\PrivateCA\V1beta1\KeyUsage\KeyUsageOptions

Describes high-level ways in which a key may be used.

↳ extended_key_usage Google\Cloud\Security\PrivateCA\V1beta1\KeyUsage\ExtendedKeyUsageOptions

Detailed scenarios in which a key may be used.

↳ unknown_extended_key_usages array<Google\Cloud\Security\PrivateCA\V1beta1\ObjectId>

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

getBaseKeyUsage

Describes high-level ways in which a key may be used.

Returns
TypeDescription
Google\Cloud\Security\PrivateCA\V1beta1\KeyUsage\KeyUsageOptions|null

hasBaseKeyUsage

clearBaseKeyUsage

setBaseKeyUsage

Describes high-level ways in which a key may be used.

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

getExtendedKeyUsage

Detailed scenarios in which a key may be used.

Returns
TypeDescription
Google\Cloud\Security\PrivateCA\V1beta1\KeyUsage\ExtendedKeyUsageOptions|null

hasExtendedKeyUsage

clearExtendedKeyUsage

setExtendedKeyUsage

Detailed scenarios in which a key may be used.

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

getUnknownExtendedKeyUsages

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

Returns
TypeDescription
Google\Protobuf\Internal\RepeatedField

setUnknownExtendedKeyUsages

Used to describe extended key usages that are not listed in the KeyUsage.ExtendedKeyUsageOptions message.

Parameter
NameDescription
var array<Google\Cloud\Security\PrivateCA\V1beta1\ObjectId>
Returns
TypeDescription
$this