org.jwall.web.audit.net
Class SSLNetworkAuditEventSource

java.lang.Object
  extended by java.lang.Thread
      extended by org.jwall.web.audit.net.NetworkAuditEventSource
          extended by org.jwall.web.audit.net.SSLNetworkAuditEventSource
All Implemented Interfaces:
Runnable, AuditEventSource

public class SSLNetworkAuditEventSource
extends NetworkAuditEventSource

This class is an SSL-enabled implementation of the network audit event source. As with the non-SSL version this class resembles the client-side of the event connection.

Author:
Christian Bockermann <chris@jwall.org>

Nested Class Summary
 
Nested classes/interfaces inherited from class java.lang.Thread
Thread.State, Thread.UncaughtExceptionHandler
 
Field Summary
 
Fields inherited from class java.lang.Thread
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY
 
Method Summary
static SSLNetworkAuditEventSource createSSLSource(InputStream keyStoreFile, String pass, String server, int port)
          This is the factory method to create a new SSL based network audit event source.
 
Methods inherited from class org.jwall.web.audit.net.NetworkAuditEventSource
addEventListener, close, connect, hasNext, nextEvent, removeEventListener, run, setFilter
 
Methods inherited from class java.lang.Thread
activeCount, checkAccess, countStackFrames, currentThread, destroy, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, stop, suspend, toString, yield
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

createSSLSource

public static SSLNetworkAuditEventSource createSSLSource(InputStream keyStoreFile,
                                                         String pass,
                                                         String server,
                                                         int port)
                                                  throws Exception
This is the factory method to create a new SSL based network audit event source. The most important additional parameter is the key file from which the private and public key are extracted.

Parameters:
keyStoreFile - The file containing the private/public key pair.
pass - The password in case the key file is encrypted.
server - The server name/address to which this source will be connected.
port - The port of the server to which the source will be connected.
Returns:
The SSL enabled source that can be connected to by clients.
Throws:
Exception - In case anything went wrong (setting up the server socket, extracting the keys)


Copyright © 2012 jwall.org. All Rights Reserved.