org.eclipse.higgins.rp
Interface ResultCallback


public interface ResultCallback


Field Summary
static int RP_AUTHENTICATION_FAILURE
          Failure of the authentication process
static int RP_AUTHENTICATION_INTERNAL_ERROR
          Error condition in the authentication protocol state machine
static int RP_AUTHENTICATION_TIMEOUT
          Timeout condition in the authentication protocol state machine
 
Method Summary
 void handleFailure(int errCode)
          Callback for authentication process failure.
 void handleFailure(int errorCode, Throwable rootCause)
          Callback for authentication process failure.
 void handleSuccess(String protectedResource, RPSecurityToken authenticationResult)
          Callback on success of authentication process
 

Field Detail

RP_AUTHENTICATION_FAILURE

static final int RP_AUTHENTICATION_FAILURE
Failure of the authentication process

See Also:
Constant Field Values

RP_AUTHENTICATION_TIMEOUT

static final int RP_AUTHENTICATION_TIMEOUT
Timeout condition in the authentication protocol state machine

See Also:
Constant Field Values

RP_AUTHENTICATION_INTERNAL_ERROR

static final int RP_AUTHENTICATION_INTERNAL_ERROR
Error condition in the authentication protocol state machine

See Also:
Constant Field Values
Method Detail

handleFailure

void handleFailure(int errCode)
Callback for authentication process failure.

Parameters:
errCode - indication of what the reason for error was.

handleFailure

void handleFailure(int errorCode,
                   Throwable rootCause)
Callback for authentication process failure. Also includes the root casue of error

Parameters:
errCode - indication of what the reason for error was.
rootCause - of error

handleSuccess

void handleSuccess(String protectedResource,
                   RPSecurityToken authenticationResult)
Callback on success of authentication process

Parameters:
authSession - the authentication session
protectedResource - is the resource trigerring authentication
authenticationResult - is a token which contains the result of authentication RPSecurityToken