Skip to main content

Models

Here you can find some helpful models used in the SDK.

Envelope

The model Envelope can be found on com.securityside.trustfactor.util.crypto namespace. Contains an encrypted message, the receiver and sender keys and the payload signature

Device Info

The model DeviceInfo can be found on com.securityside.trustfactor.model.device package.

AttributeDescription
nameDevice’s name (configured by the user on the Agent)
manufacturerDevice’s manufacturer
osDevice’s operating system (“Android”/“iOS”)
osVersionDevice’s operating system version

Meta Data

The MetaData model for transactions v3 can be found on
com.securityside.trustfactor.model.transaction.creation.v3.auxiliary package. Contains transaction’s metadata.

AttributeDescription
timestampShould contain the application timestamp when the transaction was created
userAgentShould contain the user’s UserAgent of the request that initiated the transaction creation flow
platformUser’s operating system
channelApplication channel used. Useful for applications that have Web/Mobile channels
sourceIPUser’s IP either IPv4 or IPv6

Core

The Core model for transactions v3 can be found on com.securityside.trustfactor.model.transaction.creation.v3 package.

AttributeDescription
metadataTransaction’s metadata

Transaction’s core contains basic information needed to create any type of transaction.

Message Engine

The MessageEngine model for transactions v3 can be found on
com.securityside.trustfactor.model.transaction.creation.v3.auxiliary package.

AttributeDescription
languageOverrides the preferred language defined in the Operation
messageSpecifies the message that should be displayed on user’s agent. It will override the message template engine or any operation defined message. msgIdentifier should be null or empty if this field is filled.
msgIdentifierSpecifies the operation’s defined template message to use

The MessageEngine object in the transactions is used to easily show messages to the user. There are two ways to do that, the simplest way is to fill the field message with the intended message. The other way is to fill the msgIdentifier with the identifier of a message created within the operation referenced on the action field of the transaction. This message identifier is retrieved through the backoffice Operations menu. MessageEngine can only be used with NORMAL_TRANSACTION and ACTIONABLE_TRANSACTION types, since they are the only ones that take a predefined operation on the backoffice.

Confirmation Code Settings

The ConfirmationCodeSettings model for transactions v3 can be found on
com.securityside.trustfactor.model.transaction.creation.v3 package.

AttributeDescription
optionsNumber of confirmation code options presented to the user on the Agent
digitsNumber of digits of each confirmation code

The ConfirmationCodeSettings object customizes the confirmation codes generated for a transaction created with requireConfirmationCode enabled. When omitted, the TrustFactor services use the default settings.

Confirmation Code

The ConfirmationCode model can be found on com.securityside.trustfactor.client.request.transaction package.

AttributeDescription
codeThe correct confirmation code the user must select on the Agent to approve the transaction
optionsAll the confirmation code options presented to the user on the Agent

The ConfirmationCode object is returned in the transaction creation response when the transaction was created with requireConfirmationCode enabled. The application should display the correct code to the user, so he can select it on the Agent when deciding the transaction.