axTLS
axTLSj.SSLServer Class Reference

The server context. More...

Public Member Functions

 SSLServer (int options, int num_sessions)
 Start a new server context. More...
 
SSL connect (Socket s)
 Establish a new SSL connection to an SSL client. More...
 
- Public Member Functions inherited from axTLSj.SSLCTX
void dispose ()
 Remove a client/server context. More...
 
int read (SSL ssl, SSLReadHolder rh)
 Read the SSL data stream. More...
 
int write (SSL ssl, byte[] out_data)
 Write to the SSL data stream. More...
 
int write (SSL ssl, byte[] out_data, int out_len)
 Write to the SSL data stream. More...
 
SSL find (Socket s)
 Find an ssl object based on a Socket reference. More...
 
int verifyCert (SSL ssl)
 Authenticate a received certificate. More...
 
int renegotiate (SSL ssl)
 Force the client to perform its handshake again. More...
 
int objLoad (int obj_type, String filename, String password)
 Load a file into memory that is in binary DER or ASCII PEM format. More...
 
int objLoad (int obj_type, byte[] data, int len, String password)
 Transfer binary data into the object loader. More...
 

Additional Inherited Members

- Protected Member Functions inherited from axTLSj.SSLCTX
 SSLCTX (int options, int num_sessions)
 Establish a new client/server context. More...
 
- Protected Attributes inherited from axTLSj.SSLCTX
int m_ctx
 

Detailed Description

The server context.

All server connections are started within a server context.

Constructor & Destructor Documentation

◆ SSLServer()

axTLSj.SSLServer.SSLServer ( int  options,
int  num_sessions 
)
inline

Start a new server context.

See also
SSLCTX for details.

Member Function Documentation

◆ connect()

SSL axTLSj.SSLServer.connect ( Socket  s)
inline

Establish a new SSL connection to an SSL client.

It is up to the application to establish the initial socket connection.

Call dispose() when the connection is to be removed.

Parameters
s[in] A reference to a Socket object.
Returns
An SSL object reference.

References axTLSj.SSLCTX.m_ctx.

Copyright © 2007 Cameron Rich