Since: API level 13
public class

CreationParams

extends Object
implements Parcelable
java.lang.Object
   ↳ com.samsung.android.knox.container.CreationParams

Deprecated in API level 36
NOTE: This API is not available since Android 13.

Class Overview

Interface for building parameters to the create the Container.

Since
API level 13
KNOX 2.2

Summary

[Expand]
Inherited Constants
From interface android.os.Parcelable
Public Constructors
CreationParams()
Public Methods
void setAdminPackageName(String packageName)
API to set the administrator package name used in the container creation.
void setConfigurationName(String configurationName)
API to set the configuration name used in the container creation.
void setPasswordResetToken(String token)
API to enable the sensitive data protection for the container.
[Expand]
Inherited Methods
From class java.lang.Object
From interface android.os.Parcelable

Public Constructors

public CreationParams ()

Since: API level 13

Public Methods

public void setAdminPackageName (String packageName)

Since: API level 13

API to set the administrator package name used in the container creation. As part of creation process, framework will install and activate the app with passed package name as admin inside the container. Then ownership of container gets transferred to the admin app installed inside container from the creator application. Creator of the container looses all claims on the container and will not be able to apply any policy at all.

NOTE: Currently device administrator should pass its own package name to install inside container. Device administrator application data will be restored to application installed inside container.

Please look at doSelfUninstall() for post container creation steps.

Parameters
packageName The package name of the administrator application to whom container ownership will be transferred.
Since
API level 13
KNOX 2.2

public void setConfigurationName (String configurationName)

Since: API level 13

API to set the configuration name used in the container creation.

Parameters
configurationName The unique name used to identify configuration getName().
Since
API level 13
KNOX 2.2

public void setPasswordResetToken (String token)

Since: API level 13

API to enable the sensitive data protection for the container. The key used by administrator in this API should be stored and is mandatory in order to reset the container password through resetContainerPassword(String, int) at later point.

Since
API level 13
KNOX 2.2