public class CertificateChainFetcher extends Object
Constructor and Description |
---|
CertificateChainFetcher() |
Modifier and Type | Method and Description |
---|---|
void |
flushCache()
Flushes the cache.
|
String |
getAlgorithm() |
String |
getKeystoreType() |
String |
getProtocol() |
int |
getTimeout() |
List<X509Certificate> |
getTrustsForURI(URI uri)
Gets the certificate chain for a service identified by URI.
|
void |
setAlgorithm(String algorithm) |
void |
setKeystoreType(String keystoreType) |
void |
setProtocol(String protocol) |
void |
setSecure(boolean secure) |
void |
setTimeout(int timeout) |
public String getProtocol()
public void setProtocol(String protocol)
public String getKeystoreType()
public void setKeystoreType(String keystoreType)
public String getAlgorithm()
public void setAlgorithm(String algorithm)
public int getTimeout()
public void setTimeout(int timeout)
public void setSecure(boolean secure)
public List<X509Certificate> getTrustsForURI(URI uri) throws IOException, GeneralSecurityException
uri
- The URI of the (secure) service to identify.IOException
- If the service is unreachable or other connection problems
occur.GeneralSecurityException
- If any of a number of security-related problems occur, such
as an inability to match detailed security protocols.public void flushCache()
Copyright © 2015–2018 The Apache Software Foundation. All rights reserved.