java.lang.Object | |
↳ | com.sec.biometric.license.SecBiometricLicenseManager |
This class provides APIs to activate ISV license on device
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
String | ACTION_LICENSE_STATUS | Broadcast Action : Sent to inform application about result of License activation or validation result. | |||||||||
int | ERROR_INTERNAL | Internal error. | |||||||||
int | ERROR_INTERNAL_SERVER | Internal server error. | |||||||||
int | ERROR_INVALID_LICENSE | Invalid license. | |||||||||
int | ERROR_INVALID_PACKAGE_NAME | Invalid package name. | |||||||||
int | ERROR_LICENSE_TERMINATED | License terminated. | |||||||||
int | ERROR_NETWORK_DISCONNECTED | Network disconnected. | |||||||||
int | ERROR_NETWORK_GENERAL | General network error. | |||||||||
int | ERROR_NONE | Success. | |||||||||
int | ERROR_NOT_CURRENT_DATE | Not current date. | |||||||||
int | ERROR_NULL_PARAMS | Null parameter. | |||||||||
int | ERROR_UNKNOWN | Unknown error. | |||||||||
int | ERROR_USER_DISAGREES_LICENSE_AGREEMENT | User disagrees License agreement. | |||||||||
String | EXTRA_LICENSE_ERROR_CODE | Used as an integer extra field with ACTION_LICENSE_STATUS . |
|||||||||
String | EXTRA_LICENSE_RESULT_TYPE | Used as integer extra field with ACTION_LICENSE_STATUS . |
|||||||||
String | EXTRA_LICENSE_STATUS | Used as string extra field with ACTION_LICENSE_STATUS . |
|||||||||
int | LICENSE_RESULT_TYPE_ACTIVATION | Result Activation. | |||||||||
int | LICENSE_RESULT_TYPE_VALIDATION | Result Validation. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
API to activate ISV license.
| |||||||||||
API to create an instance of SecBiometricLicenseManager class.
| |||||||||||
API to check ISV license Activated.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
From class
java.lang.Object
|
Broadcast Action : Sent to inform application about result of License activation or validation result.
This targeted broadcast is sent only to the application who calls the #activateLicense(String) API.
Also system does periodic validation of ISV license, application continuously needs to listen for this intent after activation.
The intent will have the following extra value:
EXTRA_LICENSE_STATUS
:
"success", "fail".
EXTRA_LICENSE_ERROR_CODE
:
ERROR_NONE
ERROR_NULL_PARAMS
ERROR_UNKNOWN
ERROR_INVALID_LICENSE
ERROR_LICENSE_TERMINATED
ERROR_INTERNAL
ERROR_INTERNAL_SERVER
ERROR_NETWORK_DISCONNECTED
ERROR_NETWORK_GENERAL
ERROR_USER_DISAGREES_LICENSE_AGREEMENT
ERROR_INVALID_PACKAGE_NAME
ERROR_NOT_CURRENT_DATE
EXTRA_LICENSE_RESULT_TYPE
:
LICENSE_RESULT_TYPE_ACTIVATION
LICENSE_RESULT_TYPE_VALIDATION
Internal error.
Internal server error.
Invalid license.
Invalid package name.
License terminated.
Network disconnected.
General network error.
Success.
Not current date.
Null parameter.
Unknown error.
User disagrees License agreement.
Used as an integer extra field with ACTION_LICENSE_STATUS
. Contains
the error code of license activation or validation result.
Used as integer extra field with ACTION_LICENSE_STATUS
.
This will tell whether this is activation or validation result.
Used as string extra field with ACTION_LICENSE_STATUS
.
Contains the result of the license activation or validation result.
Result Activation.
Result Validation.
API to activate ISV license.
licenseKey | received from seap portal. |
---|---|
pkgName | package name of the Admin app |
Application can use this API to activate ISV license on device for accessing SDK APIs.
SDK Framework will broadcast intent with action ACTION_LICENSE_STATUS with string
EXTRA_LICENSE_STATUS , integer EXTRA_LICENSE_ERROR_CODE , integer EXTRA_LICENSE_RESULT_TYPE as extras in intent upon calling this API.
This is a targeted broadcast intent, sent only to the application calling the activateLicense(String, String) .
|
API to create an instance of SecBiometricLicenseManager class. This is a singleton class and you will be accessing the same object throughout the lifecycle of your app.
context | context of the application or service using this class |
---|
Used to get access to SecBiometricLicenseManager object
SecBiometricLicenseManager mgr = SecBiometricLicenseManager.getInstance(context); |
API to check ISV license Activated.
Application can use this API to check ISV license is activated on device for accessing SDK APIs. API will return true if license is activated else return false |