/**@class android.security.AttestedKeyPair @extends java.lang.Object The {@code AttestedKeyPair} class contains a {@code KeyPair} instance of keys generated by Keystore and owned by KeyChain, as well as an attestation record for the key. <p>Such keys can be obtained by calling {@link android.app.admin.DevicePolicyManager#generateKeyPair}. */ var AttestedKeyPair = { /**Returns the generated key pair associated with the attestation record in this instance. */ getKeyPair : function( ) {}, /**Returns the attestation record for the key pair in this instance. The attestation record is a chain of certificates. The leaf certificate links to the public key of this key pair and other properties of the key or the device. If the key is in secure hardware, and if the secure hardware supports attestation, the leaf certificate will be signed by a chain of certificates rooted at a trustworthy CA key. Otherwise the chain will be rooted at an untrusted certificate. The attestation record could be for properties of the key, or include device identifiers. See {@link android.security.keystore.KeyGenParameterSpec.Builder#setAttestationChallenge} and <a href="https://developer.android.com/training/articles/security-key-attestation.html"> Key Attestation</a> for the format of the attestation record inside the certificate. */ getAttestationRecord : function( ) {}, };