com.ibm.security.access.mobile.authentication

Class PendingTransactionsResult

  • java.lang.Object
    • com.ibm.security.access.mobile.authentication.PendingTransactionsResult
  • All Implemented Interfaces:
    IResult


    public final class PendingTransactionsResult
    extends java.lang.Object
    implements IResult
    Holds the result of the pending transactions.
    Since:
    1.2.0
    Version:
    1.2.8
    • Constructor Detail

      • PendingTransactionsResult

        public PendingTransactionsResult(PendingTransaction[] transactions,
                                         int pendingTransactionCount)
        Returns an instance of PendingTransactionsResult, containing an array of PendingTransaction.
        Parameters:
        transactions - an array of PendingTransactions
        pendingTransactionCount - the count of all pending transactions
        Throws:
        java.lang.IllegalArgumentException - if any parameter is null
      • PendingTransactionsResult

        public PendingTransactionsResult(MobileKitException mobileKitException,
                                         int pendingTransactionCount)
        Returns a new PendingTransactionsResult containing the exception and the count of pending transactions.
        Parameters:
        mobileKitException - the MobileKitException representing the error
        pendingTransactionCount - the count of all pending transactions
      • PendingTransactionsResult

        public PendingTransactionsResult(MobileKitException mobileKitException)
        Returns a new PendingTransactionsResult containing the exception.
        Parameters:
        mobileKitException - the MobileKitException representing the error
    • Method Detail

      • getPendingTransactionCount

        public int getPendingTransactionCount()
        The count of all pending transactions.
        Returns:
        the count of all pending transactions
        Note:
        The value is representative of all pending transactions.
      • hasError

        public boolean hasError()
        Returns whether to indicate an error.
        Returns:
        true if there has been an error,
        false otherwise
      • getMobileKitException

        public MobileKitException getMobileKitException()
        Returns the exception object, representing the error.
        Specified by:
        getMobileKitException in interface IResult
        Returns:
        the exception object, representing the error
      • getErrorDescription

        public java.lang.String getErrorDescription()
        Returns detailed information about the error.
        Specified by:
        getErrorDescription in interface IResult
        Returns:
        the detailed information of the error or null if unknown.