ssh-auth service.
| Modifier and Type | Field and Description |
|---|---|
| protected final List | |
| protected final AtomicReference | authFutureHolder
The AuthFuture that is being used by the current auth request. |
| protected final List | |
| protected final ClientSessionImpl | |
| private int | |
| private UserAuth | |
| private Runnable | |
| private final Object | |
| private final Map | |
| private UserAuth | |
| protected List | |
| private String | |
| private boolean |
| Access | Constructor and Description |
|---|---|
| public |
| Modifier and Type | Method and Description |
|---|---|
| public AuthFuture | |
| private void | |
| protected AuthFuture | |
| private void | |
| private void | |
| public ClientSession | |
| public String | |
| public Map | getProperties()
Implements org. A map of properties that can be used to configure the SSH server or client. |
| public ClientSession | |
| protected void | preClose()
Overrides org. preClose is guaranteed to be called before doCloseGracefully or doCloseImmediately. |
| public void | process(int
The incoming command type cmd, Buffer The buffer)Buffer containing optional command parametersImplements org. Service the request. |
| protected void | processUserAuth(int
the command cmd, Buffer the input buffer, AuthFuture Buffer, with the reading position after the command bytethe authFuture)AuthFutureExecute one step in user authentication. |
| protected IoWriteFuture | |
| public void | |
| protected void | |
| protected AuthFuture |
| authFactories | back to summary |
|---|---|
| protected final List<UserAuthFactory> authFactories | |
| authFutureHolder | back to summary |
|---|---|
| protected final AtomicReference<AuthFuture> authFutureHolder The AuthFuture that is being used by the current auth request. It is set while an authentication is ongoing. | |
| clientMethods | back to summary |
|---|---|
| protected final List<String> clientMethods | |
| clientSession | back to summary |
|---|---|
| protected final ClientSessionImpl clientSession | |
| currentMethod | back to summary |
|---|---|
| private int currentMethod | |
| currentUserAuth | back to summary |
|---|---|
| private UserAuth currentUserAuth | |
| initialRequestSender | back to summary |
|---|---|
| private Runnable initialRequestSender | |
| initLock | back to summary |
|---|---|
| private final Object initLock | |
| properties | back to summary |
|---|---|
| private final Map<String, Object> properties | |
| pubkeyAuth | back to summary |
|---|---|
| private UserAuth pubkeyAuth | |
| serverMethods | back to summary |
|---|---|
| protected List<String> serverMethods | |
| service | back to summary |
|---|---|
| private String service | |
| started | back to summary |
|---|---|
| private boolean started | |
| ClientUserAuthService | back to summary |
|---|---|
| public ClientUserAuthService(Session s) | |
| auth | back to summary |
|---|---|
| public AuthFuture auth(String service) throws IOException | |
| clearUserAuth | back to summary |
|---|---|
| private void clearUserAuth() | |
| createAuthFuture | back to summary |
|---|---|
| protected AuthFuture createAuthFuture(ClientSession session, String service) throws IOException | |
| destroyPubkeyAuth | back to summary |
|---|---|
| private void destroyPubkeyAuth() | |
| destroyUserAuth | back to summary |
|---|---|
| private void destroyUserAuth() | |
| getClientSession | back to summary |
|---|---|
| public ClientSession getClientSession() Implements org.
| |
| getCurrentServiceName | back to summary |
|---|---|
| public String getCurrentServiceName() | |
| getProperties | back to summary |
|---|---|
| public Map Implements org. Doc from org. A map of properties that can be used to configure the SSH server or client. This map will never be changed by either the server or client and is not supposed to be changed at runtime (changes are not bound to have any effect on a running client or server), though it may affect the creation of sessions later as these values are usually not cached Note the type of the mapped property should match the expected configuration value type -
| |
| getSession | back to summary |
|---|---|
| public ClientSession getSession() Implements org.
| |
| preClose | back to summary |
|---|---|
| protected void preClose() Overrides org. Doc from org. preClose is guaranteed to be called before doCloseGracefully or doCloseImmediately. When preClose() is called, isClosing() == true
| |
| process | back to summary |
|---|---|
| public void process(int cmd, Buffer buffer) throws Exception Implements org. Doc from org. Service the request. | |
| processUserAuth | back to summary |
|---|---|
| protected void processUserAuth(int cmd, Buffer buffer, AuthFuture authFuture) throws Exception Execute one step in user authentication.
| |
| sendInitialAuthRequest | back to summary |
|---|---|
| protected IoWriteFuture sendInitialAuthRequest(ClientSession session, String service) throws IOException | |
| start | back to summary |
|---|---|
| public void start() Implements org.
| |
| tryNext | back to summary |
|---|---|
| protected void tryNext(int cmd, AuthFuture authFuture) throws Exception | |
| updateCurrentAuthFuture | back to summary |
|---|---|
| protected AuthFuture updateCurrentAuthFuture(ClientSession session, String service) throws IOException | |