Class PublicKey (1.6.1)

PublicKey(mapping=None, *, ignore_unknown_fields=False, **kwargs)

A PublicKey describes a public key.

Attributes

NameDescription
type_ google.cloud.security.privateca_v1beta1.types.PublicKey.KeyType
Required. The type of public key.
key bytes
Required. A public key. Padding and encoding varies by 'KeyType' and is described along with the KeyType values.

Classes

KeyType

KeyType(value)

Types of public keys that are supported. At a minimum, we support RSA and ECDSA, for the key sizes or curves listed: https://cloud.google.com/kms/docs/algorithms#asymmetric_signing_algorithms

Values: KEY_TYPE_UNSPECIFIED (0): Default unspecified value. PEM_RSA_KEY (1): A PEM-encoded PKCS#1/RFC 3447 RSAPrivateKey structure. PEM_EC_KEY (2): A PEM-encoded compressed NIST P-256/secp256r1/prime256v1 or P-384 key.