|
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.AbstractAuthenticationRequest
public abstract class AbstractAuthenticationRequest
Common authentication request implementation.
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 |
Method Summary | |
---|---|
abstract java.lang.Object |
clone()
Clones request instance. |
java.lang.String |
getBanner()
Returns server authentication banner if any. |
java.lang.Throwable |
getError()
|
java.lang.String |
getServiceName()
Returns target SSH service name. |
TransportClient |
getTransportSession()
Returns underlayed SSH transport session. |
User |
getUser()
Returns user to be authenticated. |
boolean |
isSuccessful()
Checks if request was successful. |
boolean |
isValid()
Checks if all needed request parameters are set and request is ready for execution. |
void |
setServiceName(java.lang.String name)
Sets target SSH service name. |
void |
setTransportSession(TransportClient session)
Sets underlayed SSH transport session. |
void |
setUser(User user)
Sets target user. |
Methods inherited from class com.jscape.util.task.AbstractTask |
---|
cancel, getListener, getName, isCanceled, isDone, 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 |
---|
cancel, isDone, isStarted |
Methods inherited from interface java.lang.Runnable |
---|
run |
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 session)
AuthenticationRequest
setTransportSession
in interface AuthenticationRequest
session
- 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 java.lang.Throwable getError()
getError
in interface AuthenticationRequest
public abstract java.lang.Object clone()
AuthenticationRequest
clone
in interface AuthenticationRequest
clone
in class java.lang.Object
|
Secure iNet Factory | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |