Since: API level 29
public abstract class

EnhancedAttestationPolicyCallback

extends Object
java.lang.Object
   ↳ com.samsung.android.knox.integrity.EnhancedAttestationPolicyCallback

Class Overview

This class is callback class to get enhanced attestation result.

Since
API level 29
KNOX 3.4

Summary

Public Constructors
EnhancedAttestationPolicyCallback()
Public Methods
abstract void onAttestationFinished(EnhancedAttestationResult result)
This API is invoked when enhanced attestation finished.
[Expand]
Inherited Methods
From class java.lang.Object

Public Constructors

public EnhancedAttestationPolicyCallback ()

Since: API level 29

Public Methods

public abstract void onAttestationFinished (EnhancedAttestationResult result)

Since: API level 29

This API is invoked when enhanced attestation finished.

Parameters
result
An EnhancedAttestationResult instance including enhanced attestation result.
Usage
Used to get enhanced attestation result.

 // An EnhancedAttestationResult object including result passed with onAttestationFinished(EnhancedAttestationResult) api.
 EnhancedAttestationPolicyCallback callback = new EnhancedAttestationPolicyCallback() {
     public void onAttestationFinished(final EnhancedAttestationResult result) {
         int error = result.getError();
         String uniqueId = result.getUniqueId();
         String url = result.getUrl();
     }
 }
 
 // An EnhancedAttestationResult object including result passed with onAttestationFinished(EnhancedAttestationResult) api.
 // For On-Prem API, result includes attestation blob.
 EnhancedAttestationPolicyCallback callback = new EnhancedAttestationPolicyCallback() {
     public void onAttestationFinished(final EnhancedAttestationResult result) {
         int error = result.getError();
         String uniqueId = result.getUniqueId();
         byte[] blob = result.getBlob();
     }
 }
 
Since
API level 29
Knox 3.4