Google Cloud IoT Core V1 Client - Class PublicKeyCertificate (1.6.4)

Reference documentation and code samples for the Google Cloud IoT Core V1 Client class PublicKeyCertificate.

A public key certificate format and data.

Generated from protobuf message google.cloud.iot.v1.PublicKeyCertificate

Namespace

Google \ Cloud \ Iot \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ format int

The certificate format.

↳ certificate string

The certificate data.

↳ x509_details Google\Cloud\Iot\V1\X509CertificateDetails

[Output only] The certificate details. Used only for X.509 certificates.

getFormat

The certificate format.

Returns
TypeDescription
int

setFormat

The certificate format.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getCertificate

The certificate data.

Returns
TypeDescription
string

setCertificate

The certificate data.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getX509Details

[Output only] The certificate details. Used only for X.509 certificates.

Returns
TypeDescription
Google\Cloud\Iot\V1\X509CertificateDetails|null

hasX509Details

clearX509Details

setX509Details

[Output only] The certificate details. Used only for X.509 certificates.

Parameter
NameDescription
var Google\Cloud\Iot\V1\X509CertificateDetails
Returns
TypeDescription
$this