Google Cloud Binary Authorization V1 Client - Class PkixPublicKey (1.1.1)

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

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

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

Generated from protobuf messagegoogle.cloud.binaryauthorization.v1.PkixPublicKey

Namespace

Google \ Cloud \ BinaryAuthorization \ V1

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ public_key_pemstring

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

↳ signature_algorithmint

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 inpublic_key_pem (i.e. this algorithm must match that of the public key).

getPublicKeyPem

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

Returns
TypeDescription
string

setPublicKeyPem

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

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getSignatureAlgorithm

The signature algorithm used to verify a message against a signature usingthis key.

These signature algorithm must match the structure and any objectidentifiers encoded inpublic_key_pem (i.e. this algorithm must matchthat of the public key).

Returns
TypeDescription
intEnum of typeSignatureAlgorithm.

setSignatureAlgorithm

The signature algorithm used to verify a message against a signature usingthis key.

These signature algorithm must match the structure and any objectidentifiers encoded inpublic_key_pem (i.e. this algorithm must matchthat of the public key).

Parameter
NameDescription
varint

Enum of typeSignatureAlgorithm.

Returns
TypeDescription
$this

Except as otherwise noted, the content of this page is licensed under theCreative Commons Attribution 4.0 License, and code samples are licensed under theApache 2.0 License. For details, see theGoogle Developers Site Policies. Java is a registered trademark of Oracle and/or its affiliates.

Last updated 2025-10-30 UTC.