java.lang.Object | ||
↳ | java.security.KeyStoreSpi | |
↳ | com.samsung.android.knox.ucm.plugin.agent.UcmAgentProviderImpl.UcmAgentKeyStoreSpi |
This class provide API's extended from KeyStoreSpi. If vendor want to support KeyStore as JCE, plugin application should implement this Spi and add as Service Provider.
API level 20 |
KNOX 2.7 |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From interface
com.samsung.android.knox.ucm.plugin.agent.UcmAgentProviderImpl.UcmAgentSpiProperty
|
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Standard KeyStore API.
| |||||||||||
Standard KeyStore API.
| |||||||||||
Standard KeyStore API.
| |||||||||||
Standard KeyStore API.
| |||||||||||
Standard KeyStore API.
| |||||||||||
Standard KeyStore API.
| |||||||||||
Standard KeyStore API.
| |||||||||||
Standard KeyStore API.
| |||||||||||
Standard KeyStore API.
| |||||||||||
API to get the properties set by UCM framework during SPI call.
| |||||||||||
API to set the error code(if any) which will be forwarded to calling application via UCM framework.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.security.KeyStoreSpi
| |||||||||||
From class
java.lang.Object
| |||||||||||
From interface
com.samsung.android.knox.ucm.plugin.agent.UcmAgentProviderImpl.UcmAgentSpiProperty
|
Standard KeyStore API.
API level 20 |
KNOX 2.7 |
Standard KeyStore API.
API level 20 |
KNOX 2.7 |
Standard KeyStore API.
API level 20 |
KNOX 2.7 |
Standard KeyStore API.
API level 20 |
KNOX 2.7 |
Standard KeyStore API.
API level 20 |
KNOX 2.7 |
API to get the properties set by UCM framework during SPI call.
To perform crypto operation properly, plugin application should know caller information.
Plugin application can use this API to get caller user Id, resource Id, caller application Uid and owner Id
public class SimpleKeyStoreSpi extends UcmAgentProviderImpl.UcmAgentKeyStoreSpi { public SimpleKeyStoreSpi(Context ctx) { Bundle bundle = getProperty(); int userId = bundle.getInt(UcmAgentSpiProperty.KEY_USER_ID, -1)); int resourceId = bundle.getInt(UcmAgentSpiProperty.KEY_RESOURCE_ID , -1)); int callerId = bundle.getInt(UcmAgentSpiProperty.KEY_CALLER_UID , -1)); } } |
API level 20 |
KNOX 2.7 |
Global Scope |
API to set the error code(if any) which will be forwarded to calling application via UCM framework.
public class SimpleUcmAgentKeyStoreSpi extends UcmAgentProviderImpl.UcmAgentKeyStoreSpi { public void engineGetCertificateChain(String alias) { ... setErrorCode(UcmAgentService.ERROR_ALIAS_NOT_FOUND); ... } }
error | Error code |
---|
API level 20 |
KNOX 2.7 |
Global Scope |