public class GKAuthentication
extends java.lang.Object
| Modifier and Type | Class and Description |
|---|---|
static class |
GKAuthentication.AuthResult
AuthResult encapsulates the result of basic authentication actions.
|
class |
GKAuthentication.ListTemplatesResult
ListTemplatesResult encapsulates the result of the "List Templates" action.
|
static class |
GKAuthentication.Status
Status is the named result of an action.
|
| Modifier and Type | Field and Description |
|---|---|
static java.lang.String |
ENROLL_FACE_PATH_PREFIX |
static java.lang.String |
ENROLL_RECOVERY_CODE_PATH_PREFIX |
static java.lang.String |
LIST_FACE_PATH |
static java.lang.String |
LIST_RECOVERY_CODE_PATH |
protected GKCard |
mCard |
static java.lang.String |
REVOKE_FACE_PATH_PREFIX |
static java.lang.String |
REVOKE_RECOVERY_CODE_PATH_PREFIX |
static java.lang.String |
SIGN_IN_FACE_PATH |
static java.lang.String |
SIGN_IN_RECOVERY_CODE_PATH |
static java.lang.String |
SIGN_OUT_PATH |
static java.lang.String |
TAG |
| Constructor and Description |
|---|
GKAuthentication(GKCard card)
Create a
GKAuthentication that communicates with card. |
| Modifier and Type | Method and Description |
|---|---|
GKAuthentication.AuthResult |
enrollWithFace(GKFaces.Template template)
Store a
Template at the first template index on the GateKeeper Card. |
GKAuthentication.AuthResult |
enrollWithFace(GKFaces.Template template,
java.lang.String templateId)
Store a
Template at the given template index on the GateKeeper Card. |
GKAuthentication.AuthResult |
enrollWithRecoveryCode(java.lang.String recoveryCode)
Store a recovery code at the first template index on the GateKeeper Card.
|
GKAuthentication.AuthResult |
enrollWithRecoveryCode(java.lang.String recoveryCode,
java.lang.String templateId)
Store a recovery code at the given template index on the GateKeeper Card.
|
GKAuthentication.ListTemplatesResult |
listFaceTemplates()
Retrieve the list of face templates stored on the GateKeeper Card.
|
GKAuthentication.ListTemplatesResult |
listRecoveryCodeTemplates()
Retrieve the list of recovery code templates stored on the GateKeeper Card.
|
GKAuthentication.AuthResult |
revokeFace()
Delete the
Template at the first template index on the GateKeeper Card. |
GKAuthentication.AuthResult |
revokeFace(java.lang.String templateId)
Delete the
Template at the given template index on the GateKeeper Card. |
GKAuthentication.AuthResult |
revokeRecoveryCode()
Delete the recovery code on the GateKeeper Card.
|
GKAuthentication.AuthResult |
revokeRecoveryCode(java.lang.String templateId)
Delete the recovery code on the GateKeeper Card.
|
GKAuthentication.AuthResult |
signInWithFace(GKFaces.Template template)
Authenticate with the GateKeeper Card using a
Template. |
GKAuthentication.AuthResult |
signInWithRecoveryCode(java.lang.String recoveryCode)
Authenticate with the GateKeeper Card using a recovery code.
|
GKAuthentication.AuthResult |
signOut()
End the current session on the GateKeeper Card.
|
public static final java.lang.String TAG
public static final java.lang.String ENROLL_FACE_PATH_PREFIX
public static final java.lang.String ENROLL_RECOVERY_CODE_PATH_PREFIX
public static final java.lang.String LIST_FACE_PATH
public static final java.lang.String LIST_RECOVERY_CODE_PATH
public static final java.lang.String REVOKE_FACE_PATH_PREFIX
public static final java.lang.String REVOKE_RECOVERY_CODE_PATH_PREFIX
public static final java.lang.String SIGN_IN_FACE_PATH
public static final java.lang.String SIGN_IN_RECOVERY_CODE_PATH
public static final java.lang.String SIGN_OUT_PATH
protected final GKCard mCard
public GKAuthentication(GKCard card)
GKAuthentication that communicates with card.card - the GKCard to be used with facial authentication actionspublic GKAuthentication.AuthResult enrollWithFace(GKFaces.Template template) throws java.io.IOException
Template at the first template index on the GateKeeper Card.template - the Template to be storedAuthResult of the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKAuthentication.AuthResult enrollWithFace(GKFaces.Template template, java.lang.String templateId) throws java.io.IOException
Template at the given template index on the GateKeeper Card.template - the Template to be storedtemplateId - the name of the file at which to store the templateAuthResult of the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKAuthentication.AuthResult enrollWithRecoveryCode(java.lang.String recoveryCode) throws java.io.IOException
recoveryCode - the String to be storedAuthResult of the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKAuthentication.AuthResult enrollWithRecoveryCode(java.lang.String recoveryCode, java.lang.String templateId) throws java.io.IOException
recoveryCode - the String to be storedtemplateId - the id at which to store the recovery codeAuthResult of the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKAuthentication.AuthResult signInWithFace(GKFaces.Template template) throws java.io.IOException
Template.template - the Template to be submitted for authenticationAuthResult of the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKAuthentication.AuthResult signInWithRecoveryCode(java.lang.String recoveryCode) throws java.io.IOException
recoveryCode - the String to be submitted for authenticationAuthResult of the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKAuthentication.AuthResult signOut() throws java.io.IOException
AuthResult of the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKAuthentication.AuthResult revokeFace() throws java.io.IOException
Template at the first template index on the GateKeeper Card.AuthResult of the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKAuthentication.AuthResult revokeFace(java.lang.String templateId) throws java.io.IOException
Template at the given template index on the GateKeeper Card.templateId - the id at which to delete a templateAuthResult of the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKAuthentication.AuthResult revokeRecoveryCode() throws java.io.IOException
AuthResult of the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKAuthentication.AuthResult revokeRecoveryCode(java.lang.String templateId) throws java.io.IOException
templateId - the index at which to delete a recovery codeAuthResult of the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKAuthentication.ListTemplatesResult listFaceTemplates() throws java.io.IOException
ListTemplatesResult of the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.public GKAuthentication.ListTemplatesResult listRecoveryCodeTemplates() throws java.io.IOException
ListTemplatesResult of the actionjava.io.IOException - when communication with the GateKeeper Card has been disrupted.