public final class ServiceAccountKey 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 Identity and Access Management (IAM) 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 |
|---|
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.
|
String |
getKeyAlgorithm()
Specifies the algorithm (and possibly key size) for the key.
|
String |
getKeyOrigin()
The key origin.
|
String |
getName()
The resource name of the service account key in the following format
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
|
String |
getPrivateKeyData()
The private key data.
|
String |
getPrivateKeyType()
The output format for the private key.
|
String |
getPublicKeyData()
The public key data.
|
String |
getValidAfterTime()
The key can be used after this timestamp.
|
String |
getValidBeforeTime()
The key can be used before this timestamp.
|
ServiceAccountKey |
set(String fieldName,
Object value) |
ServiceAccountKey |
setKeyAlgorithm(String keyAlgorithm)
Specifies the algorithm (and possibly key size) for the key.
|
ServiceAccountKey |
setKeyOrigin(String keyOrigin)
The key origin.
|
ServiceAccountKey |
setName(String name)
The resource name of the service account key in the following format
`projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}`.
|
ServiceAccountKey |
setPrivateKeyData(String privateKeyData)
The private key data.
|
ServiceAccountKey |
setPrivateKeyType(String privateKeyType)
The output format for the private key.
|
ServiceAccountKey |
setPublicKeyData(String publicKeyData)
The public key data.
|
ServiceAccountKey |
setValidAfterTime(String validAfterTime)
The key can be used after this timestamp.
|
ServiceAccountKey |
setValidBeforeTime(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, valuesfinalize, getClass, notify, notifyAll, wait, wait, waitcompute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAllpublic String getKeyAlgorithm()
null for nonepublic ServiceAccountKey setKeyAlgorithm(String keyAlgorithm)
keyAlgorithm - keyAlgorithm or null for nonepublic String getKeyOrigin()
null for nonepublic ServiceAccountKey setKeyOrigin(String keyOrigin)
keyOrigin - keyOrigin or null for nonepublic String getName()
null for nonepublic ServiceAccountKey setName(String name)
name - name or null for nonepublic String getPrivateKeyData()
null for nonedecodePrivateKeyData()public byte[] decodePrivateKeyData()
null for nonegetPrivateKeyData()public ServiceAccountKey setPrivateKeyData(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 String getPrivateKeyType()
null for nonepublic ServiceAccountKey setPrivateKeyType(String privateKeyType)
privateKeyType - privateKeyType or null for nonepublic String getPublicKeyData()
null for nonedecodePublicKeyData()public byte[] decodePublicKeyData()
null for nonegetPublicKeyData()public ServiceAccountKey setPublicKeyData(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 String getValidAfterTime()
null for nonepublic ServiceAccountKey setValidAfterTime(String validAfterTime)
validAfterTime - validAfterTime or null for nonepublic String getValidBeforeTime()
null for nonepublic ServiceAccountKey setValidBeforeTime(String validBeforeTime)
validBeforeTime - validBeforeTime or null for nonepublic ServiceAccountKey set(String fieldName, Object value)
set in class GenericJsonpublic ServiceAccountKey clone()
clone in class GenericJsonCopyright © 2011–2019 Google. All rights reserved.