Class TapkeyEnvironmentConfigBuilder


  • public class TapkeyEnvironmentConfigBuilder
    extends Object
    This class provides a Tapkey environment configuration. Unless suggested otherwise by Tapkey, this class must be used as shown below:
     // Within the application's onCreate()
     TapkeyEnvironmentConfigBuilder environmentConfigBuilder = new TapkeyEnvironmentConfigBuilder();
     TapkeyEnvironmentConfig environmentConfig = environmentConfigBuilder.build();
     
    • Constructor Detail

      • TapkeyEnvironmentConfigBuilder

        public TapkeyEnvironmentConfigBuilder()
    • Method Detail

      • setBaseUri

        public TapkeyEnvironmentConfigBuilder setBaseUri​(String baseUri)
        Overrides the default base URI of the Tapkey Trust Service.
        Parameters:
        baseUri - the base URI.
        Returns:
        the TapkeyEnvironmentConfigBuilder for chaining.
      • setTenantId

        public TapkeyEnvironmentConfigBuilder setTenantId​(String tenantId)
        Overrides the default tenant ID.
        Parameters:
        tenantId - the tenant ID.
        Returns:
        the TapkeyEnvironmentConfigBuilder for chaining.
      • build

        public TapkeyEnvironmentConfig build()
        Builds the TapkeyEnvironment configuration.
        Returns:
        the TapkeyEnvironmentConfig.