public class Secure
extends java.lang.Object
implements java.io.Serializable
....
<secure>
<enable>true</enable>
<load>true</load>
<port></port>
<protocol>TLS</protocol>
<client-auth-enable>false</client-auth-enable>
<secure-store>
....
</secure-store>
</secure>
....
TrustStoreInfo,
KeyStoreInfo,
SecureStore,
Serialized Form| Constructor and Description |
|---|
Secure() |
| Modifier and Type | Method and Description |
|---|---|
boolean |
getClientAuthEnable()
Returns whether the connections which are accepted must include
successful client authentication.
|
boolean |
getEnable()
Returns the Secure enable flag.
|
boolean |
getLoad()
Returns the load flag for SSLContext.
|
int |
getPort()
Returns the port for the QuickServer to listen on in secure mode.
|
java.lang.String |
getProtocol()
Returns the protocol for the QuickServer to listen on in secure mode.
|
SecureStore |
getSecureStore()
Returns SecureStore information.
|
boolean |
isClientAuthEnable()
Returns whether the connections which are accepted must include
successful client authentication.
|
boolean |
isEnable()
Returns the Secure enable flag.
|
boolean |
isLoad()
Returns the load flag for SSLContext.
|
void |
setClientAuthEnable(boolean enable)
Sets whether the connections which are accepted must include
successful client authentication.
|
void |
setEnable(boolean enable)
Sets the Secure enable flag.
|
void |
setLoad(boolean load)
Sets the load flag for SSLContext.
|
void |
setPort(int port)
Sets the port for the QuickServer to listen on in secure mode.
|
void |
setProtocol(java.lang.String protocol)
Sets the protocol for the QuickServer to listen on in secure mode.
|
void |
setSecureStore(SecureStore secureStore)
Sets SecureStore information
XML Tag: <secure-store></secure-store>
|
java.lang.String |
toXML(java.lang.String pad)
Returns XML config of this class.
|
public void setEnable(boolean enable)
falsetrue | false
If enable is set to true load is also set to true.getEnable()public boolean getEnable()
setEnable(boolean)public boolean isEnable()
public void setLoad(boolean load)
falsetrue | falsegetLoad()public boolean getLoad()
setLoad(boolean)public boolean isLoad()
public void setPort(int port)
port - to listen on.getPort()public int getPort()
setPort(int)public void setProtocol(java.lang.String protocol)
TLSprotocol - to listen on in secure mode.getProtocol()public java.lang.String getProtocol()
setProtocol(java.lang.String)public void setClientAuthEnable(boolean enable)
falseenable - client authentication enable flaggetClientAuthEnable()public boolean getClientAuthEnable()
setClientAuthEnable(boolean)public boolean isClientAuthEnable()
public void setSecureStore(SecureStore secureStore)
secureStore - SecureStore informationgetSecureStore()public SecureStore getSecureStore()
public java.lang.String toXML(java.lang.String pad)
Copyright © 2003-2014 QuickServer.org