org.idoox.security
Class AuthResult

java.lang.Object
  extended byorg.idoox.security.AuthResult

public final class AuthResult
extends java.lang.Object

Class used by PrincipalAuthenticator interface to return output parameters

Since:
3.0
Component:
Security-Core

Field Summary
static int AUTH_STATUS_CONTINUE
           
static int AUTH_STATUS_FAILURE
           
static int AUTH_STATUS_SUCCESS
          Possible values for the resultCode attribute
 byte[] continuationData
          Continuation data - used in multi-round authentication process
 Credentials creds
          Returned credentials (may be incomplete, dependend on the result code)
 RuntimeWrappedException errorReason
          This exception shows reason of error if resultCode has value AUTH_STATUS_FAILURE.
 int resultCode
          The result code of the call
 
Constructor Summary
AuthResult()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

AUTH_STATUS_SUCCESS

public static final int AUTH_STATUS_SUCCESS
Possible values for the resultCode attribute

See Also:
Constant Field Values

AUTH_STATUS_FAILURE

public static final int AUTH_STATUS_FAILURE
See Also:
Constant Field Values

AUTH_STATUS_CONTINUE

public static final int AUTH_STATUS_CONTINUE
See Also:
Constant Field Values

resultCode

public int resultCode
The result code of the call


creds

public Credentials creds
Returned credentials (may be incomplete, dependend on the result code)


continuationData

public byte[] continuationData
Continuation data - used in multi-round authentication process


errorReason

public RuntimeWrappedException errorReason
This exception shows reason of error if resultCode has value AUTH_STATUS_FAILURE. Remember that if an exception is instanceof RunimeWrppedException, it is possible to get unwrapped original exception.

Constructor Detail

AuthResult

public AuthResult()