public final class MacSignResponse 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 |
|---|
MacSignResponse() |
| Modifier and Type | Method and Description |
|---|---|
MacSignResponse |
clone() |
byte[] |
decodeMac()
The created signature.
|
MacSignResponse |
encodeMac(byte[] mac)
The created signature.
|
String |
getMac()
The created signature.
|
Long |
getMacCrc32c()
Integrity verification field.
|
String |
getName()
The resource name of the CryptoKeyVersion used for signing.
|
String |
getProtectionLevel()
The ProtectionLevel of the CryptoKeyVersion used for signing.
|
Boolean |
getVerifiedDataCrc32c()
Integrity verification field.
|
MacSignResponse |
set(String fieldName,
Object value) |
MacSignResponse |
setMac(String mac)
The created signature.
|
MacSignResponse |
setMacCrc32c(Long macCrc32c)
Integrity verification field.
|
MacSignResponse |
setName(String name)
The resource name of the CryptoKeyVersion used for signing.
|
MacSignResponse |
setProtectionLevel(String protectionLevel)
The ProtectionLevel of the CryptoKeyVersion used for signing.
|
MacSignResponse |
setVerifiedDataCrc32c(Boolean verifiedDataCrc32c)
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 getMac()
null for nonedecodeMac()public byte[] decodeMac()
null for nonegetMac()public MacSignResponse setMac(String mac)
mac - mac or null for none#encodeMac()public MacSignResponse encodeMac(byte[] mac)
The value is encoded Base64 or {@code null} for none.
public Long getMacCrc32c()
null for nonepublic MacSignResponse setMacCrc32c(Long macCrc32c)
macCrc32c - macCrc32c or null for nonepublic String getName()
null for nonepublic MacSignResponse setName(String name)
name - name or null for nonepublic String getProtectionLevel()
null for nonepublic MacSignResponse setProtectionLevel(String protectionLevel)
protectionLevel - protectionLevel or null for nonepublic Boolean getVerifiedDataCrc32c()
null for nonepublic MacSignResponse setVerifiedDataCrc32c(Boolean verifiedDataCrc32c)
verifiedDataCrc32c - verifiedDataCrc32c or null for nonepublic MacSignResponse set(String fieldName, Object value)
set in class GenericJsonpublic MacSignResponse clone()
clone in class GenericJsonCopyright © 2011–2022 Google. All rights reserved.