Constructor and Description |
---|
ChallengeResult(boolean status,
MobileKitException mobileKitException,
IChallenge nextChallenge)
Returns a new ChallengeResult, containing a flag to indicate the challenge status, a message
associated with the status and the next challenge.
|
ChallengeResult(IChallenge nextChallenge)
Returns a new ChallengeResult, containing the next challenge.
|
ChallengeResult(MobileKitException mobileKitException)
Returns a new ChallengeResult in case an error was returned
|
ChallengeResult(MobileKitException mobileKitException,
IChallenge nextChallenge)
Returns a new ChallengeResult, containing a message
associated with the status and the next challenge.
|
Modifier and Type | Method and Description |
---|---|
java.lang.String |
getErrorDescription()
Returns detailed information about the error.
|
MobileKitException |
getMobileKitException()
Returns the mobileKitException object, representing the error.
|
IChallenge |
getNextChallenge()
Returns next challenge mechanism dictated by policy.
|
boolean |
getStatus()
Returns whether to indicate the status of the verification result
|
boolean |
hasError()
Returns whether to indicate an error.
|
java.lang.String |
toString()
Returns a textually representation of the instance with attribute names and values.
|
public ChallengeResult(boolean status, MobileKitException mobileKitException, IChallenge nextChallenge)
status
- flag to indicate is the verificationmobileKitException
- the MobileKitException
that was thrownnextChallenge
- next challenge mechanism dictated by policypublic ChallengeResult(MobileKitException mobileKitException, IChallenge nextChallenge)
mobileKitException
- the MobileKitException
that was thrownnextChallenge
- next challenge mechanism dictated by policypublic ChallengeResult(IChallenge nextChallenge)
nextChallenge
- next challenge mechanism dictated by policypublic ChallengeResult(MobileKitException mobileKitException)
mobileKitException
- the MobileKitException
that was thrownpublic boolean getStatus()
public boolean hasError()
public MobileKitException getMobileKitException()
getMobileKitException
in interface IResult
MobileKitException
object, representing the errorpublic java.lang.String getErrorDescription()
getErrorDescription
in interface IResult
public IChallenge getNextChallenge()
public java.lang.String toString()
toString
in class java.lang.Object