public class HttpPublicKeyProvider extends Object implements KeyProvider<PublicKey>
| Constructor and Description |
|---|
HttpPublicKeyProvider(URI baseUrl,
org.apache.http.client.HttpClient httpClient,
PemReader pemReader)
Create a new
HttpPublicKeyProvider instance. |
| Modifier and Type | Method and Description |
|---|---|
PublicKey |
getKey(ValidatedKeyId validatedKeyId)
Provides a Key for a validated key identifier.
|
public HttpPublicKeyProvider(URI baseUrl, org.apache.http.client.HttpClient httpClient, PemReader pemReader)
HttpPublicKeyProvider instance.baseUrl - the base url of the public key serverhttpClient - the http client to use for communicating with the public key serverpemReader - the pem key reader to use for reading public keys in pem formatpublic 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 © 2016 Atlassian. All rights reserved.