|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjava.lang.Thread
org.xlattice.protocol.stun.SecretServer
public class SecretServer
Nested Class Summary |
---|
Nested classes/interfaces inherited from class java.lang.Thread |
---|
java.lang.Thread.State, java.lang.Thread.UncaughtExceptionHandler |
Field Summary | |
---|---|
static int |
BUFSIZE
|
protected org.xlattice.util.NonBlockingLog |
serverLog
|
Fields inherited from class java.lang.Thread |
---|
MAX_PRIORITY, MIN_PRIORITY, NORM_PRIORITY |
Fields inherited from interface org.xlattice.protocol.stun.StunConst |
---|
BINDING_ERROR_RESPONSE, BINDING_REQUEST, BINDING_RESPONSE, CHANGE_IP, CHANGE_PORT, CHANGE_REQUEST, CHANGED_ADDRESS, ERROR_CODE, HEADER_LENGTH, MAPPED_ADDRESS, MESSAGE_INTEGRITY, MSG_ID_LENGTH, PASSWORD, REFLECTED_FROM, RESPONSE_ADDRESS, SECONDARY_ADDRESS, SERVER_NAME, SHARED_SECRET_ERROR_RESPONSE, SHARED_SECRET_REQUEST, SHARED_SECRET_RESPONSE, SOURCE_ADDRESS, STUN_SERVER_PORT, UNKNOWN_ATTRIBUTES, USERNAME, XOR_MAPPED_ADDRESS, XOR_ONLY |
Constructor Summary | |
---|---|
SecretServer(java.net.Inet4Address host,
int port,
java.lang.String ksName,
java.lang.String passwd,
javax.crypto.SecretKey secret1,
javax.crypto.SecretKey secret2,
boolean verbose)
|
|
SecretServer(java.net.Inet4Address host,
int port,
java.lang.String ksName,
java.lang.String passwd,
javax.crypto.SecretKey secret1,
javax.crypto.SecretKey secret2,
java.lang.String logDir,
boolean verbose)
Creates a server which provides username/password pairs over a secure TLS connection. |
Method Summary | |
---|---|
protected void |
badArg(java.lang.String msg)
|
void |
close()
Closes the Acceptor and then blocks until this thread stops running. |
boolean |
isRunning()
|
protected void |
LOG_MSG(java.lang.String s)
|
protected SharedSecretErrorResponse |
malformed(StunMsg msg)
|
void |
run()
|
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 |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int BUFSIZE
protected final org.xlattice.util.NonBlockingLog serverLog
Constructor Detail |
---|
public SecretServer(java.net.Inet4Address host, int port, java.lang.String ksName, java.lang.String passwd, javax.crypto.SecretKey secret1, javax.crypto.SecretKey secret2, java.lang.String logDir, boolean verbose) throws java.security.GeneralSecurityException, java.io.IOException
host
- server IPv4 addressport
- IP port numberksName
- key store file namepasswd
- key store passphrasesecret1
- used for HMACs on usernamessecret2
- used for creating passwordslogDir
- where we write our logsverbose
- whether we are verbose when we log
java.security.GeneralSecurityException
java.io.IOException
public SecretServer(java.net.Inet4Address host, int port, java.lang.String ksName, java.lang.String passwd, javax.crypto.SecretKey secret1, javax.crypto.SecretKey secret2, boolean verbose) throws java.security.GeneralSecurityException, java.io.IOException
java.security.GeneralSecurityException
java.io.IOException
Method Detail |
---|
protected void LOG_MSG(java.lang.String s)
protected final void badArg(java.lang.String msg) throws java.lang.IllegalArgumentException
java.lang.IllegalArgumentException
protected final SharedSecretErrorResponse malformed(StunMsg msg)
public void run()
run
in interface java.lang.Runnable
run
in class java.lang.Thread
public void close() throws java.lang.Exception
java.lang.Exception
public boolean isRunning()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |