AggregateKeyResolver Class
- java.
lang. Object - IKeyResolver
- com.
microsoft. azure. keyvault. extensions. AggregateKeyResolver
- com.
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:
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:
AggregateKeyResolver.resolveKeyAsync(String kid)Parameters:
Returns:
Applies to
Azure SDK for Java