Modifier and Type | Class and Description |
---|---|
static class |
Transport.SASL.Command |
Modifier and Type | Field and Description |
---|---|
static int |
AUTH_ANON |
static int |
AUTH_EXTERNAL |
static int |
AUTH_NONE |
static int |
AUTH_SHA |
static int |
AUTHENTICATED |
String |
challenge |
static int |
COMMAND_AUTH |
static int |
COMMAND_BEGIN |
static int |
COMMAND_CANCEL |
static int |
COMMAND_DATA |
static int |
COMMAND_ERROR |
static int |
COMMAND_OK |
static int |
COMMAND_REJECTED |
static int |
CONTINUE |
String |
cookie |
static String |
COOKIE_CONTEXT |
static int |
COOKIE_TIMEOUT |
static int |
ERROR |
static int |
EXPIRE_KEYS_TIMEOUT_SECONDS |
static int |
FAILED |
static int |
INITIAL_STATE |
static int |
LOCK_TIMEOUT |
static int |
MAX_TIME_TRAVEL_SECONDS |
static int |
MODE_CLIENT |
static int |
MODE_SERVER |
static int |
NEW_KEY_TIMEOUT_SECONDS |
static int |
OK |
static int |
REJECT |
static int |
WAIT_AUTH |
static int |
WAIT_BEGIN |
static int |
WAIT_DATA |
static int |
WAIT_OK |
static int |
WAIT_REJECT |
Constructor and Description |
---|
SASL() |
Modifier and Type | Method and Description |
---|---|
boolean |
auth(int mode,
int types,
String guid,
OutputStream out,
InputStream in,
cx.ath.matthew.unix.UnixSocket us)
performs SASL auth on the given streams.
|
int |
do_challenge(int auth,
Transport.SASL.Command c) |
int |
do_response(int auth,
String Uid,
String kernelUid,
Transport.SASL.Command c) |
String[] |
getTypes(int types) |
Transport.SASL.Command |
receive(InputStream s) |
void |
send(OutputStream out,
int command,
String... data) |
public static final int LOCK_TIMEOUT
public static final int NEW_KEY_TIMEOUT_SECONDS
public static final int EXPIRE_KEYS_TIMEOUT_SECONDS
public static final int MAX_TIME_TRAVEL_SECONDS
public static final int COOKIE_TIMEOUT
public static final String COOKIE_CONTEXT
public static final int MODE_SERVER
public static final int MODE_CLIENT
public static final int AUTH_NONE
public static final int AUTH_EXTERNAL
public static final int AUTH_SHA
public static final int AUTH_ANON
public static final int COMMAND_AUTH
public static final int COMMAND_DATA
public static final int COMMAND_REJECTED
public static final int COMMAND_OK
public static final int COMMAND_BEGIN
public static final int COMMAND_CANCEL
public static final int COMMAND_ERROR
public static final int INITIAL_STATE
public static final int WAIT_DATA
public static final int WAIT_OK
public static final int WAIT_REJECT
public static final int WAIT_AUTH
public static final int WAIT_BEGIN
public static final int AUTHENTICATED
public static final int FAILED
public static final int OK
public static final int CONTINUE
public static final int ERROR
public static final int REJECT
public String challenge
public String cookie
public Transport.SASL.Command receive(InputStream s) throws IOException
IOException
public void send(OutputStream out, int command, String... data) throws IOException
IOException
public int do_challenge(int auth, Transport.SASL.Command c) throws IOException
IOException
public int do_response(int auth, String Uid, String kernelUid, Transport.SASL.Command c)
public String[] getTypes(int types)
public boolean auth(int mode, int types, String guid, OutputStream out, InputStream in, cx.ath.matthew.unix.UnixSocket us) throws IOException
IOException