public final class PublicKey
extends com.google.api.client.json.GenericJson
This is the Java data model class that specifies how to parse/serialize into the JSON that is transmitted over HTTP when working with the Cloud Key Management Service (KMS) API. For a detailed explanation see: https://developers.google.com/api-client-library/java/google-http-java-client/json
com.google.api.client.util.GenericData.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
PublicKey() |
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
clone() |
String |
getAlgorithm()
The Algorithm associated with this key.
|
String |
getName()
The name of the CryptoKeyVersion public key.
|
String |
getPem()
The public key, encoded in PEM format.
|
Long |
getPemCrc32c()
Integrity verification field.
|
String |
getProtectionLevel()
The ProtectionLevel of the CryptoKeyVersion public key.
|
ChecksummedData |
getPublicKey()
This field contains the public key (with integrity verification), formatted according to the
public_key_format field.
|
String |
getPublicKeyFormat()
The PublicKey format specified by the customer through the public_key_format field.
|
PublicKey |
set(String fieldName,
Object value) |
PublicKey |
setAlgorithm(String algorithm)
The Algorithm associated with this key.
|
PublicKey |
setName(String name)
The name of the CryptoKeyVersion public key.
|
PublicKey |
setPem(String pem)
The public key, encoded in PEM format.
|
PublicKey |
setPemCrc32c(Long pemCrc32c)
Integrity verification field.
|
PublicKey |
setProtectionLevel(String protectionLevel)
The ProtectionLevel of the CryptoKeyVersion public key.
|
PublicKey |
setPublicKey(ChecksummedData publicKey)
This field contains the public key (with integrity verification), formatted according to the
public_key_format field.
|
PublicKey |
setPublicKeyFormat(String publicKeyFormat)
The PublicKey format specified by the customer through the public_key_format field.
|
getFactory, setFactory, toPrettyString, toStringentrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, isEmpty, keySet, size, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getAlgorithm()
null for nonepublic PublicKey setAlgorithm(String algorithm)
algorithm - algorithm or null for nonepublic String getName()
null for nonepublic PublicKey setName(String name)
name - name or null for nonepublic String getPem()
null for nonepublic PublicKey setPem(String pem)
pem - pem or null for nonepublic Long getPemCrc32c()
null for nonepublic PublicKey setPemCrc32c(Long pemCrc32c)
pemCrc32c - pemCrc32c or null for nonepublic String getProtectionLevel()
null for nonepublic PublicKey setProtectionLevel(String protectionLevel)
protectionLevel - protectionLevel or null for nonepublic ChecksummedData getPublicKey()
null for nonepublic PublicKey setPublicKey(ChecksummedData publicKey)
publicKey - publicKey or null for nonepublic String getPublicKeyFormat()
null for nonepublic PublicKey setPublicKeyFormat(String publicKeyFormat)
publicKeyFormat - publicKeyFormat or null for nonepublic PublicKey set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic PublicKey clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.