Deprecated
in API level 37
Class Overview
Class of managing Knox AI.
Summary
Nested Classes |
enum |
KnoxAiManager.ErrorCodes |
Deprecated
in API level 37
|
[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 Methods
public
KnoxAiSession
createKnoxAiSession
()
Deprecated
in API level 37
Creates a session for getting secure Knox AI session handle.
Returns
- Returns session handle - KnoxAiSession
Usage
Called before any other Knox AI APIs for AI operations.
KnoxAiManager knoxAiManager = KnoxAiManager.getInstance(context);
KnoxAiSession session = knoxAiManager.createKnoxAiSession();
if(session == null) {
Log.i(TAG, "Knox AI Session creation failed");
}
|
Permission
com.samsung.android.knox.permission.KNOX_NDA_AI |
Deprecated
in API level 37
Destroys instance of Knox AI session handle.
Usage
Called to destroy the current session after all AI operations are completed.
knoxAiManager.destroyKnoxAiSession(session);
|
Permission
com.samsung.android.knox.permission.KNOX_NDA_AI |
Deprecated
in API level 37
Deprecated
in API level 37
Provision Device Encryption Key(DEK) from Server for KnoxAI ML Model Protection.
Usage
Called before any other Knox AI APIs for AI operations , if Device is not provisioned or on receipt of DEVICE_NOT_PROVISIONED error.
// A KeyProvisioningResultCallback object should be provided to handle the result.
KeyProvisioningResultCallback cb = new KeyProvisioningResultCallback() {
void onFinished(KnoxAiManager.ErrorCodes result) { // check status here, DEVICE_PROVISION_FAILED on error.
}
}
KnoxAiManager knoxAiManager = KnoxAiManager.getInstance(context);
knoxAiManager.getKeyProvisioning(cb); //Result will be available onFinished() of KeyProvisioningResultCallback.
|
Permission
com.samsung.android.knox.permission.KNOX_NDA_AI |