|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.ldaptive.AbstractConfig
org.ldaptive.ssl.SslConfig
public class SslConfig
Contains all the configuration data for SSL and startTLS. Providers are not guaranteed to support all the options contained here.
| Field Summary |
|---|
| Fields inherited from class org.ldaptive.AbstractConfig |
|---|
logger |
| Constructor Summary | |
|---|---|
SslConfig()
Default constructor. |
|
SslConfig(CredentialConfig config)
Creates a new ssl config. |
|
SslConfig(CredentialConfig config,
TrustManager... managers)
Creates a new ssl config. |
|
SslConfig(TrustManager... managers)
Creates a new ssl config. |
|
| Method Summary | |
|---|---|
CredentialConfig |
getCredentialConfig()
Returns the credential config. |
String[] |
getEnabledCipherSuites()
Returns the names of the SSL cipher suites to use for secure connections. |
String[] |
getEnabledProtocols()
Returns the names of the SSL protocols to use for secure connections. |
HandshakeCompletedListener[] |
getHandshakeCompletedListeners()
Returns the handshake completed listeners to use for secure connections. |
TrustManager[] |
getTrustManagers()
Returns the trust managers. |
boolean |
isEmpty()
Returns whether this ssl config contains any configuration data. |
static SslConfig |
newSslConfig(SslConfig config)
Returns a ssl config initialized with the supplied config. |
void |
setCredentialConfig(CredentialConfig config)
Sets the credential config. |
void |
setEnabledCipherSuites(String... suites)
Sets the SSL cipher suites to use for secure connections. |
void |
setEnabledProtocols(String... protocols)
Sets the SSL protocol versions to use for secure connections. |
void |
setHandshakeCompletedListeners(HandshakeCompletedListener... listeners)
Sets the handshake completed listeners to use for secure connections. |
void |
setTrustManagers(TrustManager... managers)
Sets the trust managers. |
String |
toString()
|
| Methods inherited from class org.ldaptive.AbstractConfig |
|---|
checkImmutable, checkStringInput, makeImmutable |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public SslConfig()
public SslConfig(CredentialConfig config)
config - credential configpublic SslConfig(TrustManager... managers)
managers - trust managers
public SslConfig(CredentialConfig config,
TrustManager... managers)
config - credential configmanagers - trust managers| Method Detail |
|---|
public boolean isEmpty()
public CredentialConfig getCredentialConfig()
public void setCredentialConfig(CredentialConfig config)
config - credential configpublic TrustManager[] getTrustManagers()
public void setTrustManagers(TrustManager... managers)
managers - trust managerspublic String[] getEnabledCipherSuites()
public void setEnabledCipherSuites(String... suites)
suites - cipher suitespublic String[] getEnabledProtocols()
public void setEnabledProtocols(String... protocols)
protocols - enabled protocolspublic HandshakeCompletedListener[] getHandshakeCompletedListeners()
public void setHandshakeCompletedListeners(HandshakeCompletedListener... listeners)
listeners - for SSL handshake eventspublic static SslConfig newSslConfig(SslConfig config)
config - ssl config to read properties from
public String toString()
toString in class Object
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||