|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.openuat.apps.IPSecConfigHandler
public class IPSecConfigHandler
This class implements reading and writing of the configuration of an IPSec tunnel in XML format.
| Constructor Summary | |
|---|---|
IPSecConfigHandler()
This constructor actually does nothing. |
|
| Method Summary | |
|---|---|
java.lang.String |
getCaDistinguishedName()
Returns the value to be used for the CA distinguished name. |
java.lang.String |
getGateway()
Returns the value to be used for the remote gateway of the IPSec tunnel. |
int |
getRemoteNetmask()
Returns the value to be used for the netmask of the remote network behind the remote gateway of the IPSec tunnel. |
java.lang.String |
getRemoteNetwork()
Returns the value to be used for the remote network behind the remote gateway of the IPSec tunnel. |
boolean |
parseConfig(java.io.Reader input)
Parses an existing configuration and extracts the gateway and optionally the remote remote network (if it exists in the configuration). |
void |
setCaDistinguishedName(java.lang.String caDistinguishedName)
Sets the value to be used for the CA distinguished name. |
void |
setGateway(java.lang.String gateway)
Sets the value to be used for the remote gateway of the IPSec tunnel. |
void |
setRemoteNetmask(int remoteNetmask)
Sets the value to be used for the remote network behind the remote gateway of the IPSec tunnel. |
void |
setRemoteNetwork(java.lang.String remoteNetwork)
Sets the value to be used for the remote network behind the remote gateway of the IPSec tunnel. |
boolean |
writeConfig(java.io.Writer output)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public IPSecConfigHandler()
| Method Detail |
|---|
public java.lang.String getGateway()
public void setGateway(java.lang.String gateway)
public java.lang.String getRemoteNetwork()
public void setRemoteNetwork(java.lang.String remoteNetwork)
public int getRemoteNetmask()
public void setRemoteNetmask(int remoteNetmask)
public java.lang.String getCaDistinguishedName()
public void setCaDistinguishedName(java.lang.String caDistinguishedName)
public boolean parseConfig(java.io.Reader input)
input - The configuration.
public boolean writeConfig(java.io.Writer output)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||