| Modifier and Type | Class and Description |
|---|---|
| public static class | |
| pack-priv static enum | |
| public static enum | |
| public static enum | |
| public static enum |
| Modifier and Type | Field and Description |
|---|---|
| public static final int | |
| public static final int | |
| public static final int | |
| public static final int | |
| private static final String | |
| private static final String | |
| private static final String | |
| private static final Set | |
| private String | |
| private static final Collator | |
| private String | |
| public static final String | |
| public static final int | |
| private static final File | |
| private static final String | |
| public static final int | |
| private boolean | fileDescriptorSupported
whether file descriptor passing is supported on the current connection. |
| private static final String | |
| public static final int | |
| private final Logger | |
| private static final int | |
| public static final int | |
| public static final int | |
| private static final Random | |
| private final SaslConfig | |
| private static final String |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| private void | |
| public boolean | Returns: true if the auth was successful and false if it failed.socket channel _sock, AbstractTransport transport _transport)Performs SASL auth on the given socketchannel. |
| public String[] | |
| pack-priv SASL. | |
| pack-priv SASL. | |
| private String | |
| private byte | |
| private long | |
| private int | Returns: current state or -1 if failedsocketchannel _sock)Handle reject of authentication. |
| public boolean | |
| public SASL. | |
| public void | |
| private String | |
| private String | stupidlyEncode(String _data)
Takes the string, encodes it as hex and then turns it into a string again. |
| private String |
| AUTH_ANON | back to summary |
|---|---|
| public static final int AUTH_ANON | |
| AUTH_EXTERNAL | back to summary |
|---|---|
| public static final int AUTH_EXTERNAL | |
| AUTH_NONE | back to summary |
|---|---|
| public static final int AUTH_NONE | |
| AUTH_SHA | back to summary |
|---|---|
| public static final int AUTH_SHA | |
| AUTH_TYPE_ANONYMOUS | back to summary |
|---|---|
| private static final String AUTH_TYPE_ANONYMOUS | |
| AUTH_TYPE_DBUS_COOKIE_SHA1 | back to summary |
|---|---|
| private static final String AUTH_TYPE_DBUS_COOKIE_SHA1 | |
| AUTH_TYPE_EXTERNAL | back to summary |
|---|---|
| private static final String AUTH_TYPE_EXTERNAL | |
| BAD_FILE_PERMISSIONS | back to summary |
|---|---|
| private static final Set<PosixFilePermission> BAD_FILE_PERMISSIONS | |
| challenge | back to summary |
|---|---|
| private String challenge | |
| COL | back to summary |
|---|---|
| private static final Collator COL | |
| cookie | back to summary |
|---|---|
| private String cookie | |
| COOKIE_CONTEXT | back to summary |
|---|---|
| public static final String COOKIE_CONTEXT | |
| COOKIE_TIMEOUT | back to summary |
|---|---|
| public static final int COOKIE_TIMEOUT | |
| DBUS_KEYRINGS_DIR | back to summary |
|---|---|
| private static final File DBUS_KEYRINGS_DIR | |
| DBUS_TEST_HOME_DIR | back to summary |
|---|---|
| private static final String DBUS_TEST_HOME_DIR | |
| EXPIRE_KEYS_TIMEOUT_SECONDS | back to summary |
|---|---|
| public static final int EXPIRE_KEYS_TIMEOUT_SECONDS | |
| fileDescriptorSupported | back to summary |
|---|---|
| private boolean fileDescriptorSupported whether file descriptor passing is supported on the current connection. | |
| INVALID_CMD_ERR | back to summary |
|---|---|
| private static final String INVALID_CMD_ERR | |
| LOCK_TIMEOUT | back to summary |
|---|---|
| public static final int LOCK_TIMEOUT | |
| logger | back to summary |
|---|---|
| private final Logger logger | |
| MAX_READ_BYTES | back to summary |
|---|---|
| private static final int MAX_READ_BYTES | |
| MAX_TIME_TRAVEL_SECONDS | back to summary |
|---|---|
| public static final int MAX_TIME_TRAVEL_SECONDS | |
| NEW_KEY_TIMEOUT_SECONDS | back to summary |
|---|---|
| public static final int NEW_KEY_TIMEOUT_SECONDS | |
| RANDOM | back to summary |
|---|---|
| private static final Random RANDOM | |
| saslConfig | back to summary |
|---|---|
| private final SaslConfig saslConfig | |
| SYSPROP_USER_HOME | back to summary |
|---|---|
| private static final String SYSPROP_USER_HOME | |
| SASL | back to summary |
|---|---|
| public SASL(SaslConfig _saslConfig) Create a new SASL auth handler.
| |
| addCookie | back to summary |
|---|---|
private void addCookie(String _context, String _id, long _timestamp, String _cookie) throws IOException
| |
| auth | back to summary |
|---|---|
| public boolean auth(SocketChannel _sock, AbstractTransport _transport) throws IOException Performs SASL auth on the given socketchannel. Mode selects whether to run as a SASL server or client. Types is a bitmask of the available auth types.
| |
| convertAuthTypes | back to summary |
|---|---|
| public String[] convertAuthTypes(int _types) | |
| doChallenge | back to summary |
|---|---|
| pack-priv SASL. | |
| doResponse | back to summary |
|---|---|
| pack-priv SASL. | |
| findCookie | back to summary |
|---|---|
| private String findCookie(String _context, String _id) throws IOException | |
| getNibble | back to summary |
|---|---|
| private byte getNibble(char _c) | |
| getUserId | back to summary |
|---|---|
| private long getUserId() Tries to get the UID (user ID) of the current JVM process. Will always return 0 on windows.
| |
| handleReject | back to summary |
|---|---|
| private int handleReject(int _available, String _luid, SocketChannel _sock) throws IOException Handle reject of authentication.
| |
| isFileDescriptorSupported | back to summary |
|---|---|
| public boolean isFileDescriptorSupported() | |
| receive | back to summary |
|---|---|
| public SASL. | |
| send | back to summary |
|---|---|
| public void send(SocketChannel _sock, SASL. | |
| stupidlyDecode | back to summary |
|---|---|
| private String stupidlyDecode(String _data) | |
| stupidlyEncode | back to summary |
|---|---|
| private String stupidlyEncode(String _data) Takes the string, encodes it as hex and then turns it into a string again. No, I don't know why either. | |
| stupidlyEncode | back to summary |
|---|---|
| private String stupidlyEncode(byte[] _data) | |
| Modifier and Type | Field and Description |
|---|---|
| private SASL. | |
| private String | |
| private final Logger | |
| private int | |
| private String |
| Modifier and Type | Method and Description |
|---|---|
| public SASL. | |
| public String | |
| public int | |
| public String | |
| public void | |
| public String |
| command | back to summary |
|---|---|
| private SASL. | |
| data | back to summary |
|---|---|
| private String data | |
| logger | back to summary |
|---|---|
| private final Logger logger | |
| mechs | back to summary |
|---|---|
| private int mechs | |
| response | back to summary |
|---|---|
| private String response | |
| Command | back to summary |
|---|---|
| public Command() | |
| Command | back to summary |
|---|---|
| public Command(String _s) throws IOException | |
| getCommand | back to summary |
|---|---|
| public SASL. | |
| getData | back to summary |
|---|---|
| public String getData() | |
| getMechs | back to summary |
|---|---|
| public int getMechs() | |
| getResponse | back to summary |
|---|---|
| public String getResponse() | |
| setResponse | back to summary |
|---|---|
| public void setResponse(String _s) | |
| toString | back to summary |
|---|---|
| public String toString() Overrides java. Doc from java. Returns a string representation of the object.
Satisfying this method's contract implies a non- | |
| Modifier and Type | Field and Description |
|---|---|
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SASL. | |
| public static SASL. |
| FAILED | back to summary |
|---|---|
| public static final SASL. | |
| FINISHED | back to summary |
|---|---|
| public static final SASL. | |
| INITIAL_STATE | back to summary |
|---|---|
| public static final SASL. | |
| NEGOTIATE_UNIX_FD | back to summary |
|---|---|
| public static final SASL. | |
| WAIT_AUTH | back to summary |
|---|---|
| public static final SASL. | |
| WAIT_BEGIN | back to summary |
|---|---|
| public static final SASL. | |
| WAIT_DATA | back to summary |
|---|---|
| public static final SASL. | |
| WAIT_OK | back to summary |
|---|---|
| public static final SASL. | |
| WAIT_REJECT | back to summary |
|---|---|
| public static final SASL. | |
| SaslAuthState | back to summary |
|---|---|
| private SaslAuthState() | |
| valueOf | back to summary |
|---|---|
| public static SASL. | |
| values | back to summary |
|---|---|
| public static SASL. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SASL. | |
| public static SASL. |
| AGREE_UNIX_FD | back to summary |
|---|---|
| public static final SASL. | |
| AUTH | back to summary |
|---|---|
| public static final SASL. | |
| BEGIN | back to summary |
|---|---|
| public static final SASL. | |
| CANCEL | back to summary |
|---|---|
| public static final SASL. | |
| DATA | back to summary |
|---|---|
| public static final SASL. | |
| ERROR | back to summary |
|---|---|
| public static final SASL. | |
| NEGOTIATE_UNIX_FD | back to summary |
|---|---|
| public static final SASL. | |
| OK | back to summary |
|---|---|
| public static final SASL. | |
| REJECTED | back to summary |
|---|---|
| public static final SASL. | |
| SaslCommand | back to summary |
|---|---|
| private SaslCommand() | |
| valueOf | back to summary |
|---|---|
| public static SASL. | |
| values | back to summary |
|---|---|
| public static SASL. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final SASL. | |
| public static final SASL. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SASL. | |
| public static SASL. |
| CLIENT | back to summary |
|---|---|
| public static final SASL. | |
| SERVER | back to summary |
|---|---|
| public static final SASL. | |
| SaslMode | back to summary |
|---|---|
| private SaslMode() | |
| valueOf | back to summary |
|---|---|
| public static SASL. | |
| values | back to summary |
|---|---|
| public static SASL. | |
| Modifier and Type | Field and Description |
|---|---|
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. | |
| public static final SASL. |
| Access | Constructor and Description |
|---|---|
| private |
| Modifier and Type | Method and Description |
|---|---|
| public static SASL. | |
| public static SASL. |
| CONTINUE | back to summary |
|---|---|
| public static final SASL. | |
| ERROR | back to summary |
|---|---|
| public static final SASL. | |
| OK | back to summary |
|---|---|
| public static final SASL. | |
| REJECT | back to summary |
|---|---|
| public static final SASL. | |
| SaslResult | back to summary |
|---|---|
| private SaslResult() | |
| valueOf | back to summary |
|---|---|
| public static SASL. | |
| values | back to summary |
|---|---|
| public static SASL. | |