Interface TKTokenDelegate


  • public interface TKTokenDelegate
    TKTokenDelegate contains operations implementing functionality of token class. 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.
    • Method Detail

      • tokenCreateSessionWithError

        TKTokenSession tokenCreateSessionWithError​(TKToken token,
                                                   org.moe.natj.general.ptr.Ptr<NSError> error)
        Create new session instance 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).
        Parameters:
        token - Related token instance.
      • tokenTerminateSession

        default void tokenTerminateSession​(TKToken token,
                                           TKTokenSession session)
        Terminates previously created session, implementation should free all associated resources.
        Parameters:
        token - Related token instance.