|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jscape.util.task.AbstractTask
com.jscape.inet.ssh.authentication.requests.UserDataBasedRequest
public class UserDataBasedRequest
This complex request tries to authenticate the user basing on available user information: if user data contains key pair it tries to perform "publickey" authentication. If that fails it tries to perform "password" method. If that fails this request tries to perform "keyboard-interactive" method with assumption that server asks only for user password.
Nested Class Summary |
---|
Nested classes/interfaces inherited from class com.jscape.util.task.AbstractTask |
---|
com.jscape.util.task.AbstractTask.Listener, com.jscape.util.task.AbstractTask.TaskCanceledException |
Constructor Summary | |
---|---|
UserDataBasedRequest()
|
|
UserDataBasedRequest(UserDataBasedRequest that)
|
Method Summary | |
---|---|
void |
cancel()
Cancels task execution. |
java.lang.Object |
clone()
Clones request instance. |
java.lang.String |
getBanner()
Returns server authentication banner if any. |
java.lang.Throwable |
getError()
|
long |
getRequestsPause()
|
java.lang.String |
getServiceName()
Returns target SSH service name. |
TransportClient |
getTransportSession()
Returns underlayed SSH transport session. |
User |
getUser()
Returns user to be authenticated. |
boolean |
isDone()
Checks if task is done. |
boolean |
isSuccessful()
Checks if request was successful. |
boolean |
isValid()
Checks if all needed request parameters are set and request is ready for execution. |
void |
setRequestsPause(long requestsPause)
|
void |
setServiceName(java.lang.String name)
Sets target SSH service name. |
void |
setTransportSession(TransportClient client)
Sets underlayed SSH transport session. |
void |
setUser(User user)
Sets target user. |
Methods inherited from class com.jscape.util.task.AbstractTask |
---|
getListener, getName, isCanceled, isStarted, resetCancel, run, setListener, waitUntilDone, waitUntilDone, waitUntilDoneOrCanceled, waitUntilStarted, waitUntilStarted |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface com.jscape.util.task.Task |
---|
isStarted |
Methods inherited from interface java.lang.Runnable |
---|
run |
Constructor Detail |
---|
public UserDataBasedRequest()
public UserDataBasedRequest(UserDataBasedRequest that)
Method Detail |
---|
public User getUser()
AuthenticationRequest
getUser
in interface AuthenticationRequest
public void setUser(User user)
AuthenticationRequest
setUser
in interface AuthenticationRequest
user
- user to be authenticatedpublic java.lang.String getServiceName()
AuthenticationRequest
getServiceName
in interface AuthenticationRequest
public void setServiceName(java.lang.String name)
AuthenticationRequest
setServiceName
in interface AuthenticationRequest
name
- target SSH service namepublic TransportClient getTransportSession()
AuthenticationRequest
getTransportSession
in interface AuthenticationRequest
public void setTransportSession(TransportClient client)
AuthenticationRequest
setTransportSession
in interface AuthenticationRequest
client
- underlayed SSH transport sessionpublic boolean isSuccessful()
AuthenticationRequest
isSuccessful
in interface AuthenticationRequest
true
if request was successful;
false
otherwisepublic boolean isValid()
AuthenticationRequest
isValid
in interface AuthenticationRequest
true
if request is ready for execution;
false
otherwisepublic java.lang.String getBanner()
AuthenticationRequest
getBanner
in interface AuthenticationRequest
public long getRequestsPause()
public void setRequestsPause(long requestsPause)
public java.lang.Object clone()
AuthenticationRequest
clone
in interface AuthenticationRequest
clone
in class java.lang.Object
public boolean isDone()
Task
isDone
in interface Task
isDone
in class com.jscape.util.task.AbstractTask
true
if task is done;
false
otherwisepublic void cancel()
Task
cancel
in interface Task
cancel
in class com.jscape.util.task.AbstractTask
public java.lang.Throwable getError()
getError
in interface AuthenticationRequest
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |