public final class EncryptResponse 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 |
|---|
EncryptResponse() |
| Modifier and Type | Method and Description |
|---|---|
EncryptResponse |
clone() |
byte[] |
decodeCiphertext()
The encrypted data.
|
EncryptResponse |
encodeCiphertext(byte[] ciphertext)
The encrypted data.
|
String |
getCiphertext()
The encrypted data.
|
Long |
getCiphertextCrc32c()
Integrity verification field.
|
String |
getName()
The resource name of the CryptoKeyVersion used in encryption.
|
Boolean |
getVerifiedAdditionalAuthenticatedDataCrc32c()
Integrity verification field.
|
Boolean |
getVerifiedPlaintextCrc32c()
Integrity verification field.
|
EncryptResponse |
set(String fieldName,
Object value) |
EncryptResponse |
setCiphertext(String ciphertext)
The encrypted data.
|
EncryptResponse |
setCiphertextCrc32c(Long ciphertextCrc32c)
Integrity verification field.
|
EncryptResponse |
setName(String name)
The resource name of the CryptoKeyVersion used in encryption.
|
EncryptResponse |
setVerifiedAdditionalAuthenticatedDataCrc32c(Boolean verifiedAdditionalAuthenticatedDataCrc32c)
Integrity verification field.
|
EncryptResponse |
setVerifiedPlaintextCrc32c(Boolean verifiedPlaintextCrc32c)
Integrity verification 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 getCiphertext()
null for nonedecodeCiphertext()public byte[] decodeCiphertext()
null for nonegetCiphertext()public EncryptResponse setCiphertext(String ciphertext)
ciphertext - ciphertext or null for none#encodeCiphertext()public EncryptResponse encodeCiphertext(byte[] ciphertext)
The value is encoded Base64 or {@code null} for none.
public Long getCiphertextCrc32c()
null for nonepublic EncryptResponse setCiphertextCrc32c(Long ciphertextCrc32c)
ciphertextCrc32c - ciphertextCrc32c or null for nonepublic String getName()
null for nonepublic EncryptResponse setName(String name)
name - name or null for nonepublic Boolean getVerifiedAdditionalAuthenticatedDataCrc32c()
null for nonepublic EncryptResponse setVerifiedAdditionalAuthenticatedDataCrc32c(Boolean verifiedAdditionalAuthenticatedDataCrc32c)
verifiedAdditionalAuthenticatedDataCrc32c - verifiedAdditionalAuthenticatedDataCrc32c or null for nonepublic Boolean getVerifiedPlaintextCrc32c()
null for nonepublic EncryptResponse setVerifiedPlaintextCrc32c(Boolean verifiedPlaintextCrc32c)
verifiedPlaintextCrc32c - verifiedPlaintextCrc32c or null for nonepublic EncryptResponse set(String fieldName, Object value)
set in class GenericJsonpublic EncryptResponse clone()
clone in class GenericJsonCopyright © 2011–2020 Google. All rights reserved.