KeyVaultKeyResolver Class

  • java.lang.Object
    • IKeyResolver
      • com.microsoft.azure.keyvault.extensions.KeyVaultKeyResolver

public class KeyVaultKeyResolver implements IKeyResolver

The key resolver class that handles resolving key id to type IKey to be used for cryptography operations.

Constructor Summary

Constructor Description
KeyVaultKeyResolver(KeyVaultClient client)

Constructor.

KeyVaultKeyResolver(KeyVaultClient client, Provider provider)

Constructor.

Method Summary

Modifier and Type Method and Description
ListenableFuture<IKey> resolveKeyAsync(String kid)

Retrieves an IKey implementation for the specified key identifier. Implementations should check the format of the kid to ensure that it is recognized. Null, rather than an exception, should be returned for unrecognized key identifiers to enable chaining of key resolvers.

Constructor Details

KeyVaultKeyResolver

public KeyVaultKeyResolver(KeyVaultClient client)

Constructor.

Parameters:

client - the key vault client

KeyVaultKeyResolver

public KeyVaultKeyResolver(KeyVaultClient client, Provider provider)

Constructor.

Parameters:

client - the key vault client
provider - the java security provider

Method Details

resolveKeyAsync

public ListenableFuture resolveKeyAsync(String kid)

Retrieves an IKey implementation for the specified key identifier. Implementations should check the format of the kid to ensure that it is recognized. Null, rather than an exception, should be returned for unrecognized key identifiers to enable chaining of key resolvers.

Overrides:

KeyVaultKeyResolver.resolveKeyAsync(String kid)

Parameters:

kid - The key identifier to resolve.

Returns:

A ListenableFuture containing the resolved IKey

Applies to