|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object | +--net.rim.device.api.crypto.tls.ssl30.SSL30Connection
This class can be used to instantiate a SSL3.0 connection
directly given an underlying connection (such
as TCP) or it can be instantiated using Connector.open
and specifying ssl as the protocol to use.
| Constructor Summary | ||
|
SSL30Connection(StreamConnection subConnection,
String name)
Creates an instance of the SSL protocol passing in an underlying stream connection and the address you are connecting to. |
|
| Method Summary | ||
|
void |
close()
Close the connection. |
|
DataInputStream |
openDataInputStream()
Returns a data input stream to use for retrieving data from the TLS stream. |
|
DataOutputStream |
openDataOutputStream()
Returns a data output stream for writing data to the stream securely using TLS. |
|
InputStream |
openInputStream()
Returns the input stream where one would read information from when it is being sent through the protocol. |
|
OutputStream |
openOutputStream()
Sends information across to the other side of the connection (server) using TLS. |
| Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
public SSL30Connection(StreamConnection subConnection, String name) throws IOException, TLSException
This creates the protocol and calls connect which will establish
the connection with the server using SSL. To use the connection
call the getInputStream and getOutputStream methods.
subConnection - An ordered stream connection such as a TCP
connection which will provide the underlying transport for this
protocol.name - The address of both the server and the port that were passed
into the subConnection constructor.IOException - Thrown if an I/O error occurs.TLSException - Thrown if a TLS error occurs.| Method Detail |
public InputStream openInputStream() throws IOException
openInputStream in interface InputConnectionInputStream.IOException - Thrown if an I/O error occurs.public DataInputStream openDataInputStream() throws IOException
openDataInputStream in interface InputConnectionDataInputStream.IOException - Thrown if an I/O error occurs.public OutputStream openOutputStream() throws IOException
openOutputStream in interface OutputConnectionOutputStream.IOException - Thrown if an I/O error occurs.public DataOutputStream openDataOutputStream() throws IOException
openDataOutputStream in interface OutputConnectionDataOutputStream.IOException - Thrown if an I/O error occurs.
public void close()
throws IOException
When the connection has been closed access to all methods except this one will cause an an IOException to be thrown.
Closing an already closed connection has no effect. Streams derived from the connection may be open when method is called. Any open streams will cause the connection to be held open until they themselves are closed.
close in interface ConnectionIOException - Thrown if an I/O error occurs.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 1999-2002 Research In Motion Limited. 295 Phillip Street, Waterloo, Ontario, Canada, N2L 3W8. All Rights Reserved.
Copyright 1993-2000 Sun Microsystems, Inc. 901 San Antonio Road, Palo Alto, California, 94303, U.S.A. All Rights Reserved.
Java is a trademark or registered trademark of Sun Microsystems, Inc. in the US and other countries.