Table of Contents

Interface IKeysClient

Namespace
Auth0.ManagementApi.Clients
Assembly
Auth0.ManagementApi.dll
public interface IKeysClient

Methods

CreateEncryptionKeyAsync(EncryptionKeyCreateRequest, CancellationToken)

Create the new, pre-activated encryption key, without the key material.

Task<EncryptionKey> CreateEncryptionKeyAsync(EncryptionKeyCreateRequest request, CancellationToken cancellationToken = default)

Parameters

request EncryptionKeyCreateRequest

EncryptionKeyCreateRequest

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<EncryptionKey>

Newly created pre-activated encryption key EncryptionKey.

CreatePublicWrappingKeyAsync(WrappingKeyCreateRequest, CancellationToken)

Create the public wrapping key to wrap your own encryption key material.

Task<WrappingKey> CreatePublicWrappingKeyAsync(WrappingKeyCreateRequest request, CancellationToken cancellationToken = default)

Parameters

request WrappingKeyCreateRequest

WrappingKeyCreateRequest

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<WrappingKey>

DeleteEncryptionKeyAsync(string, CancellationToken)

Delete the custom provided encryption key with the given ID and move back to using native encryption key.

Task DeleteEncryptionKeyAsync(string kid, CancellationToken cancellationToken = default)

Parameters

kid string

Encryption key ID

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

GetAllAsync(CancellationToken)

Get all Application Signing Keys

Task<IList<Key>> GetAllAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<IList<Key>>

All available signing keys Key.

GetAllEncryptionKeysAsync(PaginationInfo, CancellationToken)

Retrieve details of all the encryption keys associated with your tenant.

Task<IPagedList<EncryptionKey>> GetAllEncryptionKeysAsync(PaginationInfo pagination, CancellationToken cancellationToken = default)

Parameters

pagination PaginationInfo

PaginationInfo

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<IPagedList<EncryptionKey>>

Retrieve details of all the encryption keys associated with your tenant. EncryptionKey.

GetAsync(string, CancellationToken)

Get an Application Signing Key by its key ID.

Task<Key> GetAsync(string kid, CancellationToken cancellationToken = default)

Parameters

kid string

The ID of the key to retrieve.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<Key>

The Key that was requested.

GetEncryptionKeyAsync(EncryptionKeyGetRequest, CancellationToken)

Retrieve details of the encryption key with the given ID.

Task<EncryptionKey> GetEncryptionKeyAsync(EncryptionKeyGetRequest request, CancellationToken cancellationToken = default)

Parameters

request EncryptionKeyGetRequest

EncryptionKeyGetRequest

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<EncryptionKey>

Retrieve details of the encryption key associated with the id. EncryptionKey.

ImportEncryptionKeyAsync(EncryptionKeyImportRequest, CancellationToken)

Import wrapped key material and activate encryption key.

Task<EncryptionKey> ImportEncryptionKeyAsync(EncryptionKeyImportRequest request, CancellationToken cancellationToken = default)

Parameters

request EncryptionKeyImportRequest

EncryptionKeyImportRequest

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<EncryptionKey>

RekeyAsync(CancellationToken)

Perform rekeying operation on the key hierarchy.

Task RekeyAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task

RevokeSigningKeyAsync(string, CancellationToken)

Revoke an Application Signing Key by its key ID.

Task<RevokeSigningKeyResponse> RevokeSigningKeyAsync(string kid, CancellationToken cancellationToken = default)

Parameters

kid string

The ID of the key to revoke.

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<RevokeSigningKeyResponse>

The revoked key's cert and kid.

RotateSigningKeyAsync(CancellationToken)

Rotate the Application Signing Key.

Task<RotateSigningKeyResponse> RotateSigningKeyAsync(CancellationToken cancellationToken = default)

Parameters

cancellationToken CancellationToken

The cancellation token to cancel operation.

Returns

Task<RotateSigningKeyResponse>

The next rotated key's cert and kid.