AggregateKeyResolver Class

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

public class AggregateKeyResolver implements IKeyResolver

The collection of key resolvers that would iterate on a key id to resolve to IKey.

Constructor Summary

Constructor Description
AggregateKeyResolver()

Constructor.

Method Summary

Modifier and Type Method and Description
void add(IKeyResolver resolver)

Adds a key resolver to the collection of key resolvers.

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

AggregateKeyResolver

public AggregateKeyResolver()

Constructor.

Method Details

add

public void add(IKeyResolver resolver)

Adds a key resolver to the collection of key resolvers.

Parameters:

resolver - the key resolver

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:

AggregateKeyResolver.resolveKeyAsync(String kid)

Parameters:

kid - The key identifier to resolve.

Returns:

A ListenableFuture containing the resolved IKey

Applies to