public class PublicKeyProviderFactory extends Object
Factory for creating KeyProvider<PublicKey> instances.
The factory supports multiple key repositories for fail overs. The key repositories can be specified as mirrored or chained in the public key base url.
The repository types can be combined, e.g. for a public key base url "a , b | c , d",
the public key is looked-up first in a, if it fails then b or c, and then finally c.
ChainedKeyProvider,
MirroredKeyProvider| Constructor and Description |
|---|
PublicKeyProviderFactory(org.apache.http.client.HttpClient httpClient,
PemReader pemReader) |
| Modifier and Type | Method and Description |
|---|---|
static PublicKeyProviderFactory |
createDefault() |
KeyProvider<PublicKey> |
createPublicKeyProvider(String publicKeyBaseUrl)
Creates an instance of
KeyProvider for the given base URL. |
public PublicKeyProviderFactory(org.apache.http.client.HttpClient httpClient,
PemReader pemReader)
public static PublicKeyProviderFactory createDefault()
public KeyProvider<PublicKey> createPublicKeyProvider(String publicKeyBaseUrl)
KeyProvider for the given base URL.publicKeyBaseUrl - the base URL of the public key server. See the class Javadoc for syntax details.IllegalArgumentException - if the publicKeyBaseUrl is syntactically incorrectCopyright © 2017 Atlassian. All rights reserved.