Google Certificate Authority Service V1 Client - Class PublicKey (1.3.1)

Reference documentation and code samples for the Google Certificate Authority Service V1 Client class PublicKey.

A PublicKey describes a public key.

Generated from protobuf message google.cloud.security.privateca.v1.PublicKey

Namespace

Google \ Cloud \ Security \ PrivateCA \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ key string

Required. A public key. The padding and encoding must match with the KeyFormat value specified for the format field.

↳ format int

Required. The format of the public key.

getKey

Required. A public key. The padding and encoding must match with the KeyFormat value specified for the format field.

Returns
TypeDescription
string

setKey

Required. A public key. The padding and encoding must match with the KeyFormat value specified for the format field.

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getFormat

Required. The format of the public key.

Returns
TypeDescription
int

setFormat

Required. The format of the public key.

Parameter
NameDescription
var int
Returns
TypeDescription
$this