FuturaeDebugUtil

public class FuturaeDebugUtil

Utility object to facilitate testing of SDK corrupted storage or cryptographic material. It exposes a set of functions that can be used to delete key material, clear encrypted storage and corrupt the Database.

These operations are VERY destructive for the SDK and should be used for debugging and testing only. Using these on production will leave your SDK unusable.

Properties

Link copied to clipboard
public final static FuturaeDebugUtil INSTANCE
Link copied to clipboard
public final static String TAG

Functions

Link copied to clipboard
public final Unit clearEncryptedTokens()

Clears all of the SDK's encrypted tokens. This will lead to SDK operation failures, including failure to launch.

Link copied to clipboard
public final Unit corruptDBTokens(Context context)

Corrupts the DB by erasing the account's encrypted tokens stored in the SDK's database. This will lead to SDK operation failures, including failure to launch.

Link copied to clipboard
public final Unit corruptEncryptedStorageKey(Context context)

Clears the SDK's v2 encrypted storage key. This operation will render some SDK operations unusable.

Link copied to clipboard
public final Unit corruptV1Keys(Context context)

Clears the SDK's v1 legacy cryptographic keys. This operation is valid only when migrating a previous SDK v1 installation to v2.

Link copied to clipboard
public final Unit corruptV2Keys(Context context)

Clears the SDK's v2 cryptographic keys. This operation will render the SDK unusable.