public sealed class PublicKey : IMessage<PublicKey>, IEquatable<PublicKey>, IDeepCloneable<PublicKey>, IBufferMessage, IMessage
Reference documentation and code samples for the Google Cloud Key Management Service v1 API class PublicKey.
The public keys for a given [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion]. Obtained via [GetPublicKey][google.cloud.kms.v1.KeyManagementService.GetPublicKey].
Implements
IMessagePublicKey, IEquatablePublicKey, IDeepCloneablePublicKey, IBufferMessage, IMessageNamespace
Google.Cloud.Kms.V1Assembly
Google.Cloud.Kms.V1.dll
Constructors
PublicKey()
public PublicKey()
PublicKey(PublicKey)
public PublicKey(PublicKey other)
Parameter | |
---|---|
Name | Description |
other |
PublicKey |
Properties
Algorithm
public CryptoKeyVersion.Types.CryptoKeyVersionAlgorithm Algorithm { get; set; }
The [Algorithm][google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm] associated with this key.
Property Value | |
---|---|
Type | Description |
CryptoKeyVersionTypesCryptoKeyVersionAlgorithm |
Name
public string Name { get; set; }
The [name][google.cloud.kms.v1.CryptoKeyVersion.name] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key. Provided here for verification.
NOTE: This field is in Beta.
Property Value | |
---|---|
Type | Description |
string |
Pem
public string Pem { get; set; }
The public key, encoded in PEM format. For more information, see the RFC 7468 sections for General Considerations and Textual Encoding of Subject Public Key Info.
Property Value | |
---|---|
Type | Description |
string |
PemCrc32C
public long? PemCrc32C { get; set; }
Integrity verification field. A CRC32C checksum of the returned [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem]. An integrity check of [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] can be performed by computing the CRC32C checksum of [PublicKey.pem][google.cloud.kms.v1.PublicKey.pem] and comparing your results to this field. Discard the response in case of non-matching checksum values, and perform a limited number of retries. A persistent mismatch may indicate an issue in your computation of the CRC32C checksum. Note: This field is defined as int64 for reasons of compatibility across different languages. However, it is a non-negative integer, which will never exceed 2^32-1, and can be safely downconverted to uint32 in languages that support this type.
NOTE: This field is in Beta.
Property Value | |
---|---|
Type | Description |
System.Int64 |
ProtectionLevel
public ProtectionLevel ProtectionLevel { get; set; }
The [ProtectionLevel][google.cloud.kms.v1.ProtectionLevel] of the [CryptoKeyVersion][google.cloud.kms.v1.CryptoKeyVersion] public key.
Property Value | |
---|---|
Type | Description |
ProtectionLevel |
PublicKeyName
public PublicKeyName PublicKeyName { get; set; }
PublicKeyName-typed view over the Name resource name property.
Property Value | |
---|---|
Type | Description |
PublicKeyName |