public class MirroredKeyProvider extends Object implements KeyProvider<PublicKey>
| Modifier and Type | Method and Description |
|---|---|
static KeyProvider<PublicKey> |
createMirroredKeyProvider(List<KeyProvider<PublicKey>> mirrors)
Create a mirrored key provider representing a given set of mirrored key repository providers.
|
PublicKey |
getKey(ValidatedKeyId validatedKeyId)
Provides a Key for a validated key identifier.
|
List<KeyProvider<PublicKey>> |
getMirrors() |
String |
toString() |
public static KeyProvider<PublicKey> createMirroredKeyProvider(List<KeyProvider<PublicKey>> mirrors)
mirrors - list of mirrored key repository providerspublic PublicKey getKey(ValidatedKeyId validatedKeyId) throws CannotRetrieveKeyException
KeyProvidergetKey in interface KeyProvider<PublicKey>validatedKeyId - the validated keyId of interest which is safe from directory traversalCannotRetrieveKeyException - if the key couldn't be retrieved or found.public List<KeyProvider<PublicKey>> getMirrors()
Copyright © 2017 Atlassian. All rights reserved.