public class NetworkConfig.NetworkSecurity
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
boolean |
isClient |
java.lang.String |
protocol |
int |
strength |
boolean |
verifyPeer |
Constructor and Description |
---|
NetworkConfig.NetworkSecurity(boolean isClient)
Constructor
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(NetworkConfig.NetworkSecurity other) |
void |
init(java.lang.String protocol,
int strength,
boolean verifyPeer)
Initialize based on the given parameters
|
void |
init(XMLElement xml) |
public boolean isClient
public java.lang.String protocol
public int strength
public boolean verifyPeer
public NetworkConfig.NetworkSecurity(boolean isClient)
isClient
- - whether or not this is client parameters or server parameterspublic void init(java.lang.String protocol, int strength, boolean verifyPeer)
protocol
- - NETWORK_SECURITY_PROTOCOL_XX where XX=any of {SSL_30, TLS_10, TLS_11, TLS_12}strength
- - CIPHER_SUITE_STRENGTH_XX where XX=any of {LOW, MED, HIGH}verifyPeer
- - Whether or not the peer's certificate should be verifiedpublic void init(XMLElement xml)
public boolean equals(NetworkConfig.NetworkSecurity other)