Class MMFATransactionData

java.lang.Object
com.tivoli.am.fim.registrations.local.MMFATransactionData

public class MMFATransactionData extends Object
A class representing a Mobile Multi-Factor Authenticator transaction.
  • Constructor Details

    • MMFATransactionData

      public MMFATransactionData(TransactionData txn)
  • Method Details

    • getTransactionId

      public String getTransactionId()
      Get the transaction uuid.
      Returns:
      The uuid of the MMFA transaction.
    • getUsername

      public String getUsername()
      Get username for user who initiated this transaction.
      Returns:
      The username associated with the MMFA transaction
    • getCreationTime

      public String getCreationTime()
      Get the time stamp when this transaction was first created. Time is returned as a unix timestamp
      Returns:
      The UNIX timestamp when this transaction was created
    • getLastActivityTime

      public String getLastActivityTime()
      Get the time when this transaction was last updated. Time is returned as a unix timestamp.
      Returns:
      The UNIX timestamp when this transaction was last updated.
    • getAuthenticationPolicyURI

      public String getAuthenticationPolicyURI()
      Get the authentication policy URI which much be completed to verify this transaction.
      Returns:
      The authentication policy used to complete this transaction
    • getRequestURL

      public String getRequestURL()
      Get the AuthSvc URL which can be used by a MMFA client to verify this transaction.
      Returns:
      The URL used by a MMFA client to verify this transaction.
    • getAction

      public String getAction()
      Get the HTTP action required to complete this transaction.
      Returns:
      The action of the MMFA client to complete this transaction.
    • getResult

      public String getResult()
      Get the current result state of the transaction. valid values are "SUCCESS", "FAIL" and "PENDING"
      Returns:
      The current result of this MMFA transaction
    • getAttributeNames

      public String[] getAttributeNames()
      Method to obtian a list of the transaction attribute names associated with this transaction id.
      Returns:
      The list of attribute names. If no attributes exist then an empty array is returned.
    • getAttributeValues

      public String[] getAttributeValues(String attrName)
      Method to obtain a transaction attribute values by its attribute name.
      Parameters:
      attrName -
      Returns:
      The attribute value or null if the attribute or the contained attribute value is not present.
    • toJson

      public JSONObject toJson()
      Get a JSON formatted representation of this MMFATransactionData. Example:
       {
           "id" : "41bbd12e-bad2-11ec-9eda-f875a41e1504",
           "result": "PENDING",
           "username": "testuser",
           "creation": "1649817345"
           "last_update": "1649817345",
           "authentication_policy": "urn:ibm:security:authentication:asf:mmfa_fingerprint",
           "request_url": "https://www.myidp.ibm.com/mga/sps/apiauthsvc/mmfa_fingerprint",
           "action": "POST",
           "attributes": [{"amount":"$10000AUD"}]
       }
       
      Returns:
      A JSONObject representation of this MMFA transaction.
      See Also:
    • equals

      public boolean equals(Object o)
      A MMFA transaction is equal if the transaction uuid is the same.
      Overrides:
      equals in class Object
      Parameters:
      o - Object to test equality for.
      Returns:
      true if object has the same transaction uuid as this transaction; otherwise false.
    • toString

      public String toString()
      Overrides:
      toString in class Object