|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectgov.nist.core.net.SslNetworkLayer
public class SslNetworkLayer
extended implementation of a network layer that allows to define a private java keystores/truststores
| Constructor Summary | |
|---|---|
SslNetworkLayer(String trustStoreFile,
String keyStoreFile,
char[] keyStorePassword,
String keyStoreType)
|
|
| Method Summary | |
|---|---|
DatagramSocket |
createDatagramSocket()
Constructs a datagram socket and binds it to any available port on the local host machine. |
DatagramSocket |
createDatagramSocket(int port,
InetAddress laddr)
Creates a datagram socket, bound to the specified local address. |
ServerSocket |
createServerSocket(int port,
int backlog,
InetAddress bindAddress)
Creates a server with the specified port, listen backlog, and local IP address to bind to. |
Socket |
createSocket(InetAddress address,
int port)
Creates a stream socket and connects it to the specified port number at the specified IP address. |
Socket |
createSocket(InetAddress address,
int port,
InetAddress myAddress)
Creates a stream socket and connects it to the specified port number at the specified IP address. |
Socket |
createSocket(InetAddress address,
int port,
InetAddress myAddress,
int myPort)
Creates a new Socket, binds it to myAddress:myPort and connects it to address:port. |
SSLServerSocket |
createSSLServerSocket(int port,
int backlog,
InetAddress bindAddress)
Creates an SSL server with the specified port, listen backlog, and local IP address to bind to. |
SSLSocket |
createSSLSocket(InetAddress address,
int port)
Creates a stream SSL socket and connects it to the specified port number at the specified IP address. |
SSLSocket |
createSSLSocket(InetAddress address,
int port,
InetAddress myAddress)
Creates a stream SSL socket and connects it to the specified port number at the specified IP address. |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public SslNetworkLayer(String trustStoreFile,
String keyStoreFile,
char[] keyStorePassword,
String keyStoreType)
throws GeneralSecurityException,
FileNotFoundException,
IOException
GeneralSecurityException
FileNotFoundException
IOException| Method Detail |
|---|
public ServerSocket createServerSocket(int port,
int backlog,
InetAddress bindAddress)
throws IOException
NetworkLayer
createServerSocket in interface NetworkLayerIOException
public Socket createSocket(InetAddress address,
int port)
throws IOException
NetworkLayer
createSocket in interface NetworkLayerIOException
public DatagramSocket createDatagramSocket()
throws SocketException
NetworkLayer
createDatagramSocket in interface NetworkLayerSocketException
public DatagramSocket createDatagramSocket(int port,
InetAddress laddr)
throws SocketException
NetworkLayer
createDatagramSocket in interface NetworkLayerSocketException
public SSLServerSocket createSSLServerSocket(int port,
int backlog,
InetAddress bindAddress)
throws IOException
NetworkLayer
createSSLServerSocket in interface NetworkLayerIOException
public SSLSocket createSSLSocket(InetAddress address,
int port)
throws IOException
NetworkLayer
createSSLSocket in interface NetworkLayerIOException
public SSLSocket createSSLSocket(InetAddress address,
int port,
InetAddress myAddress)
throws IOException
NetworkLayer
createSSLSocket in interface NetworkLayermyAddress - -- my address.
IOException
public Socket createSocket(InetAddress address,
int port,
InetAddress myAddress)
throws IOException
NetworkLayer
createSocket in interface NetworkLayerIOException
public Socket createSocket(InetAddress address,
int port,
InetAddress myAddress,
int myPort)
throws IOException
createSocket in interface NetworkLayeraddress - the InetAddress that we'd like to connect to.port - the port that we'd like to connect tomyAddress - the address that we are supposed to bind on or null
for the "any" address.myPort - the port that we are supposed to bind on or 0 for a random
one.
IOException - if binding or connecting the socket fail for a reason
(exception relayed from the correspoonding Socket methods)
|
NIST-SIP: The Reference Implementation for JAIN-SIP 1.2 | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||