public final class EncryptRequest 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 |
|---|
EncryptRequest() |
| Modifier and Type | Method and Description |
|---|---|
EncryptRequest |
clone() |
byte[] |
decodeAdditionalAuthenticatedData()
Optional.
|
byte[] |
decodePlaintext()
Required.
|
EncryptRequest |
encodeAdditionalAuthenticatedData(byte[] additionalAuthenticatedData)
Optional.
|
EncryptRequest |
encodePlaintext(byte[] plaintext)
Required.
|
String |
getAdditionalAuthenticatedData()
Optional.
|
Long |
getAdditionalAuthenticatedDataCrc32c()
Optional.
|
String |
getPlaintext()
Required.
|
Long |
getPlaintextCrc32c()
Optional.
|
EncryptRequest |
set(String fieldName,
Object value) |
EncryptRequest |
setAdditionalAuthenticatedData(String additionalAuthenticatedData)
Optional.
|
EncryptRequest |
setAdditionalAuthenticatedDataCrc32c(Long additionalAuthenticatedDataCrc32c)
Optional.
|
EncryptRequest |
setPlaintext(String plaintext)
Required.
|
EncryptRequest |
setPlaintextCrc32c(Long plaintextCrc32c)
Optional.
|
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 getAdditionalAuthenticatedData()
null for nonedecodeAdditionalAuthenticatedData()public byte[] decodeAdditionalAuthenticatedData()
null for nonegetAdditionalAuthenticatedData()public EncryptRequest setAdditionalAuthenticatedData(String additionalAuthenticatedData)
additionalAuthenticatedData - additionalAuthenticatedData or null for none#encodeAdditionalAuthenticatedData()public EncryptRequest encodeAdditionalAuthenticatedData(byte[] additionalAuthenticatedData)
The value is encoded Base64 or {@code null} for none.
public Long getAdditionalAuthenticatedDataCrc32c()
null for nonepublic EncryptRequest setAdditionalAuthenticatedDataCrc32c(Long additionalAuthenticatedDataCrc32c)
additionalAuthenticatedDataCrc32c - additionalAuthenticatedDataCrc32c or null for nonepublic String getPlaintext()
null for nonedecodePlaintext()public byte[] decodePlaintext()
null for nonegetPlaintext()public EncryptRequest setPlaintext(String plaintext)
plaintext - plaintext or null for none#encodePlaintext()public EncryptRequest encodePlaintext(byte[] plaintext)
The value is encoded Base64 or {@code null} for none.
public Long getPlaintextCrc32c()
null for nonepublic EncryptRequest setPlaintextCrc32c(Long plaintextCrc32c)
plaintextCrc32c - plaintextCrc32c or null for nonepublic EncryptRequest set(String fieldName, Object value)
set in class GenericJsonpublic EncryptRequest clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.