public class ClasspathPrivateKeyProvider extends Object implements KeyProvider<PrivateKey>
| Constructor and Description |
|---|
ClasspathPrivateKeyProvider(String classpathBase,
KeyReader keyReader)
Create instance of ClasspathPrivateKeyProvider that reads private keys under the given classpath base.
|
| Modifier and Type | Method and Description |
|---|---|
PrivateKey |
getKey(ValidatedKeyId validatedKeyId)
Provides a Key for a validated key identifier.
|
String |
toString() |
public PrivateKey getKey(ValidatedKeyId validatedKeyId) throws CannotRetrieveKeyException
KeyProvidergetKey in interface KeyProvider<PrivateKey>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.