java.lang.Object | ||
↳ | javax.crypto.KeyAgreementSpi | |
↳ | com.samsung.android.knox.ucm.plugin.agent.UcmAgentProviderImpl.UcmAgentKeyAgreementSpi |
This class provides API's extended from KeyAgreementSpi. If vendor wants to support KeyAgreement as JCE, plugin application should implement this Spi and add as Service Provider.
API level 39 |
KNOX 3.12 |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Standard KeyAgreement API
| |||||||||||
Standard KeyAgreement API
| |||||||||||
Standard KeyAgreement API
| |||||||||||
Standard KeyAgreement API
| |||||||||||
Standard KeyAgreement API
| |||||||||||
Standard KeyAgreement 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 | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Standard KeyAgreement API
API level 39 |
KNOX 3.12 |
Standard KeyAgreement API
API level 39 |
KNOX 3.12 |
Standard KeyAgreement API
API level 39 |
KNOX 3.12 |
Standard KeyAgreement API
API level 39 |
KNOX 3.12 |
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 SimpleUcmAgentKeyGeneratorSpi extends UcmAgentProviderImpl.UcmAgentKeyGeneratorSpi { public SimpleUcmAgentKeyGeneratorSpi(Context ctx, String algorithm) { 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 39 |
KNOX 3.12 |
Global Scope |
API to set the error code(if any) which will be forwarded to calling application via UCM framework.
public class SimpleUcmAgentKeyGeneratorSpi extends UcmAgentProviderImpl.UcmAgentKeyGeneratorSpi { public void generateKey() { ... setErrorCode(UcmAgentService.ERROR_EMPTY_PARAMETER); ... } }
error | Error code |
---|
API level 39 |
KNOX 3.12 |
Global Scope |