KeyStoreManager.GetGrantedCertificateChainFromId(Int64) Method

Definition

Returns a List of X509Certificate instances representing the certificate chain for the key that was previously shared with the app under the provided id.

[Android.Runtime.Register("getGrantedCertificateChainFromId", "(J)Ljava/util/List;", "", ApiSince=36)]
public System.Collections.Generic.IList<Java.Security.Cert.X509Certificate> GetGrantedCertificateChainFromId(long id);
[<Android.Runtime.Register("getGrantedCertificateChainFromId", "(J)Ljava/util/List;", "", ApiSince=36)>]
member this.GetGrantedCertificateChainFromId : int64 -> System.Collections.Generic.IList<Java.Security.Cert.X509Certificate>

Parameters

id
Int64

the ID of the asymmetric key that was shared with the app

Returns

a List of X509Certificates with the certificate at index 0 corresponding to the private key shared with the app

Attributes

Remarks

Returns a List of X509Certificate instances representing the certificate chain for the key that was previously shared with the app under the provided id.

If a java.security.PrivateKey has not been granted to the caller with the specified id, then an UnrecoverableKeyException is thrown.

Java documentation for android.security.keystore.KeyStoreManager.getGrantedCertificateChainFromId(long).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to