KeyVaultKeyResolver Class
- java.
lang. Object - IKeyResolver
- com.
microsoft. azure. keyvault. extensions. KeyVaultKeyResolver
- com.
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:
KeyVaultKeyResolver
public KeyVaultKeyResolver(KeyVaultClient client, Provider provider)
Constructor.
Parameters:
Method Details
resolveKeyAsync
public ListenableFuture
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:
Returns:
Applies to
Azure SDK for Java