@InterfaceAudience.Private @InterfaceStability.Evolving public interface KeyStoresFactory extends Configurable
KeyManager
and TrustManager
implementations.Modifier and Type | Method and Description |
---|---|
void |
destroy()
Releases any resources being used.
|
KeyManager[] |
getKeyManagers()
Returns the keymanagers for owned certificates.
|
TrustManager[] |
getTrustManagers()
Returns the trustmanagers for trusted certificates.
|
void |
init(SSLFactory.Mode mode)
Initializes the keystores of the factory.
|
getConf, setConf
void init(SSLFactory.Mode mode) throws IOException, GeneralSecurityException
mode
- if the keystores are to be used in client or server mode.IOException
- thrown if the keystores could not be initialized due
to an IO error.GeneralSecurityException
- thrown if the keystores could not be
initialized due to an security error.void destroy()
KeyManager[] getKeyManagers()
TrustManager[] getTrustManagers()
Copyright © 2013 Apache Software Foundation. All rights reserved.