public class ClasspathPublicKeyProvider extends Object implements KeyProvider<PublicKey>
| Constructor and Description |
|---|
ClasspathPublicKeyProvider(String classpathBase,
KeyReader keyReader)
Create a provider that reads public keys under the given classpath base.
|
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
getKey(ValidatedKeyId validatedKeyId)
Provides a Key for a validated key identifier.
|
String |
toString() |
public 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.Copyright © 2017 Atlassian. All rights reserved.