public final class DecryptResponse 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 |
|---|
DecryptResponse() |
| Modifier and Type | Method and Description |
|---|---|
DecryptResponse |
clone() |
byte[] |
decodePlaintext()
The decrypted data originally supplied in EncryptRequest.plaintext.
|
DecryptResponse |
encodePlaintext(byte[] plaintext)
The decrypted data originally supplied in EncryptRequest.plaintext.
|
String |
getPlaintext()
The decrypted data originally supplied in EncryptRequest.plaintext.
|
Long |
getPlaintextCrc32c()
Integrity verification field.
|
String |
getProtectionLevel()
The ProtectionLevel of the CryptoKeyVersion used in decryption.
|
Boolean |
getUsedPrimary()
Whether the Decryption was performed using the primary key version.
|
DecryptResponse |
set(String fieldName,
Object value) |
DecryptResponse |
setPlaintext(String plaintext)
The decrypted data originally supplied in EncryptRequest.plaintext.
|
DecryptResponse |
setPlaintextCrc32c(Long plaintextCrc32c)
Integrity verification field.
|
DecryptResponse |
setProtectionLevel(String protectionLevel)
The ProtectionLevel of the CryptoKeyVersion used in decryption.
|
DecryptResponse |
setUsedPrimary(Boolean usedPrimary)
Whether the Decryption was performed using the primary key version.
|
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 getPlaintext()
null for nonedecodePlaintext()public byte[] decodePlaintext()
null for nonegetPlaintext()public DecryptResponse setPlaintext(String plaintext)
plaintext - plaintext or null for none#encodePlaintext()public DecryptResponse encodePlaintext(byte[] plaintext)
The value is encoded Base64 or {@code null} for none.
public Long getPlaintextCrc32c()
null for nonepublic DecryptResponse setPlaintextCrc32c(Long plaintextCrc32c)
plaintextCrc32c - plaintextCrc32c or null for nonepublic String getProtectionLevel()
null for nonepublic DecryptResponse setProtectionLevel(String protectionLevel)
protectionLevel - protectionLevel or null for nonepublic Boolean getUsedPrimary()
null for nonepublic DecryptResponse setUsedPrimary(Boolean usedPrimary)
usedPrimary - usedPrimary or null for nonepublic DecryptResponse set(String fieldName, Object value)
set in class GenericJsonpublic DecryptResponse clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.