public final class ServiceAccountKey
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 Identity and Access Management (IAM) 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 |
|---|
ServiceAccountKey() |
| Modifier and Type | Method and Description |
|---|---|
ServiceAccountKey |
clone() |
byte[] |
decodePrivateKeyData()
The private key data.
|
byte[] |
decodePublicKeyData()
The public key data.
|
ServiceAccountKey |
encodePrivateKeyData(byte[] privateKeyData)
The private key data.
|
ServiceAccountKey |
encodePublicKeyData(byte[] publicKeyData)
The public key data.
|
java.lang.String |
getKeyAlgorithm()
Specifies the algorithm (and possibly key size) for the key.
|
java.lang.String |
getKeyOrigin()
The key origin.
|
java.lang.String |
getKeyType()
The key type.
|
java.lang.String |
getName()
The resource name of the service account key in the following format
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
|
java.lang.String |
getPrivateKeyData()
The private key data.
|
java.lang.String |
getPrivateKeyType()
The output format for the private key.
|
java.lang.String |
getPublicKeyData()
The public key data.
|
java.lang.String |
getValidAfterTime()
The key can be used after this timestamp.
|
java.lang.String |
getValidBeforeTime()
The key can be used before this timestamp.
|
ServiceAccountKey |
set(java.lang.String fieldName,
java.lang.Object value) |
ServiceAccountKey |
setKeyAlgorithm(java.lang.String keyAlgorithm)
Specifies the algorithm (and possibly key size) for the key.
|
ServiceAccountKey |
setKeyOrigin(java.lang.String keyOrigin)
The key origin.
|
ServiceAccountKey |
setKeyType(java.lang.String keyType)
The key type.
|
ServiceAccountKey |
setName(java.lang.String name)
The resource name of the service account key in the following format
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
|
ServiceAccountKey |
setPrivateKeyData(java.lang.String privateKeyData)
The private key data.
|
ServiceAccountKey |
setPrivateKeyType(java.lang.String privateKeyType)
The output format for the private key.
|
ServiceAccountKey |
setPublicKeyData(java.lang.String publicKeyData)
The public key data.
|
ServiceAccountKey |
setValidAfterTime(java.lang.String validAfterTime)
The key can be used after this timestamp.
|
ServiceAccountKey |
setValidBeforeTime(java.lang.String validBeforeTime)
The key can be used before this timestamp.
|
getFactory, setFactory, toPrettyString, toStringentrySet, get, getClassInfo, getUnknownKeys, put, putAll, remove, setUnknownKeysclear, containsKey, containsValue, equals, hashCode, isEmpty, keySet, size, valuespublic java.lang.String getKeyAlgorithm()
null for nonepublic ServiceAccountKey setKeyAlgorithm(java.lang.String keyAlgorithm)
keyAlgorithm - keyAlgorithm or null for nonepublic java.lang.String getKeyOrigin()
null for nonepublic ServiceAccountKey setKeyOrigin(java.lang.String keyOrigin)
keyOrigin - keyOrigin or null for nonepublic java.lang.String getKeyType()
null for nonepublic ServiceAccountKey setKeyType(java.lang.String keyType)
keyType - keyType or null for nonepublic java.lang.String getName()
null for nonepublic ServiceAccountKey setName(java.lang.String name)
name - name or null for nonepublic java.lang.String getPrivateKeyData()
null for nonedecodePrivateKeyData()public byte[] decodePrivateKeyData()
null for nonegetPrivateKeyData()public ServiceAccountKey setPrivateKeyData(java.lang.String privateKeyData)
privateKeyData - privateKeyData or null for none#encodePrivateKeyData()public ServiceAccountKey encodePrivateKeyData(byte[] privateKeyData)
The value is encoded Base64 or {@code null} for none.
public java.lang.String getPrivateKeyType()
null for nonepublic ServiceAccountKey setPrivateKeyType(java.lang.String privateKeyType)
privateKeyType - privateKeyType or null for nonepublic java.lang.String getPublicKeyData()
null for nonedecodePublicKeyData()public byte[] decodePublicKeyData()
null for nonegetPublicKeyData()public ServiceAccountKey setPublicKeyData(java.lang.String publicKeyData)
publicKeyData - publicKeyData or null for none#encodePublicKeyData()public ServiceAccountKey encodePublicKeyData(byte[] publicKeyData)
The value is encoded Base64 or {@code null} for none.
public java.lang.String getValidAfterTime()
null for nonepublic ServiceAccountKey setValidAfterTime(java.lang.String validAfterTime)
validAfterTime - validAfterTime or null for nonepublic java.lang.String getValidBeforeTime()
null for nonepublic ServiceAccountKey setValidBeforeTime(java.lang.String validBeforeTime)
validBeforeTime - validBeforeTime or null for nonepublic ServiceAccountKey set(java.lang.String fieldName, java.lang.Object value)
set in class com.google.api.client.json.GenericJsonpublic ServiceAccountKey clone()
clone in class com.google.api.client.json.GenericJson