public class SSLParameters extends Object
| Constructor and Description |
|---|
SSLParameters()
The default SSLParameters constructor.
|
SSLParameters(String[] cipherSuites)
A SSLParameters constructor that allows the values for the
initial cipher suites array to be provided.
|
SSLParameters(String[] cipherSuites,
String[] protocols)
A SSLParameters constructor that allows the values for initial
cipher suites and protocols arrays to be provided.
|
| Modifier and Type | Method and Description |
|---|---|
String[] |
getCipherSuites()
Returns a copy of the cipher suites, or null if none have been
specified.
|
boolean |
getNeedClientAuth()
Returns true if a server requires authentication from a client
during handshaking.
|
String[] |
getProtocols()
Returns a copy of the protocols, or null if none have been
specified.
|
boolean |
getWantClientAuth()
Returns true if a server optionally wants to authenticate a
client during handshaking.
|
void |
setCipherSuites(String[] cipherSuites)
Sets the cipher suites to a copy of the input, or null
|
void |
setNeedClientAuth(boolean needClientAuth)
Sets whether or not to a server needs client authentication.
|
void |
setProtocols(String[] protocols)
Sets the protocols to a copy of the input, or null
|
void |
setWantClientAuth(boolean wantClientAuth)
Sets whether or not to a server wants client authentication.
|
public SSLParameters()
public SSLParameters(String[] cipherSuites)
SSLParameters().cipherSuites - An array of cipherSuites that is cloned for
use within the SSLParameters, or null.public SSLParameters(String[] cipherSuites, String[] protocols)
SSLParameters().cipherSuites - An array of cipher names that is cloned for
use within the SSLParameters, or null.protocols - An array of protocol names that is cloned for
use within the SSLParameters, or null.public String[] getCipherSuites()
public void setCipherSuites(String[] cipherSuites)
public String[] getProtocols()
public void setProtocols(String[] protocols)
public boolean getNeedClientAuth()
getWantClientAuth() will return false.public void setNeedClientAuth(boolean needClientAuth)
public boolean getWantClientAuth()
getNeedClientAuth() will return false.public void setWantClientAuth(boolean wantClientAuth)