|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object janus.net.Connection janus.net.SecureConnection
public class SecureConnection
Diese Klasse stellt die Verbindung der JAVA-Applikation über ein Gateway oder den TCP_TAN-Server zu den Servern auf einem Tandem-System her.
Version mit SSL.
Field Summary | |
---|---|
static int |
DEFAULT_PORT
Standard TCP/IP-Portnummer des SSL Gateways |
Constructor Summary | |
---|---|
protected |
SecureConnection()
Konstruktor ohne Parameter - für abgeleitete Klassen |
|
SecureConnection(ConnectionParameter param)
Konstruktor - baut die Verbindung zum Tandem-System auf. |
|
SecureConnection(ConnectionParameter param,
boolean debug)
Konstruktor - baut die Verbindung zum Tandem-System auf. |
|
SecureConnection(String host,
int port,
String init)
Konstruktor - baut die Verbindung zum Tandem-System auf. |
|
SecureConnection(String host,
int port,
String init,
boolean debug)
Konstruktor - baut die Verbindung zum Tandem-System auf. |
|
SecureConnection(String host,
int port,
String init,
PrintWriter stream)
Konstruktor - baut die Verbindung zum Tandem-System auf. |
|
SecureConnection(String host,
int port,
String init,
String file)
Konstruktor - baut die Verbindung zum Tandem-System auf. |
Method Summary | |
---|---|
protected Socket |
acceptUmsServerSocket(ServerSocket ss)
Nehme den UMS-Server-Socket an. |
protected void |
createSocket()
Erzeuge den SSL Client-Socket. |
protected ServerSocket |
createUmsServerSocket(int port)
Erzeuge den SSL-UMS-Server-Socket. |
static void |
main(String[] args)
Test |
Methods inherited from class java.lang.Object |
---|
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int DEFAULT_PORT
Constructor Detail |
---|
protected SecureConnection()
public SecureConnection(ConnectionParameter param) throws CommException, TandemException
param
- Parameter zum Aufbau der Verbindung
CommException
- Allgemeiner Kommunikationsfehler
TandemException
- Tandem-Fehlerpublic SecureConnection(ConnectionParameter param, boolean debug) throws CommException, TandemException
param
- Parameter zum Aufbau der Verbindungdebug
- Testinformationen auf debugStream ausgeben
CommException
- Allgemeiner Kommunikationsfehler
TandemException
- Tandem-Fehlerpublic SecureConnection(String host, int port, String init) throws CommException, TandemException
host
- TCP/IP-Adresse des Gateway-Systemsport
- TCP/IP-Port des Gateway-Systemsinit
- Initialisierungs-Information (Pathmon oder RSC.INI-Datei)
CommException
- Allgemeiner Kommunikationsfehler
TandemException
- Tandem-Fehlerpublic SecureConnection(String host, int port, String init, boolean debug) throws CommException, TandemException
host
- TCP/IP-Adresse des Gateway-Systems oder Hostsport
- TCP/IP-Port des Gateway-Systems oder Hostsinit
- Initialisierungs-Information
(Name der RSC.INI-Datei oder Pathmon-Name)debug
- Testinformationen auf debugStream ausgeben
CommException
- Allgemeiner Kommunikationsfehler
TandemException
- Tandem-Fehlerpublic SecureConnection(String host, int port, String init, PrintWriter stream) throws CommException, TandemException
host
- TCP/IP-Adresse des Gateway-Systems oder Hostsport
- TCP/IP-Port des Gateway-Systems oder Hostsinit
- Initialisierungs-Information
(Name der RSC.INI-Datei oder Pathmon-Name)stream
- Ausgabe-Stream f¨r Debugging
CommException
- Allgemeiner Kommunikationsfehler
TandemException
- Tandem-Fehlerpublic SecureConnection(String host, int port, String init, String file) throws CommException, TandemException
host
- TCP/IP-Adresse des Gateway-Systems oder Hostsport
- TCP/IP-Port des Gateway-Systems oder Hostsinit
- Initialisierungs-Information
(Name der RSC.INI-Datei oder Pathmon-Name)file
- Name der Debug-Datei
CommException
- Allgemeiner Kommunikationsfehler
TandemException
- Tandem-FehlerMethod Detail |
---|
protected Socket acceptUmsServerSocket(ServerSocket ss) throws IOException
acceptUmsServerSocket
in class Connection
ss
- Server-Socket
IOException
protected void createSocket() throws IOException
createSocket
in class Connection
IOException
protected ServerSocket createUmsServerSocket(int port) throws IOException
createUmsServerSocket
in class Connection
port
- Portnummer
IOException
public static void main(String[] args) throws CommException
CommException
|
||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |