public final class CryptoKey
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 |
|---|
CryptoKey() |
| Modifier and Type | Method and Description |
|---|---|
CryptoKey |
clone() |
java.lang.String |
getCreateTime()
Output only.
|
java.lang.String |
getName()
Output only.
|
java.lang.String |
getNextRotationTime()
At next_rotation_time, the Key Management Service will automatically:
1.
|
CryptoKeyVersion |
getPrimary()
Output only.
|
java.lang.String |
getPurpose()
The immutable purpose of this CryptoKey.
|
java.lang.String |
getRotationPeriod()
next_rotation_time will be advanced by this period when the service automatically rotates a
key.
|
CryptoKey |
set(java.lang.String fieldName,
java.lang.Object value) |
CryptoKey |
setCreateTime(java.lang.String createTime)
Output only.
|
CryptoKey |
setName(java.lang.String name)
Output only.
|
CryptoKey |
setNextRotationTime(java.lang.String nextRotationTime)
At next_rotation_time, the Key Management Service will automatically:
1.
|
CryptoKey |
setPrimary(CryptoKeyVersion primary)
Output only.
|
CryptoKey |
setPurpose(java.lang.String purpose)
The immutable purpose of this CryptoKey.
|
CryptoKey |
setRotationPeriod(java.lang.String rotationPeriod)
next_rotation_time will be advanced by this period when the service automatically rotates a
key.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeyspublic java.lang.String getCreateTime()
null for nonepublic CryptoKey setCreateTime(java.lang.String createTime)
createTime - createTime or null for nonepublic java.lang.String getName()
null for nonepublic CryptoKey setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getNextRotationTime()
null for nonepublic CryptoKey setNextRotationTime(java.lang.String nextRotationTime)
nextRotationTime - nextRotationTime or null for nonepublic CryptoKeyVersion getPrimary()
null for nonepublic CryptoKey setPrimary(CryptoKeyVersion primary)
primary - primary or null for nonepublic java.lang.String getPurpose()
null for nonepublic CryptoKey setPurpose(java.lang.String purpose)
purpose - purpose or null for nonepublic java.lang.String getRotationPeriod()
null for nonepublic CryptoKey setRotationPeriod(java.lang.String rotationPeriod)
rotationPeriod - rotationPeriod or null for nonepublic CryptoKey set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic CryptoKey clone()
clone in class com.google.api.client.json.GenericJson