Google Cloud Binary Authorization V1beta1 Client - Class PkixPublicKey (0.5.13)

Reference documentation and code samples for the Google Cloud Binary Authorization V1beta1 Client class PkixPublicKey.

A public key in the PkixPublicKey format (see https://tools.ietf.org/html/rfc5280#section-4.1.2.7 for details).

Public keys of this type are typically textually encoded using the PEM format.

Generated from protobuf message google.cloud.binaryauthorization.v1beta1.PkixPublicKey

Namespace

Google \ Cloud \ BinaryAuthorization \ V1beta1

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ public_key_pem string

A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13

↳ signature_algorithm int

The signature algorithm used to verify a message against a signature using this key. These signature algorithm must match the structure and any object identifiers encoded in public_key_pem (i.e. this algorithm must match that of the public key).

getPublicKeyPem

A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13

Returns
TypeDescription
string

setPublicKeyPem

A PEM-encoded public key, as described in https://tools.ietf.org/html/rfc7468#section-13

Parameter
NameDescription
var string
Returns
TypeDescription
$this

getSignatureAlgorithm

The signature algorithm used to verify a message against a signature using this key.

These signature algorithm must match the structure and any object identifiers encoded in public_key_pem (i.e. this algorithm must match that of the public key).

Returns
TypeDescription
int

setSignatureAlgorithm

The signature algorithm used to verify a message against a signature using this key.

These signature algorithm must match the structure and any object identifiers encoded in public_key_pem (i.e. this algorithm must match that of the public key).

Parameter
NameDescription
var int
Returns
TypeDescription
$this