Esempio n. 1
0
 /// <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;
 }
Esempio n. 2
0
 /// <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)
 {
 }
Esempio n. 3
0
 /// <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;
 }
Esempio n. 4
0
 /// <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);
 }
Esempio n. 5
0
 /// <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);
 }
Esempio n. 6
0
 /// <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);
 }
Esempio n. 7
0
 /// <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);
 }