class UsersSettingsCseKeypairs extends Resource (View source)

The "keypairs" collection of methods.

Typical usage is:

 $gmailService = new Google\Service\Gmail(...);
 $keypairs = $gmailService->users_settings_cse_keypairs;

Methods

create(string $userId, CseKeyPair $postBody, array $optParams = [])

Creates and uploads a client-side encryption S/MIME public key certificate chain and private key metadata for the authenticated user. (keypairs.create)

disable(string $userId, string $keyPairId, DisableCseKeyPairRequest $postBody, array $optParams = [])

Turns off a client-side encryption key pair. The authenticated user can no longer use the key pair to decrypt incoming CSE message texts or sign outgoing CSE mail. To regain access, use the EnableCseKeyPair to turn on the key pair. After 30 days, you can permanently delete the key pair by using the ObliterateCseKeyPair method. (keypairs.disable)

enable(string $userId, string $keyPairId, EnableCseKeyPairRequest $postBody, array $optParams = [])

Turns on a client-side encryption key pair that was turned off. The key pair becomes active again for any associated client-side encryption identities.

get(string $userId, string $keyPairId, array $optParams = [])

Retrieves an existing client-side encryption key pair. (keypairs.get)

listUsersSettingsCseKeypairs(string $userId, array $optParams = [])

Lists client-side encryption key pairs for an authenticated user.

obliterate(string $userId, string $keyPairId, ObliterateCseKeyPairRequest $postBody, array $optParams = [])

Deletes a client-side encryption key pair permanently and immediately. You can only permanently delete key pairs that have been turned off for more than 30 days. To turn off a key pair, use the DisableCseKeyPair method. Gmail can't restore or decrypt any messages that were encrypted by an obliterated key. Authenticated users and Google Workspace administrators lose access to reading the encrypted messages. (keypairs.obliterate)

Details

CseKeyPair create(string $userId, CseKeyPair $postBody, array $optParams = [])

Creates and uploads a client-side encryption S/MIME public key certificate chain and private key metadata for the authenticated user. (keypairs.create)

Parameters

string $userId

The requester's primary email address. To indicate the authenticated user, you can use the special value me.

CseKeyPair $postBody
array $optParams

Optional parameters.

Return Value

CseKeyPair

Exceptions

Exception

CseKeyPair disable(string $userId, string $keyPairId, DisableCseKeyPairRequest $postBody, array $optParams = [])

Turns off a client-side encryption key pair. The authenticated user can no longer use the key pair to decrypt incoming CSE message texts or sign outgoing CSE mail. To regain access, use the EnableCseKeyPair to turn on the key pair. After 30 days, you can permanently delete the key pair by using the ObliterateCseKeyPair method. (keypairs.disable)

Parameters

string $userId

The requester's primary email address. To indicate the authenticated user, you can use the special value me.

string $keyPairId

The identifier of the key pair to turn off.

DisableCseKeyPairRequest $postBody
array $optParams

Optional parameters.

Return Value

CseKeyPair

Exceptions

Exception

CseKeyPair enable(string $userId, string $keyPairId, EnableCseKeyPairRequest $postBody, array $optParams = [])

Turns on a client-side encryption key pair that was turned off. The key pair becomes active again for any associated client-side encryption identities.

(keypairs.enable)

Parameters

string $userId

The requester's primary email address. To indicate the authenticated user, you can use the special value me.

string $keyPairId

The identifier of the key pair to turn on.

EnableCseKeyPairRequest $postBody
array $optParams

Optional parameters.

Return Value

CseKeyPair

Exceptions

Exception

CseKeyPair get(string $userId, string $keyPairId, array $optParams = [])

Retrieves an existing client-side encryption key pair. (keypairs.get)

Parameters

string $userId

The requester's primary email address. To indicate the authenticated user, you can use the special value me.

string $keyPairId

The identifier of the key pair to retrieve.

array $optParams

Optional parameters.

Return Value

CseKeyPair

Exceptions

Exception

ListCseKeyPairsResponse listUsersSettingsCseKeypairs(string $userId, array $optParams = [])

Lists client-side encryption key pairs for an authenticated user.

(keypairs.listUsersSettingsCseKeypairs)

Parameters

string $userId

The requester's primary email address. To indicate the authenticated user, you can use the special value me.

array $optParams

Optional parameters.

Return Value

ListCseKeyPairsResponse

Exceptions

Exception

obliterate(string $userId, string $keyPairId, ObliterateCseKeyPairRequest $postBody, array $optParams = [])

Deletes a client-side encryption key pair permanently and immediately. You can only permanently delete key pairs that have been turned off for more than 30 days. To turn off a key pair, use the DisableCseKeyPair method. Gmail can't restore or decrypt any messages that were encrypted by an obliterated key. Authenticated users and Google Workspace administrators lose access to reading the encrypted messages. (keypairs.obliterate)

Parameters

string $userId

The requester's primary email address. To indicate the authenticated user, you can use the special value me.

string $keyPairId

The identifier of the key pair to obliterate.

ObliterateCseKeyPairRequest $postBody
array $optParams

Optional parameters.

Exceptions

Exception