org.jwall.web.audit.net
Class SSLNetworkAuditEventSource
java.lang.Object
java.lang.Thread
org.jwall.web.audit.net.NetworkAuditEventSource
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>
| 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 |
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.