Java android.security KeyChain fields, constructors, methods, implement or subclass

Example usage for Java android.security KeyChain fields, constructors, methods, implement or subclass

Introduction

In this page you can find the methods, fields and constructors for android.security KeyChain.

The text is from its open source code.

Field

StringEXTRA_NAME
Optional extra to specify a String credential name on the Intent returned by #createInstallIntent .
StringEXTRA_CERTIFICATE
Optional extra to specify an X.509 certificate to install on the Intent returned by #createInstallIntent .
StringEXTRA_PKCS12
Optional extra for use with the Intent returned by #createInstallIntent to specify a PKCS#12 key store to install.

Method

voidchoosePrivateKeyAlias(@NonNull Activity activity, @NonNull KeyChainAliasCallback response, @Nullable @KeyProperties.KeyAlgorithmEnum String[] keyTypes, @Nullable Principal[] issuers, @Nullable Uri uri, @Nullable String alias)
Launches an Activity for the user to select the alias for a private key and certificate pair for authentication.
IntentcreateInstallIntent()
Returns an Intent that can be used for credential installation.
X509Certificate[]getCertificateChain(@NonNull Context context, @NonNull String alias)
Returns the X509Certificate chain for the requested alias, or null if there is no result.
PrivateKeygetPrivateKey(@NonNull Context context, @NonNull String alias)
Returns the PrivateKey for the requested alias, or null if there is no result.
booleanisBoundKeyAlgorithm(@NonNull @KeyProperties.KeyAlgorithmEnum String algorithm)
Returns true if the current device's KeyChain binds any PrivateKey of the given algorithm to the device once imported or generated.