Package org.jgroups.util
Class TLS
- java.lang.Object
-
- org.jgroups.util.TLS
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TLS.SniMatcherConverter
-
Field Summary
Fields Modifier and Type Field Description protected java.lang.String[]
cipher_suites
protected TLSClientAuth
client_auth
protected boolean
enabled
protected java.lang.String
keystore_alias
protected java.lang.String
keystore_password
protected java.lang.String
keystore_path
protected java.lang.String
keystore_type
protected java.lang.String[]
protocols
protected java.lang.String
provider
protected java.util.List<javax.net.ssl.SNIMatcher>
sni_matchers
protected javax.net.ssl.SSLContext
ssl_context
protected java.lang.String
truststore_password
protected java.lang.String
truststore_path
protected java.lang.String
truststore_type
protected FileWatcher
watcher
-
Constructor Summary
Constructors Constructor Description TLS()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description javax.net.ssl.SSLContext
createContext()
SocketFactory
createSocketFactory()
SocketFactory
createSocketFactory(javax.net.ssl.SSLContext context)
boolean
enabled()
TLS
enabled(boolean e)
java.lang.String[]
getCipherSuites()
TLSClientAuth
getClientAuth()
java.lang.String
getKeystoreAlias()
java.lang.String
getKeystorePassword()
java.lang.String
getKeystorePath()
java.lang.String
getKeystoreType()
java.lang.String[]
getProtocols()
java.lang.String
getProvider()
java.util.List<javax.net.ssl.SNIMatcher>
getSniMatchers()
javax.net.ssl.SSLContext
getSSLContext()
java.lang.String
getTruststorePassword()
java.lang.String
getTruststorePath()
java.lang.String
getTruststoreType()
FileWatcher
getWatcher()
void
init()
Called after an instance has been created and before it is started.TLS
setCipherSuites(java.lang.String[] c)
TLS
setClientAuth(TLSClientAuth c)
TLS
setKeystoreAlias(java.lang.String k)
TLS
setKeystorePassword(java.lang.String k)
TLS
setKeystorePath(java.lang.String k)
TLS
setKeystoreType(java.lang.String k)
TLS
setProtocols(java.lang.String[] p)
TLS
setProvider(java.lang.String p)
TLS
setSniMatchers(java.util.List<javax.net.ssl.SNIMatcher> s)
TLS
setSSLContext(javax.net.ssl.SSLContext c)
TLS
setTruststorePassword(java.lang.String t)
TLS
setTruststorePath(java.lang.String t)
TLS
setTruststoreType(java.lang.String t)
void
setWatcher(FileWatcher watcher)
-
-
-
Field Detail
-
enabled
protected boolean enabled
-
protocols
protected java.lang.String[] protocols
-
cipher_suites
protected java.lang.String[] cipher_suites
-
provider
protected java.lang.String provider
-
keystore_path
protected java.lang.String keystore_path
-
keystore_password
protected java.lang.String keystore_password
-
keystore_type
protected java.lang.String keystore_type
-
keystore_alias
protected java.lang.String keystore_alias
-
truststore_path
protected java.lang.String truststore_path
-
truststore_password
protected java.lang.String truststore_password
-
truststore_type
protected java.lang.String truststore_type
-
ssl_context
protected javax.net.ssl.SSLContext ssl_context
-
client_auth
protected TLSClientAuth client_auth
-
sni_matchers
protected java.util.List<javax.net.ssl.SNIMatcher> sni_matchers
-
watcher
protected FileWatcher watcher
-
-
Method Detail
-
enabled
public boolean enabled()
-
enabled
public TLS enabled(boolean e)
-
getProtocols
public java.lang.String[] getProtocols()
-
setProtocols
public TLS setProtocols(java.lang.String[] p)
-
getCipherSuites
public java.lang.String[] getCipherSuites()
-
setCipherSuites
public TLS setCipherSuites(java.lang.String[] c)
-
getProvider
public java.lang.String getProvider()
-
setProvider
public TLS setProvider(java.lang.String p)
-
getKeystorePath
public java.lang.String getKeystorePath()
-
setKeystorePath
public TLS setKeystorePath(java.lang.String k)
-
getKeystorePassword
public java.lang.String getKeystorePassword()
-
setKeystorePassword
public TLS setKeystorePassword(java.lang.String k)
-
getKeystoreType
public java.lang.String getKeystoreType()
-
setKeystoreType
public TLS setKeystoreType(java.lang.String k)
-
getKeystoreAlias
public java.lang.String getKeystoreAlias()
-
setKeystoreAlias
public TLS setKeystoreAlias(java.lang.String k)
-
getTruststorePath
public java.lang.String getTruststorePath()
-
setTruststorePath
public TLS setTruststorePath(java.lang.String t)
-
getTruststorePassword
public java.lang.String getTruststorePassword()
-
setTruststorePassword
public TLS setTruststorePassword(java.lang.String t)
-
getTruststoreType
public java.lang.String getTruststoreType()
-
setTruststoreType
public TLS setTruststoreType(java.lang.String t)
-
getSSLContext
public javax.net.ssl.SSLContext getSSLContext()
-
setSSLContext
public TLS setSSLContext(javax.net.ssl.SSLContext c)
-
getClientAuth
public TLSClientAuth getClientAuth()
-
setClientAuth
public TLS setClientAuth(TLSClientAuth c)
-
getSniMatchers
public java.util.List<javax.net.ssl.SNIMatcher> getSniMatchers()
-
setSniMatchers
public TLS setSniMatchers(java.util.List<javax.net.ssl.SNIMatcher> s)
-
getWatcher
public FileWatcher getWatcher()
-
setWatcher
public void setWatcher(FileWatcher watcher)
-
init
public void init() throws java.lang.Exception
Description copied from interface:Lifecycle
Called after an instance has been created and before it is started.
-
createContext
public javax.net.ssl.SSLContext createContext()
-
createSocketFactory
public SocketFactory createSocketFactory()
-
createSocketFactory
public SocketFactory createSocketFactory(javax.net.ssl.SSLContext context)
-
-