Package org.apache.ignite.ssl
Class AbstractSslContextFactory
- java.lang.Object
- 
- org.apache.ignite.ssl.AbstractSslContextFactory
 
- 
- All Implemented Interfaces:
- Serializable,- javax.cache.configuration.Factory<SSLContext>
 - Direct Known Subclasses:
- SslContextFactory
 
 public abstract class AbstractSslContextFactory extends Object implements javax.cache.configuration.Factory<SSLContext> Represents abstract implementation of SSL Context Factory that caches the result of the first successful attempt to create anSSLContextand always returns it as a result of further invocations of thecreate()} method.- See Also:
- Serialized Form
 
- 
- 
Field SummaryFields Modifier and Type Field Description protected String[]cipherSuitesEnabled cipher suites.static StringDFLT_SSL_PROTOCOLDefault SSL protocol.protected StringprotoSSL protocol.protected String[]protocolsEnabled protocols.protected AtomicReference<SSLContext>sslCtxCached instance of anSSLContext.
 - 
Constructor SummaryConstructors Constructor Description AbstractSslContextFactory()
 - 
Method SummaryAll Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected voidcheckNullParameter(Object param, String name)protected abstract voidcheckParameters()Checks that all required parameters are set.SSLContextcreate()protected abstract KeyManager[]createKeyManagers()protected abstract TrustManager[]createTrustManagers()String[]getCipherSuites()Gets enabled cipher suites.StringgetProtocol()Gets protocol for secure transport.String[]getProtocols()Gets enabled protocols.voidsetCipherSuites(String... cipherSuites)Sets enabled cipher suites.voidsetProtocol(String proto)Sets protocol for secure transport.voidsetProtocols(String... protocols)Sets enabled protocols.
 
- 
- 
- 
Field Detail- 
DFLT_SSL_PROTOCOLpublic static final String DFLT_SSL_PROTOCOL Default SSL protocol.- See Also:
- Constant Field Values
 
 - 
protoprotected String proto SSL protocol.
 - 
cipherSuitesprotected String[] cipherSuites Enabled cipher suites.
 - 
protocolsprotected String[] protocols Enabled protocols.
 - 
sslCtxprotected final AtomicReference<SSLContext> sslCtx Cached instance of anSSLContext.
 
- 
 - 
Method Detail- 
getProtocolpublic String getProtocol() Gets protocol for secure transport.- Returns:
- SSL protocol name.
 
 - 
setProtocolpublic void setProtocol(String proto) Sets protocol for secure transport. If not specified,DFLT_SSL_PROTOCOLwill be used.- Parameters:
- proto- SSL protocol name.
 
 - 
setCipherSuitespublic void setCipherSuites(String... cipherSuites) Sets enabled cipher suites.- Parameters:
- cipherSuites- enabled cipher suites.
 
 - 
getCipherSuitespublic String[] getCipherSuites() Gets enabled cipher suites.- Returns:
- enabled cipher suites
 
 - 
getProtocolspublic String[] getProtocols() Gets enabled protocols.- Returns:
- Enabled protocols.
 
 - 
setProtocolspublic void setProtocols(String... protocols) Sets enabled protocols.- Parameters:
- protocols- Enabled protocols.
 
 - 
checkNullParameterprotected void checkNullParameter(Object param, String name) throws SSLException - Parameters:
- param- Value.
- name- Name.
- Throws:
- SSLException- If- null.
 
 - 
checkParametersprotected abstract void checkParameters() throws SSLExceptionChecks that all required parameters are set.- Throws:
- SSLException- If any of required parameters is missing.
 
 - 
createKeyManagersprotected abstract KeyManager[] createKeyManagers() throws SSLException - Returns:
- Created Key Managers.
- Throws:
- SSLException- If Key Managers could not be created.
 
 - 
createTrustManagersprotected abstract TrustManager[] createTrustManagers() throws SSLException - Returns:
- Created Trust Managers.
- Throws:
- SSLException- If Trust Managers could not be created.
 
 - 
createpublic SSLContext create() - Specified by:
- createin interface- javax.cache.configuration.Factory<SSLContext>
 
 
- 
 
-