public final class PublicKey extends 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
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.
|
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.
|
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 PublicKey set(String fieldName, Object value)
set in class GenericJsonpublic PublicKey clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.