Since: API level 20
public static interface

UcmAgentProviderImpl.UcmAgentSpiProperty

com.samsung.android.knox.ucm.plugin.agent.UcmAgentProviderImpl.UcmAgentSpiProperty
Known Indirect Subclasses

Class Overview

This interface provide API's and constants which is implemented by UCM SPI classes.

Since
API level 20
KNOX 2.7

Summary

Constants
String KEY_ADMIN_ID Key value of User ID
String KEY_ALGORITHM Key value of Algorithm
String KEY_CALLER_UID Key value of caller UID
String KEY_ENTRY_TYPE Key value of ENTRY TYPE: PRIVATEKEY/SECRETKEY/CACERT
String KEY_EXTRA_ARGS Bundle extra bundle passed
String KEY_ISALLOWWIFI Key value of whether wifi is allowed
String KEY_ISMANAGED Key value of whether Credential Storage is managed
String KEY_IS_CALLER_MDM Key value of whether caller is MDM
String KEY_KEYSIZE Key value of Key size for key generation
String KEY_OWNER_ID Key value of owner of the keystore (not required)
String KEY_RENEW_CERT Key value of renew certificate
String KEY_RESOURCE_ID Key value of Resource ID.
String KEY_USER_ID Key value of user space
int PRIVATE_RESOURCE PRIVATE RESOURCE type, owned and accessed only by the same caller UID
int SHARED_KEYCHAIN_RESOURCE KEYCHAIN RESOURCE type, can be accessed by different UID
int SHARED_WIFI_RESOURCE WIFI resources type, can only be accessed by WIFI UID.
int UCS_ALL_RESOURCE Any Resource type (Keychanin, Keystore, wifi)
Public Methods
abstract Bundle getProperty()
API to get the properties set by UCM framework during SPI call.
abstract void setErrorCode(int error)
API to set the error code(if any) which will be forwarded to calling application via UCM framework.

Constants

public static final String KEY_ADMIN_ID

Since: API level 20

Key value of User ID

Since
API level 20
KNOX 2.7
Constant Value: "admin_id"

public static final String KEY_ALGORITHM

Since: API level 20

Key value of Algorithm

Since
API level 20
KNOX 2.7
Constant Value: "algorithm"

public static final String KEY_CALLER_UID

Since: API level 20

Key value of caller UID

Since
API level 20
KNOX 2.7
Constant Value: "callerUid"

public static final String KEY_ENTRY_TYPE

Since: API level 20

Key value of ENTRY TYPE: PRIVATEKEY/SECRETKEY/CACERT

Since
API level 20
KNOX 2.7
Constant Value: "entryType"

public static final String KEY_EXTRA_ARGS

Since: API level 20

Bundle extra bundle passed

Since
API level 20
KNOX 2.7
Constant Value: "extraArgs"

public static final String KEY_ISALLOWWIFI

Since: API level 20

Key value of whether wifi is allowed

Since
API level 20
KNOX 2.7
Constant Value: "allow_wifi"

public static final String KEY_ISMANAGED

Since: API level 20

Key value of whether Credential Storage is managed

Since
API level 20
KNOX 2.7
Constant Value: "ismanaged"

public static final String KEY_IS_CALLER_MDM

Since: API level 20

Key value of whether caller is MDM

Since
API level 20
KNOX 2.7
Constant Value: "ismdm"

public static final String KEY_KEYSIZE

Since: API level 20

Key value of Key size for key generation

Since
API level 20
KNOX 2.7
Constant Value: "keysize"

public static final String KEY_OWNER_ID

Since: API level 20

Key value of owner of the keystore (not required)

Since
API level 20
KNOX 2.7
Constant Value: "ownerUid"

public static final String KEY_RENEW_CERT

Since: API level 20

Key value of renew certificate

Since
API level 20
KNOX 2.7
Constant Value: "renew"

public static final String KEY_RESOURCE_ID

Since: API level 20

Key value of Resource ID. One of PRIVATE_RESOURCE, SHARED_KEYCHAIN_RESOURCE, SHARED_WIFI_RESOURCE

Since
API level 20
KNOX 2.7
Constant Value: "resource"

public static final String KEY_USER_ID

Since: API level 20

Key value of user space

Since
API level 20
KNOX 2.7
Constant Value: "user_id"

public static final int PRIVATE_RESOURCE

Since: API level 20

PRIVATE RESOURCE type, owned and accessed only by the same caller UID

Since
API level 20
KNOX 2.7
Constant Value: 2 (0x00000002)

public static final int SHARED_KEYCHAIN_RESOURCE

Since: API level 20

KEYCHAIN RESOURCE type, can be accessed by different UID

Since
API level 20
KNOX 2.7
Constant Value: 1 (0x00000001)

public static final int SHARED_WIFI_RESOURCE

Since: API level 20

WIFI resources type, can only be accessed by WIFI UID.

Since
API level 20
KNOX 2.7
Constant Value: 3 (0x00000003)

public static final int UCS_ALL_RESOURCE

Since: API level 20

Any Resource type (Keychanin, Keystore, wifi)

Since
API level 20
KNOX 2.7
Constant Value: 4 (0x00000004)

Public Methods

public abstract Bundle getProperty ()

Since: API level 20

API to get the properties set by UCM framework during SPI call.

Returns
  • Bundle calling application information
Since
API level 20
KNOX 2.7

public abstract void setErrorCode (int error)

Since: API level 20

API to set the error code(if any) which will be forwarded to calling application via UCM framework.

Parameters
error Error code
Since
API level 20
KNOX 2.7