|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.apache.hadoop.security.ssl.ReloadingX509TrustManager
@InterfaceAudience.Private @InterfaceStability.Evolving public final class ReloadingX509TrustManager
A TrustManager
implementation that reloads its configuration when
the truststore file on disk changes.
Constructor Summary | |
---|---|
ReloadingX509TrustManager(String type,
String location,
String password,
long reloadInterval)
Creates a reloadable trustmanager. |
Method Summary | |
---|---|
void |
checkClientTrusted(X509Certificate[] chain,
String authType)
|
void |
checkServerTrusted(X509Certificate[] chain,
String authType)
|
void |
destroy()
Stops the reloader thread. |
X509Certificate[] |
getAcceptedIssuers()
|
long |
getReloadInterval()
Returns the reload check interval. |
void |
init()
Starts the reloader thread. |
void |
run()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ReloadingX509TrustManager(String type, String location, String password, long reloadInterval) throws IOException, GeneralSecurityException
type
- type of truststore file, typically 'jks'.location
- local path to the truststore file.password
- password of the truststore file.reloadInterval
- interval to check if the truststore file has
changed, in milliseconds.
IOException
- thrown if the truststore could not be initialized due
to an IO error.
GeneralSecurityException
- thrown if the truststore could not be
initialized due to a security error.Method Detail |
---|
public void init()
public void destroy()
public long getReloadInterval()
public void checkClientTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkClientTrusted
in interface X509TrustManager
CertificateException
public void checkServerTrusted(X509Certificate[] chain, String authType) throws CertificateException
checkServerTrusted
in interface X509TrustManager
CertificateException
public X509Certificate[] getAcceptedIssuers()
getAcceptedIssuers
in interface X509TrustManager
public void run()
run
in interface Runnable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |