Google Cloud Binary Authorization V1 Client - Class AttestorPublicKey (1.0.3)

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

An attestor public key that will be used to verify attestations signed by this attestor.

Generated from protobuf message google.cloud.binaryauthorization.v1.AttestorPublicKey

Namespace

Google \ Cloud \ BinaryAuthorization \ V1

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ comment string

Optional. A descriptive comment. This field may be updated.

↳ id string

The ID of this public key. Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on public_key cases below for details.

↳ ascii_armored_pgp_public_key string

ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings). When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.

↳ pkix_public_key PkixPublicKey

A raw PKIX SubjectPublicKeyInfo format public key. NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

getComment

Optional. A descriptive comment. This field may be updated.

Returns
Type Description
string

setComment

Optional. A descriptive comment. This field may be updated.

Parameter
Name Description
var string
Returns
Type Description
$this

getId

The ID of this public key.

Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on public_key cases below for details.

Returns
Type Description
string

setId

The ID of this public key.

Signatures verified by BinAuthz must include the ID of the public key that can be used to verify them, and that ID must match the contents of this field exactly. Additional restrictions on this field can be imposed based on which public key type is encapsulated. See the documentation on public_key cases below for details.

Parameter
Name Description
var string
Returns
Type Description
$this

getAsciiArmoredPgpPublicKey

ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings).

When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.

Returns
Type Description
string

hasAsciiArmoredPgpPublicKey

setAsciiArmoredPgpPublicKey

ASCII-armored representation of a PGP public key, as the entire output by the command gpg --export --armor foo@example.com (either LF or CRLF line endings).

When using this field, id should be left blank. The BinAuthz API handlers will calculate the ID and fill it in automatically. BinAuthz computes this ID as the OpenPGP RFC4880 V4 fingerprint, represented as upper-case hex. If id is provided by the caller, it will be overwritten by the API-calculated ID.

Parameter
Name Description
var string
Returns
Type Description
$this

getPkixPublicKey

A raw PKIX SubjectPublicKeyInfo format public key.

NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

Returns
Type Description
PkixPublicKey|null

hasPkixPublicKey

setPkixPublicKey

A raw PKIX SubjectPublicKeyInfo format public key.

NOTE: id may be explicitly provided by the caller when using this type of public key, but it MUST be a valid RFC3986 URI. If id is left blank, a default one will be computed based on the digest of the DER encoding of the public key.

Parameter
Name Description
var PkixPublicKey
Returns
Type Description
$this

getPublicKey

Returns
Type Description
string