Interface ServiceAccountKeyOrBuilder (3.43.0)

public interface ServiceAccountKeyOrBuilder extends MessageOrBuilder

Implements

MessageOrBuilder

Methods

getDisabled()

public abstract boolean getDisabled()

The key status.

bool disabled = 11;

Returns
Type Description
boolean

The disabled.

getKeyAlgorithm()

public abstract ServiceAccountKeyAlgorithm getKeyAlgorithm()

Specifies the algorithm (and possibly key size) for the key.

.google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 8;

Returns
Type Description
ServiceAccountKeyAlgorithm

The keyAlgorithm.

getKeyAlgorithmValue()

public abstract int getKeyAlgorithmValue()

Specifies the algorithm (and possibly key size) for the key.

.google.iam.admin.v1.ServiceAccountKeyAlgorithm key_algorithm = 8;

Returns
Type Description
int

The enum numeric value on the wire for keyAlgorithm.

getKeyOrigin()

public abstract ServiceAccountKeyOrigin getKeyOrigin()

The key origin.

.google.iam.admin.v1.ServiceAccountKeyOrigin key_origin = 9;

Returns
Type Description
ServiceAccountKeyOrigin

The keyOrigin.

getKeyOriginValue()

public abstract int getKeyOriginValue()

The key origin.

.google.iam.admin.v1.ServiceAccountKeyOrigin key_origin = 9;

Returns
Type Description
int

The enum numeric value on the wire for keyOrigin.

getKeyType()

public abstract ListServiceAccountKeysRequest.KeyType getKeyType()

The key type.

.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_type = 10;

Returns
Type Description
ListServiceAccountKeysRequest.KeyType

The keyType.

getKeyTypeValue()

public abstract int getKeyTypeValue()

The key type.

.google.iam.admin.v1.ListServiceAccountKeysRequest.KeyType key_type = 10;

Returns
Type Description
int

The enum numeric value on the wire for keyType.

getName()

public abstract String getName()

The resource name of the service account key in the following format projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}.

string name = 1;

Returns
Type Description
String

The name.

getNameBytes()

public abstract ByteString getNameBytes()

The resource name of the service account key in the following format projects/{PROJECT_ID}/serviceAccounts/{ACCOUNT}/keys/{key}.

string name = 1;

Returns
Type Description
ByteString

The bytes for name.

getPrivateKeyData()

public abstract ByteString getPrivateKeyData()

The private key data. Only provided in CreateServiceAccountKey responses. Make sure to keep the private key data secure because it allows for the assertion of the service account identity. When base64 decoded, the private key data can be used to authenticate with Google API client libraries and with <a href="/sdk/gcloud/reference/auth/activate-service-account">gcloud auth activate-service-account</a>.

bytes private_key_data = 3;

Returns
Type Description
ByteString

The privateKeyData.

getPrivateKeyType()

public abstract ServiceAccountPrivateKeyType getPrivateKeyType()

The output format for the private key. Only provided in CreateServiceAccountKey responses, not in GetServiceAccountKey or ListServiceAccountKey responses.

Google never exposes system-managed private keys, and never retains user-managed private keys.

.google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2;

Returns
Type Description
ServiceAccountPrivateKeyType

The privateKeyType.

getPrivateKeyTypeValue()

public abstract int getPrivateKeyTypeValue()

The output format for the private key. Only provided in CreateServiceAccountKey responses, not in GetServiceAccountKey or ListServiceAccountKey responses.

Google never exposes system-managed private keys, and never retains user-managed private keys.

.google.iam.admin.v1.ServiceAccountPrivateKeyType private_key_type = 2;

Returns
Type Description
int

The enum numeric value on the wire for privateKeyType.

getPublicKeyData()

public abstract ByteString getPublicKeyData()

The public key data. Only provided in GetServiceAccountKey responses.

bytes public_key_data = 7;

Returns
Type Description
ByteString

The publicKeyData.

getValidAfterTime()

public abstract Timestamp getValidAfterTime()

The key can be used after this timestamp.

.google.protobuf.Timestamp valid_after_time = 4;

Returns
Type Description
Timestamp

The validAfterTime.

getValidAfterTimeOrBuilder()

public abstract TimestampOrBuilder getValidAfterTimeOrBuilder()

The key can be used after this timestamp.

.google.protobuf.Timestamp valid_after_time = 4;

Returns
Type Description
TimestampOrBuilder

getValidBeforeTime()

public abstract Timestamp getValidBeforeTime()

The key can be used before this timestamp. For system-managed key pairs, this timestamp is the end time for the private key signing operation. The public key could still be used for verification for a few hours after this time.

.google.protobuf.Timestamp valid_before_time = 5;

Returns
Type Description
Timestamp

The validBeforeTime.

getValidBeforeTimeOrBuilder()

public abstract TimestampOrBuilder getValidBeforeTimeOrBuilder()

The key can be used before this timestamp. For system-managed key pairs, this timestamp is the end time for the private key signing operation. The public key could still be used for verification for a few hours after this time.

.google.protobuf.Timestamp valid_before_time = 5;

Returns
Type Description
TimestampOrBuilder

hasValidAfterTime()

public abstract boolean hasValidAfterTime()

The key can be used after this timestamp.

.google.protobuf.Timestamp valid_after_time = 4;

Returns
Type Description
boolean

Whether the validAfterTime field is set.

hasValidBeforeTime()

public abstract boolean hasValidBeforeTime()

The key can be used before this timestamp. For system-managed key pairs, this timestamp is the end time for the private key signing operation. The public key could still be used for verification for a few hours after this time.

.google.protobuf.Timestamp valid_before_time = 5;

Returns
Type Description
boolean

Whether the validBeforeTime field is set.