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

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

KeyUsage.KeyUsageOptions corresponds to the key usage values described in https://tools.ietf.org/html/rfc5280#section-4.2.1.3.

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

Namespace

Google \ Cloud \ Security \ PrivateCA \ V1beta1 \ KeyUsage

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ digital_signature bool

The key may be used for digital signatures.

↳ content_commitment bool

The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation".

↳ key_encipherment bool

The key may be used to encipher other keys.

↳ data_encipherment bool

The key may be used to encipher data.

↳ key_agreement bool

The key may be used in a key agreement protocol.

↳ cert_sign bool

The key may be used to sign certificates.

↳ crl_sign bool

The key may be used sign certificate revocation lists.

↳ encipher_only bool

The key may be used to encipher only.

↳ decipher_only bool

The key may be used to decipher only.

getDigitalSignature

The key may be used for digital signatures.

Returns
TypeDescription
bool

setDigitalSignature

The key may be used for digital signatures.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getContentCommitment

The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation".

Returns
TypeDescription
bool

setContentCommitment

The key may be used for cryptographic commitments. Note that this may also be referred to as "non-repudiation".

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getKeyEncipherment

The key may be used to encipher other keys.

Returns
TypeDescription
bool

setKeyEncipherment

The key may be used to encipher other keys.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getDataEncipherment

The key may be used to encipher data.

Returns
TypeDescription
bool

setDataEncipherment

The key may be used to encipher data.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getKeyAgreement

The key may be used in a key agreement protocol.

Returns
TypeDescription
bool

setKeyAgreement

The key may be used in a key agreement protocol.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getCertSign

The key may be used to sign certificates.

Returns
TypeDescription
bool

setCertSign

The key may be used to sign certificates.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getCrlSign

The key may be used sign certificate revocation lists.

Returns
TypeDescription
bool

setCrlSign

The key may be used sign certificate revocation lists.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getEncipherOnly

The key may be used to encipher only.

Returns
TypeDescription
bool

setEncipherOnly

The key may be used to encipher only.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getDecipherOnly

The key may be used to decipher only.

Returns
TypeDescription
bool

setDecipherOnly

The key may be used to decipher only.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this