Package org.apache.avro.ipc
Class SaslSocketServer
java.lang.Object
java.lang.Thread
org.apache.avro.ipc.SocketServer
org.apache.avro.ipc.SaslSocketServer
A
Server
that uses javax.security.sasl
for authentication and
encryption.-
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
-
Constructor Summary
ConstructorDescriptionSaslSocketServer
(Responder responder, SocketAddress addr) Create using SASL's anonymous (RFC 2245) mechanism.SaslSocketServer
(Responder responder, SocketAddress addr, String mechanism, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) Create using the specifiedSaslServer
parameters. -
Method Summary
Modifier and TypeMethodDescriptionprotected Transceiver
getTransceiver
(SocketChannel channel) Creates an appropriateTransceiver
for this server.Methods inherited from class org.apache.avro.ipc.SocketServer
close, getPort, main, run
Methods inherited from class java.lang.Thread
activeCount, checkAccess, clone, countStackFrames, currentThread, dumpStack, enumerate, getAllStackTraces, getContextClassLoader, getDefaultUncaughtExceptionHandler, getId, getName, getPriority, getStackTrace, getState, getThreadGroup, getUncaughtExceptionHandler, holdsLock, interrupt, interrupted, isAlive, isDaemon, isInterrupted, join, join, join, onSpinWait, resume, setContextClassLoader, setDaemon, setDefaultUncaughtExceptionHandler, setName, setPriority, setUncaughtExceptionHandler, sleep, sleep, start, stop, suspend, toString, yield
-
Constructor Details
-
SaslSocketServer
Create using SASL's anonymous (RFC 2245) mechanism.- Throws:
IOException
-
SaslSocketServer
public SaslSocketServer(Responder responder, SocketAddress addr, String mechanism, String protocol, String serverName, Map<String, ?> props, CallbackHandler cbh) throws IOExceptionCreate using the specifiedSaslServer
parameters.- Throws:
IOException
-
-
Method Details
-
getTransceiver
Description copied from class:SocketServer
Creates an appropriateTransceiver
for this server. Returns aSocketTransceiver
by default.- Overrides:
getTransceiver
in classSocketServer
- Throws:
IOException
-