com.ardic.android.managers.certificateconfig.ICertificateConfigManager |
Provides a set of APIs for certification control.
Installs, removes or queries certificates.
In order to install certificates Key Guard have to be set.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | UID_SELF | Android KeyStore UID for VPN or Apps. | |||||||||
int | UID_WIFI | Android KeyStore UID for Wi-Fi Authentication. |
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Deletes the CA certificate with the given Alias and usage type.
| |||||||||||
This method was deprecated
in API level 1.
use
deleteCaCertificate(String, int) instead for Android API level 19 or
higher.
| |||||||||||
Deletes the user certificate with the given Alias and usage type.
| |||||||||||
This method was deprecated
in API level 1.
use
deleteUserCertificate(String, int) instead for Android API level 19
or higher.
| |||||||||||
Returns aliases of CA certificates for the given type.
| |||||||||||
Returns aliases of client certificates for the given type.
| |||||||||||
Checks whether CA certificate with the given Alias exists and usage type.
| |||||||||||
This method was deprecated
in API level 1.
use
hasCaCertificate(String, int) instead for Android API level 19 or
higher.
| |||||||||||
This method was deprecated
in API level 1.
use
hasUserCertificate(String, int) instead for Android API level 19 or
higher.
| |||||||||||
Checks whether user certificate with the given Alias exists for the specified usage type.
| |||||||||||
This method was deprecated
in API level 1.
use
installCaCertificate(String, byte[], int) instead for Android API
level 19 or higher.
| |||||||||||
Adds the given CA certificate to Android KeyStore for Wi-Fi authentication or other system
purposes.
| |||||||||||
Extracts User Certificate and User Private Key from the given P12 file data and adds the data
to Android KeyStore for the specified usage type.
| |||||||||||
This method was deprecated
in API level 1.
use
installUserCertificate(String, byte[], String, int) instead for
Android API level 19 or higher.
| |||||||||||
Resets all certificates and related keystores.
|
Android KeyStore UID for VPN or Apps.
Android KeyStore UID for Wi-Fi Authentication.
Deletes the CA certificate with the given Alias and usage type.
Parameters | |
---|---|
alias |
String :
Alias for the certificate |
type |
int :
certificate usage type. UID_WIFI for Wi-Fi authentication
UID_SELF for others. |
Returns | |
---|---|
boolean |
true if the operation succeeds else false |
Throws | |
---|---|
AfexException |
This method was deprecated
in API level 1.
use deleteCaCertificate(String, int)
instead for Android API level 19 or
higher.
Deletes the CA certificate with the given Alias.
Parameters | |
---|---|
alias |
String :
Alias for the certificate |
Returns | |
---|---|
boolean |
true if the operation succeeds else false |
Throws | |
---|---|
|
AfexException |
AfexException |
Deletes the user certificate with the given Alias and usage type. Also, deletes user private key.
Parameters | |
---|---|
alias |
String :
Alias for the certificate |
type |
int :
certificate usage type. UID_WIFI for Wi-Fi authentication
UID_SELF for others. |
Returns | |
---|---|
boolean |
true if the operation succeeds else false |
Throws | |
---|---|
AfexException |
This method was deprecated
in API level 1.
use deleteUserCertificate(String, int)
instead for Android API level 19
or higher.
Deletes the user certificate with the given Alias. Also, deletes user private key.
Parameters | |
---|---|
alias |
String :
Alias for the certificate |
Returns | |
---|---|
boolean |
true if the operation succeeds else false |
Throws | |
---|---|
|
AfexException |
AfexException |
Returns aliases of CA certificates for the given type.
Parameters | |
---|---|
type |
int :
certificate type. UID_WIFI for Wi-Fi authentication UID_SELF
for others. |
Returns | |
---|---|
List<String> |
list of aliases |
Throws | |
---|---|
AfexException |
Returns aliases of client certificates for the given type.
Parameters | |
---|---|
type |
int :
certificate type. UID_WIFI for Wi-Fi authentication UID_SELF
for others. |
Returns | |
---|---|
List<String> |
list of aliases |
Throws | |
---|---|
AfexException |
Checks whether CA certificate with the given Alias exists and usage type.
Parameters | |
---|---|
alias |
String :
Alias for the certificate |
type |
int :
certificate usage type. UID_WIFI for Wi-Fi authentication
UID_SELF for others. |
Returns | |
---|---|
boolean |
true if the certificate is in the Android Keystore else false |
Throws | |
---|---|
AfexException |
This method was deprecated
in API level 1.
use hasCaCertificate(String, int)
instead for Android API level 19 or
higher.
Checks whether CA certificate with the given Alias exists.
Parameters | |
---|---|
alias |
String :
Alias for the certificate |
Returns | |
---|---|
boolean |
true if the certificate is in the Android Keystore else false |
Throws | |
---|---|
|
AfexException |
AfexException |
This method was deprecated
in API level 1.
use hasUserCertificate(String, int)
instead for Android API level 19 or
higher.
Checks whether user certificate with the given Alias exists.
Parameters | |
---|---|
alias |
String :
Alias for the certificate |
Returns | |
---|---|
boolean |
true if the user certificate is in the Android Keystore else false |
Throws | |
---|---|
|
AfexException |
AfexException |
Checks whether user certificate with the given Alias exists for the specified usage type.
Parameters | |
---|---|
alias |
String :
Alias for the certificate |
type |
int :
certificate usage type. UID_WIFI for Wi-Fi authentication
UID_SELF for others. |
Returns | |
---|---|
boolean |
true if the user certificate is in the Android Keystore else false |
Throws | |
---|---|
AfexException |
This method was deprecated
in API level 1.
use installCaCertificate(String, byte[], int)
instead for Android API
level 19 or higher.
Adds the given CA certificate to Android KeyStore. When Device Key Guard is not set Android KeyStore State is UNINITIALIZED. In order to install certificates Android KeyStore State have to be UNLOCKED.
Parameters | |
---|---|
alias |
String :
Alias for the certificate |
byteArray |
byte :
CA certificate data |
Returns | |
---|---|
boolean |
true if the operation succeeds else false |
Throws | |
---|---|
|
AfexException |
AfexException |
Adds the given CA certificate to Android KeyStore for Wi-Fi authentication or other system purposes. type parameter indicates certificate usage type. When Device Key Guard is not set Android KeyStore State is UNINITIALIZED. In order to install certificates Android KeyStore State have to be UNLOCKED.
Parameters | |
---|---|
alias |
String :
Alias for the certificate |
byteArray |
byte :
CA certificate data |
type |
int :
certificate usage type. UID_WIFI for Wi-Fi authentication
UID_SELF for others. |
Returns | |
---|---|
boolean |
true if the operation succeeds else false |
Throws | |
---|---|
AfexException |
Extracts User Certificate and User Private Key from the given P12 file data and adds the data to Android KeyStore for the specified usage type. When Device Key Guard is not set Android KeyStore State is UNINITIALIZED. In order to install certificates Android KeyStore State have to be UNLOCKED. P12 file may not include User Certificate or Private Key. The operation result is success if either certificate or private key is installed.
Parameters | |
---|---|
alias |
String :
Alias for the certificate and user private key |
byteArray |
byte :
data containing user certificate and user private key data |
pass |
String :
password String to extract certificate and private key data. |
type |
int :
certificate usage type. UID_WIFI for Wi-Fi authentication
UID_SELF for others. |
Returns | |
---|---|
boolean |
true if the operation succeeds else false |
Throws | |
---|---|
AfexException |
This method was deprecated
in API level 1.
use installUserCertificate(String, byte[], String, int)
instead for
Android API level 19 or higher.
Extracts User Certificate and User Private Key from the given P12 file data and adds the data to Android KeyStore. When Device Key Guard is not set Android KeyStore State is UNINITIALIZED. In order to install certificates Android KeyStore State have to be UNLOCKED. P12 file may not include User Certificate or Private Key. The operation result is success if either certificate or private key is installed.
Parameters | |
---|---|
alias |
String :
Alias for the certificate and user private key |
byteArray |
byte :
data containing user certificate and user private key data |
pass |
String :
password String to extract certificate and private key data. |
Returns | |
---|---|
boolean |
true if the operation succeeds else false |
Throws | |
---|---|
|
AfexException |
AfexException |
Resets all certificates and related keystores. This API makes keystore state UNINITIALIZED.
Returns | |
---|---|
boolean |
true if the operation succeeds else false |
Throws | |
---|---|
AfexException |