Intel

Developer Zone

AdminManager

com.intel.security.dalinterface

Class AdminManager

  • java.lang.Object
    • com.intel.security.dalinterface.AdminManager


  • public final class AdminManager
    extends java.lang.Object
    AdmimManager implements DAL Administration API-s
    • Method Detail

      • getInstance

        public static final AdminManager getInstance(Context ctx)
        Retrieves static AdminMctxanager instance
        Parameters:
        ctx - - Activity Context
        Returns:
        AdminManager instance
        Throws:
        java.lang.RuntimeException - from class constructor
      • createTrustedAppFromFile

        public final TrustedApp createTrustedAppFromFile(java.lang.String trustedAppId,
                                          java.lang.String trustedAppPath)
                                                  throws java.lang.IllegalArgumentException
        Creates Trusted Application instance for application, stored in File System
        Parameters:
        trustedAppId - - Trusted Application ID
        trustedAppPath - - Trusted Application File System path
        Returns:
        TrustedApp instance
        Throws:
        java.lang.IllegalArgumentException
      • createTrustedAppFromAsset

        public final TrustedApp createTrustedAppFromAsset(Context context,
                                           java.lang.String trustedAppId,
                                           java.lang.String trustedAppPath)
                                                   throws java.lang.IllegalArgumentException,
                                                          java.io.IOException
        Creates Trusted Application instance for application, stored as assets resource
        Parameters:
        trustedAppId - - Trusted Application ID
        trustedAppPath - - application path from assets/
        Returns:
        TrustedApp instance
        Throws:
        java.lang.IllegalArgumentException
        java.io.IOException
        java.lang.RuntimeException
      • installTrustedApp

        public final int installTrustedApp(TrustedApp app)
        Install Trusted Application API
        Parameters:
        app - - TrustedApp Class instance
        Returns:
        transaction result or encoded exception, defined in DalConstants Class
      • uninstallTrustedApp

        public final int uninstallTrustedApp(TrustedApp app)
        Uninstall Trusted Application API
        Parameters:
        app - - TrustedApp Class instance
        Returns:
        transaction result or encoded exception, defined in DalConstants Class
      • uninstallTrustedApp

        public final int uninstallTrustedApp(java.lang.String trustedAppId)
        Uninstall Trusted Application API
        Parameters:
        trustedAppId - - Trusted Application ID
        Returns:
        transaction result or encoded exception, defined in DalConstants Class
      • getVersionInfo

        public final DalVersion getVersionInfo()
        Get DAL FW & SW version API
        Returns:
        DalVersion Class instance or null on transaction error or exception