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
ConstructorsConstructorDescriptionSaslSocketServer(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 specifiedSaslServerparameters. -
Method Summary
Modifier and TypeMethodDescriptionprotected TransceivergetTransceiver(SocketChannel channel) Creates an appropriateTransceiverfor this server.Methods inherited from class org.apache.avro.ipc.SocketServer
close, getPort, main, runMethods 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 specifiedSaslServerparameters.- Throws:
IOException
-
-
Method Details
-
getTransceiver
Description copied from class:SocketServerCreates an appropriateTransceiverfor this server. Returns aSocketTransceiverby default.- Overrides:
getTransceiverin classSocketServer- Throws:
IOException
-