/// <summary> /// Creates an instance of a Token SDK. /// </summary> /// <param name = "channel">GRPC channel</param> /// <param name="cryptoEngineFactory">crypto factory instance</param> /// <param name="tokenCluster">token cluster</param> /// <param name="browserFactory">browser factory</param> public TokenClient( ManagedChannel channel, ICryptoEngineFactory cryptoEngineFactory, TokenCluster tokenCluster, IBrowserFactory browserFactory) : base(channel, cryptoEngineFactory, tokenCluster) { this.browserFactory = browserFactory; }
/// <summary> /// Creates an instance of a Token SDK. /// </summary> /// <param name="channel">the gRPC channel</param> /// <param name="cryptoEngineFactory">the crypto factory to create crypto engine</param> /// <param name="tokenCluster">the token cluster to connect to</param> public TokenClient( ManagedChannel channel, ICryptoEngineFactory cryptoEngineFactory, TokenCluster tokenCluster) : base(channel, cryptoEngineFactory, tokenCluster) { }
/// <summary> /// Creates an instance of a Token SDK. /// </summary> /// <param name="channel">the gRPC channel</param> /// <param name="cryptoEngineFactory">the crypto factory to create crypto engine</param> /// <param name="tokenCluster">the token cluster to connect to</param> public TokenClient( ManagedChannel channel, ICryptoEngineFactory cryptoEngineFactory, TokenCluster tokenCluster) { this.channel = channel; this.cryptoEngineFactory = cryptoEngineFactory; this.tokenCluster = tokenCluster; }
/// <summary> /// Sets the crypto engine to be used with the SDK. /// </summary> /// <param name="cryptoEngineFactory">the crypto engine factory to use</param> /// <returns>this builder instance</returns> public T WithCryptoEngine(ICryptoEngineFactory cryptoEngineFactory) { this.cryptoEngine = cryptoEngineFactory; return((T)this); }
/// <summary> /// Sets the keystore to be used with the SDK. /// </summary> /// <param name="keyStore">the key store to be used</param> /// <returns>this builder instance</returns> public T WithKeyStore(IKeyStore keyStore) { this.cryptoEngine = new TokenCryptoEngineFactory(keyStore); return((T)this); }
/// <summary> /// Sets the crypto engine to be used with the SDK. /// </summary> /// <param name="cryptoEngineFactory">the crypto engine factory to use</param> /// <returns>this builder instance</returns> public Builder WithCryptoEngine(ICryptoEngineFactory cryptoEngineFactory) { this.cryptoEngine = cryptoEngineFactory; return(this); }
/// <summary> /// Sets the keystore to be used with the SDK. /// </summary> /// <param name="keyStore">the key store to be used</param> /// <returns>this builder instance</returns> public Builder WithKeyStore(IKeyStore keyStore) { this.cryptoEngine = new TokenCryptoEngineFactory(keyStore); return(this); }