public final class EncryptResponse
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 Google 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.Flags| Constructor and Description |
|---|
EncryptResponse() |
| Modifier and Type | Method and Description |
|---|---|
EncryptResponse |
clone() |
byte[] |
decodeCiphertext()
The encrypted data.
|
EncryptResponse |
encodeCiphertext(byte[] ciphertext)
The encrypted data.
|
java.lang.String |
getCiphertext()
The encrypted data.
|
java.lang.String |
getName()
The resource name of the CryptoKeyVersion used in encryption.
|
EncryptResponse |
set(java.lang.String fieldName,
java.lang.Object value) |
EncryptResponse |
setCiphertext(java.lang.String ciphertext)
The encrypted data.
|
EncryptResponse |
setName(java.lang.String name)
The resource name of the CryptoKeyVersion used in encryption.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getCiphertext()
null for nonedecodeCiphertext()public byte[] decodeCiphertext()
null for nonegetCiphertext()public EncryptResponse setCiphertext(java.lang.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 java.lang.String getName()
null for nonepublic EncryptResponse setName(java.lang.String name)
name - name or null for nonepublic EncryptResponse set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic EncryptResponse clone()
clone in class com.google.api.client.json.GenericJson