public class SASL extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
SASL.Command |
static class |
SASL.SaslMode |
| Modifier and Type | Field and Description |
|---|---|
static int |
AUTH_ANON |
static int |
AUTH_EXTERNAL |
static int |
AUTH_NONE |
static int |
AUTH_SHA |
static String |
COOKIE_CONTEXT |
static int |
COOKIE_TIMEOUT |
static int |
EXPIRE_KEYS_TIMEOUT_SECONDS |
static int |
LOCK_TIMEOUT |
static int |
MAX_TIME_TRAVEL_SECONDS |
static int |
NEW_KEY_TIMEOUT_SECONDS |
| Constructor and Description |
|---|
SASL()
Create a new SASL auth handler.
|
SASL(boolean _hasFileDescriptorSupport)
Create a new SASL auth handler.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
auth(SASL.SaslMode mode,
int types,
String guid,
OutputStream out,
InputStream in,
Socket us)
performs SASL auth on the given streams.
|
org.freedesktop.dbus.connections.SASL.SaslResult |
doChallenge(int _auth,
SASL.Command c) |
org.freedesktop.dbus.connections.SASL.SaslResult |
doResponse(int _auth,
String _uid,
String _kernelUid,
SASL.Command _c) |
String[] |
getTypes(int types) |
boolean |
isFileDescriptorSupported() |
SASL.Command |
receive(InputStream s) |
void |
send(OutputStream out,
org.freedesktop.dbus.connections.SASL.SaslCommand 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 AUTH_NONE
public static final int AUTH_EXTERNAL
public static final int AUTH_SHA
public static final int AUTH_ANON
public SASL()
public SASL(boolean _hasFileDescriptorSupport)
_hasFileDescriptorSupport - true to support file descriptor passing (usually only works with UNIX_SOCKET).public SASL.Command receive(InputStream s) throws IOException
IOExceptionpublic void send(OutputStream out, org.freedesktop.dbus.connections.SASL.SaslCommand command, String... data) throws IOException
IOExceptionpublic org.freedesktop.dbus.connections.SASL.SaslResult doChallenge(int _auth,
SASL.Command c)
throws IOException
IOExceptionpublic org.freedesktop.dbus.connections.SASL.SaslResult doResponse(int _auth,
String _uid,
String _kernelUid,
SASL.Command _c)
public String[] getTypes(int types)
public boolean auth(SASL.SaslMode mode, int types, String guid, OutputStream out, InputStream in, Socket us) throws IOException
mode - modetypes - typesguid - guidout - outin - inus - usIOException - on failurepublic boolean isFileDescriptorSupported()
Copyright © 2020. All rights reserved.