Class MMFATransactionData
java.lang.Object
com.tivoli.am.fim.registrations.local.MMFATransactionData
A class representing a Mobile Multi-Factor Authenticator transaction.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionboolean
A MMFA transaction is equal if the transaction uuid is the same.Get the HTTP action required to complete this transaction.String[]
Method to obtian a list of the transaction attribute names associated with this transaction id.String[]
getAttributeValues
(String attrName) Method to obtain a transaction attribute values by its attribute name.Get the authentication policy URI which much be completed to verify this transaction.Get the time stamp when this transaction was first created.Get the time when this transaction was last updated.Get the AuthSvc URL which can be used by a MMFA client to verify this transaction.Get the current result state of the transaction. valid values are "SUCCESS", "FAIL" and "PENDING"Get the transaction uuid.Get username for user who initiated this transaction.JSONObject
toJson()
Get a JSON formatted representation of this MMFATransactionData.toString()
-
Constructor Details
-
MMFATransactionData
public MMFATransactionData(TransactionData txn)
-
-
Method Details
-
getTransactionId
Get the transaction uuid.- Returns:
- The uuid of the MMFA transaction.
-
getUsername
Get username for user who initiated this transaction.- Returns:
- The username associated with the MMFA transaction
-
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
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
Get the authentication policy URI which much be completed to verify this transaction.- Returns:
- The authentication policy used to complete this transaction
-
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
Get the HTTP action required to complete this transaction.- Returns:
- The action of the MMFA client to complete this transaction.
-
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
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
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
A MMFA transaction is equal if the transaction uuid is the same. -
toString
-