namespace Akenti class SSLSocket : public Socket

SecureSocket class - derived from Socket but has a SSLcontext associated with it

Inheritance:


Public Methods

SSLSocket (SecureSocketImpl* impl = NULL)
Constructs a SSLSocket from a SecureSocketImpl
SSLSocket (const string& host, int port)
Constructs a client SSLSocket from the Provider default SSLClientContext and default SecureSocketImpl
SSLSocket (const SSLContext& ctx, const string& host, int port)
Constructs a client SSLSocket from a Server SSLContext and the Provider default SecureSocketImpl
~SSLSocket ()
Destroys this object
const SSLContext& getSSLContext ()
Return the security context associated with this socket

Inherited from Socket:

Public Methods

const string& getHost() const
int getPort() const
InputStream& getInputStream() const
OutputStream& getOutputStream() const
void connect()
void close()
string paramString() const

Documentation

SecureSocket class - derived from Socket but has a SSLcontext associated with it. Inherits most of its methods from Socket - i.e. setting the host, setting/getting the port, connection and binding.
SSLSocket(SecureSocketImpl* impl = NULL)
Constructs a SSLSocket from a SecureSocketImpl.
Parameters:
SecureSocketImpl - probably created by the newInstance method of the concrete SecureSocketImpl.

SSLSocket(const string& host, int port)
Constructs a client SSLSocket from the Provider default SSLClientContext and default SecureSocketImpl.
Parameters:
host - to which the socket will connect.
port - to which the socket will connect.
See Also:
Provider

SSLSocket(const SSLContext& ctx, const string& host, int port)
Constructs a client SSLSocket from a Server SSLContext and the Provider default SecureSocketImpl.
Throws:
Error if the input SSLcontext is not a client context.
Parameters:
ctx - a client SSLContext
host - host to which the socket will connect.
port - port to which the socket will connect.
See Also:
Provider

~SSLSocket()
Destroys this object

const SSLContext& getSSLContext()
Return the security context associated with this socket.
Returns:
the SSLContext associated with this socket.


This class has no child classes.
Author:
Srilekha Mudumbai Abdelilah Essiari
Version:
1.1 00/05/01
See Also:
SSLContext
Socket
SecureSocketImpl
Provider

alphabetic index hierarchy of classes


this page has been generated automatically by doc++

(c)opyright by Malte Zöckler, Roland Wunderling
contact: doc++@zib.de