TokenIOBuilder

@interface TokenIOBuilder : NSObject

A builder that is used to customize and create TokenIO and TokenIOSync instances that serve as the Token API entry points.

  • TokenCluster.

    Declaration

    Objective-C

    @property (readwrite, strong, atomic) TokenCluster *tokenCluster;

    Swift

    var tokenCluster: TokenCluster! { get set }
  • Host port.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) int port;

    Swift

    var port: Int32 { get set }
  • Request timeout duration used with RPC requests.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) int timeoutMs;

    Swift

    var timeoutMs: Int32 { get set }
  • Key that tags requests with ID of developer organization. Ask Token for a developer key you can use.

    Declaration

    Objective-C

    @property (readwrite, copy, atomic) NSString *developerKey;

    Swift

    var developerKey: String! { get set }
  • The SDK language code.

    Declaration

    Objective-C

    @property (readwrite, copy, atomic) NSString *languageCode;

    Swift

    var languageCode: String! { get set }
  • Use SSL to protect connection?

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) BOOL useSsl;

    Swift

    var useSsl: Bool { get set }
  • Set this property if you prefer a customized crypto engine factory. You can use TKTokenCryptoEngineFactory for a customized keyStore. Token Sdk will use TKSecureEnclaveCryptoEngineFactory by default.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) id<TKCryptoEngineFactory>
        cryptoEngineFactory;
  • Uses custom grpc certs.

    Declaration

    Objective-C

    @property (readwrite, copy, atomic) NSString *certsPath;

    Swift

    var certsPath: String! { get set }
  • Set this property to create customized browser for external authorization. Token Sdk will use TKTokenBrowser by default in iOS.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) TKBrowserFactory browserFactory;

    Swift

    var browserFactory: TKBrowserFactory! { get set }
  • Optional callback to invoke when a cross-cutting RPC error is raised (for example: kTKErrorSdkVersionMismatch). This is in addition to the rpc-specific onError handler, which is still invoked after the rpcErrorCallback.

    Declaration

    Objective-C

    @property (assign, readwrite, atomic) OnError globalRpcErrorCallback;

    Swift

    var globalRpcErrorCallback: OnError { get set }
  • Undocumented

    Declaration

    Objective-C

    - (id)init;

    Swift

    init!()
  • Creates a synchronous Token client object that is used as the entry point to the Token API.

    Declaration

    Objective-C

    - (TokenIOSync *)buildSync;

    Swift

    func buildSync() -> TokenIOSync!
  • Creates an asynchronous Token client object that is used as the entry point to the Token API.

    Declaration

    Objective-C

    - (TokenIO *)buildAsync;

    Swift

    func buildAsync() -> TokenIO!