public final class Digest
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 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.FlagsAbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>| Constructor and Description |
|---|
Digest() |
| Modifier and Type | Method and Description |
|---|---|
Digest |
clone() |
byte[] |
decodeExternalMu()
A message digest produced with SHAKE-256, to be used with ML-DSA external-μ algorithms only.
|
byte[] |
decodeSha256()
A message digest produced with the SHA-256 algorithm.
|
byte[] |
decodeSha384()
A message digest produced with the SHA-384 algorithm.
|
byte[] |
decodeSha512()
A message digest produced with the SHA-512 algorithm.
|
Digest |
encodeExternalMu(byte[] externalMu)
A message digest produced with SHAKE-256, to be used with ML-DSA external-μ algorithms only.
|
Digest |
encodeSha256(byte[] sha256)
A message digest produced with the SHA-256 algorithm.
|
Digest |
encodeSha384(byte[] sha384)
A message digest produced with the SHA-384 algorithm.
|
Digest |
encodeSha512(byte[] sha512)
A message digest produced with the SHA-512 algorithm.
|
String |
getExternalMu()
A message digest produced with SHAKE-256, to be used with ML-DSA external-μ algorithms only.
|
String |
getSha256()
A message digest produced with the SHA-256 algorithm.
|
String |
getSha384()
A message digest produced with the SHA-384 algorithm.
|
String |
getSha512()
A message digest produced with the SHA-512 algorithm.
|
Digest |
set(String fieldName,
Object value) |
Digest |
setExternalMu(String externalMu)
A message digest produced with SHAKE-256, to be used with ML-DSA external-μ algorithms only.
|
Digest |
setSha256(String sha256)
A message digest produced with the SHA-256 algorithm.
|
Digest |
setSha384(String sha384)
A message digest produced with the SHA-384 algorithm.
|
Digest |
setSha512(String sha512)
A message digest produced with the SHA-512 algorithm.
|
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 getExternalMu()
null for nonedecodeExternalMu()public byte[] decodeExternalMu()
null for nonegetExternalMu()public Digest setExternalMu(String externalMu)
externalMu - externalMu or null for none#encodeExternalMu()public Digest encodeExternalMu(byte[] externalMu)
The value is encoded Base64 or {@code null} for none.
public String getSha256()
null for nonedecodeSha256()public byte[] decodeSha256()
null for nonegetSha256()public Digest setSha256(String sha256)
sha256 - sha256 or null for none#encodeSha256()public Digest encodeSha256(byte[] sha256)
The value is encoded Base64 or {@code null} for none.
public String getSha384()
null for nonedecodeSha384()public byte[] decodeSha384()
null for nonegetSha384()public Digest setSha384(String sha384)
sha384 - sha384 or null for none#encodeSha384()public Digest encodeSha384(byte[] sha384)
The value is encoded Base64 or {@code null} for none.
public String getSha512()
null for nonedecodeSha512()public byte[] decodeSha512()
null for nonegetSha512()public Digest setSha512(String sha512)
sha512 - sha512 or null for none#encodeSha512()public Digest encodeSha512(byte[] sha512)
The value is encoded Base64 or {@code null} for none.
public Digest set(String fieldName, Object value)
set in class com.google.api.client.json.GenericJsonpublic Digest clone()
clone in class com.google.api.client.json.GenericJsonCopyright © 2011–2026 Google. All rights reserved.