java.lang.Object |
↳ |
com.samsung.android.knox.integrity.EnhancedAttestationPolicyCallback |
Class Overview
This class is callback class to get enhanced attestation result.
Summary
[Expand]
Inherited Methods |
From class
java.lang.Object
Object
|
clone()
|
boolean
|
equals(Object arg0)
|
void
|
finalize()
|
final
Class<?>
|
getClass()
|
int
|
hashCode()
|
final
void
|
notify()
|
final
void
|
notifyAll()
|
String
|
toString()
|
final
void
|
wait(long arg0, int arg1)
|
final
void
|
wait(long arg0)
|
final
void
|
wait()
|
|
Public Constructors
public
EnhancedAttestationPolicyCallback
()
Public Methods
public
abstract
void
onAttestationFinished
(EnhancedAttestationResult result)
This API is invoked when enhanced attestation finished.
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();
}
}
|