Reference documentation and code samples for the Cloud KMS V1 Client class GetPublicKeyRequest.
Request message for KeyManagementService.GetPublicKey .
Generated from protobuf message google.cloud.kms.v1.GetPublicKeyRequest
Namespace
Google \ Cloud \ Kms \ V1Methods
__construct
Constructor.
data
array
Optional. Data for populating the Message object.
↳ name
↳ public_key_format
int
Optional. The PublicKey format specified by the user. This field is required for PQC algorithms. If specified, the public key will be exported through the public_key field in the requested format. Otherwise, the pem field will be populated for non-PQC algorithms, and an error will be returned for PQC algorithms.
getName
Required. The name of the CryptoKeyVersion public key to get.
string
setName
Required. The name of the CryptoKeyVersion public key to get.
var
string
$this
getPublicKeyFormat
Optional. The PublicKey format specified by the user. This field is required for PQC algorithms. If specified, the public key will be exported through the public_key field in the requested format. Otherwise, the pem field will be populated for non-PQC algorithms, and an error will be returned for PQC algorithms.
int
setPublicKeyFormat
Optional. The PublicKey format specified by the user. This field is required for PQC algorithms. If specified, the public key will be exported through the public_key field in the requested format. Otherwise, the pem field will be populated for non-PQC algorithms, and an error will be returned for PQC algorithms.
var
int
$this
static::build
name
string
Required. The name of the CryptoKeyVersion public key to get. Please see KeyManagementServiceClient::cryptoKeyVersionName() for help formatting this field.