public interface TKTokenDelegate
TKTokenDelegate represents protocol which must be implemented by token implementors' class representing token. Apart from being able to identify itself with its unique identifier, and must be able to establish new TKTokenSession when requested.
| Modifier and Type | Method and Description |
|---|---|
TKTokenSession |
tokenCreateSessionWithError(TKToken token,
org.moe.natj.general.ptr.Ptr<NSError> error)
Create new session instance
|
default void |
tokenTerminateSession(TKToken token,
TKTokenSession session)
Terminates previously created session, implementation should free all associated resources.
|
TKTokenSession tokenCreateSessionWithError(TKToken token, org.moe.natj.general.ptr.Ptr<NSError> error)
All operations with objects on the token are performed inside TKTokenSession which represent authentication context. This method is called whenever new authentication context is needed (typically when client application wants to perform token operation using keychain object which has associated LocalAuthentication LAContext which was not yet seen by this token instance).
token - Related token instance.default void tokenTerminateSession(TKToken token, TKTokenSession session)
token - Related token instance.