public abstract class AbstractSslContextFactory extends Object implements javax.cache.configuration.Factory<SSLContext>
SSLContext and always returns it as a result of further invocations of the
create()} method.| Modifier and Type | Field and Description |
|---|---|
protected String[] |
cipherSuites
Enabled cipher suites.
|
static String |
DFLT_SSL_PROTOCOL
Default SSL protocol.
|
protected String |
proto
SSL protocol.
|
protected String[] |
protocols
Enabled protocols.
|
protected AtomicReference<SSLContext> |
sslCtx
Cached instance of an
SSLContext. |
| Constructor and Description |
|---|
AbstractSslContextFactory() |
| Modifier and Type | Method and Description |
|---|---|
protected void |
checkNullParameter(Object param,
String name) |
protected abstract void |
checkParameters()
Checks that all required parameters are set.
|
SSLContext |
create() |
protected abstract KeyManager[] |
createKeyManagers() |
protected abstract TrustManager[] |
createTrustManagers() |
String[] |
getCipherSuites()
Gets enabled cipher suites.
|
String |
getProtocol()
Gets protocol for secure transport.
|
String[] |
getProtocols()
Gets enabled protocols.
|
void |
setCipherSuites(String... cipherSuites)
Sets enabled cipher suites.
|
void |
setProtocol(String proto)
Sets protocol for secure transport.
|
void |
setProtocols(String... protocols)
Sets enabled protocols.
|
public static final String DFLT_SSL_PROTOCOL
protected String proto
protected String[] cipherSuites
protected String[] protocols
protected final AtomicReference<SSLContext> sslCtx
SSLContext.public String getProtocol()
public void setProtocol(String proto)
DFLT_SSL_PROTOCOL will be used.proto - SSL protocol name.public void setCipherSuites(String... cipherSuites)
cipherSuites - enabled cipher suites.public String[] getCipherSuites()
public String[] getProtocols()
public void setProtocols(String... protocols)
protocols - Enabled protocols.protected void checkNullParameter(Object param, String name) throws SSLException
param - Value.name - Name.SSLException - If null.protected abstract void checkParameters()
throws SSLException
SSLException - If any of required parameters is missing.protected abstract KeyManager[] createKeyManagers() throws SSLException
SSLException - If Key Managers could not be created.protected abstract TrustManager[] createTrustManagers() throws SSLException
SSLException - If Trust Managers could not be created.public SSLContext create()
create in interface javax.cache.configuration.Factory<SSLContext>
Follow @ApacheIgnite
Ignite Database and Caching Platform : ver. 2.16.0 Release Date : December 15 2023