Interface PublicKeyOrBuilder (2.25.0)

public interface PublicKeyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getAlgorithm()

public abstract CryptoKeyVersion.CryptoKeyVersionAlgorithm getAlgorithm()

The Algorithm associated with this key.

.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2;

Returns
TypeDescription
CryptoKeyVersion.CryptoKeyVersionAlgorithm

The algorithm.

getAlgorithmValue()

public abstract int getAlgorithmValue()

The Algorithm associated with this key.

.google.cloud.kms.v1.CryptoKeyVersion.CryptoKeyVersionAlgorithm algorithm = 2;

Returns
TypeDescription
int

The enum numeric value on the wire for algorithm.

getName()

public abstract String getName()

The name of the CryptoKeyVersion public key. Provided here for verification.

NOTE: This field is in Beta.

string name = 4;

Returns
TypeDescription
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The name of the CryptoKeyVersion public key. Provided here for verification.

NOTE: This field is in Beta.

string name = 4;

Returns
TypeDescription
ByteString

The bytes for name.

getPem()

public abstract String getPem()

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.

string pem = 1;

Returns
TypeDescription
String

The pem.

getPemBytes()

public abstract ByteString getPemBytes()

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.

string pem = 1;

Returns
TypeDescription
ByteString

The bytes for pem.

getPemCrc32C()

public abstract Int64Value getPemCrc32C()

Integrity verification field. A CRC32C checksum of the returned PublicKey.pem. An integrity check of PublicKey.pem can be performed by computing the CRC32C checksum of 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.

.google.protobuf.Int64Value pem_crc32c = 3;

Returns
TypeDescription
Int64Value

The pemCrc32c.

getPemCrc32COrBuilder()

public abstract Int64ValueOrBuilder getPemCrc32COrBuilder()

Integrity verification field. A CRC32C checksum of the returned PublicKey.pem. An integrity check of PublicKey.pem can be performed by computing the CRC32C checksum of 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.

.google.protobuf.Int64Value pem_crc32c = 3;

Returns
TypeDescription
Int64ValueOrBuilder

getProtectionLevel()

public abstract ProtectionLevel getProtectionLevel()

The ProtectionLevel of the CryptoKeyVersion public key.

.google.cloud.kms.v1.ProtectionLevel protection_level = 5;

Returns
TypeDescription
ProtectionLevel

The protectionLevel.

getProtectionLevelValue()

public abstract int getProtectionLevelValue()

The ProtectionLevel of the CryptoKeyVersion public key.

.google.cloud.kms.v1.ProtectionLevel protection_level = 5;

Returns
TypeDescription
int

The enum numeric value on the wire for protectionLevel.

hasPemCrc32C()

public abstract boolean hasPemCrc32C()

Integrity verification field. A CRC32C checksum of the returned PublicKey.pem. An integrity check of PublicKey.pem can be performed by computing the CRC32C checksum of 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.

.google.protobuf.Int64Value pem_crc32c = 3;

Returns
TypeDescription
boolean

Whether the pemCrc32c field is set.