STWSecurityManager

open class STWSecurityManager

The security manager is a class that allows applications to check the security policy. It allows an application to determine, before performing a possibly unsafe or sensitive operation, to check the device security status based on two configuration flags can be configured using the STWConfiguration builder.

  • Vulnerability Checker : whether the device is rooted (or have a security issue) or not
  • Secure Storage Checker : whether the device storage is encrypted and the security keyguard (PIN, pattern, password, ...) exist

Functions

Link copied to clipboard
open fun checkSecurityStatus(@NonNull context: Context): String
This method is used to check if the application is installed and executed on a safety device.
Link copied to clipboard
open fun checkSecurityStatusAsynchronously(@NonNull owner: LifecycleOwner, @NonNull callback: ISecurityStatusCallback): UUID
This method is used to check if the application is installed and executed on a safety device.
Link copied to clipboard
open fun getInstance(): STWSecurityManager