Class D1Task.Builder

java.lang.Object
com.thalesgroup.gemalto.d1.D1Task.Builder
Enclosing class:
D1Task

public static class D1Task.Builder extends Object
An object that constructs D1Task from its configurations.
Since:
1.0.0
  • Constructor Details

    • Builder

      public Builder()
  • Method Details

    • setContext

      @NonNull public D1Task.Builder setContext(@NonNull Context context)
      Sets the application context for D1 SDK.
      Parameters:
      context - The application context.
    • setApplicationProfileId

      @NonNull public D1Task.Builder setApplicationProfileId(@NonNull String appProfileId)
      A unique identifier of the application that is pre-configured at the backend.

      This parameter is mandatory for D1Task.getMessagingService().

      Parameters:
      appProfileId - The app profile ID.
      Returns:
      The builder object.
      Since:
      4.0.0
    • setD1ServiceURL

      @NonNull public D1Task.Builder setD1ServiceURL(@NonNull String urlString)
      Sets the D1 service server URL.
      Parameters:
      urlString - The URL String for D1 service.
      Returns:
      The builder object.
    • setIssuerID

      @NonNull public D1Task.Builder setIssuerID(@NonNull String issuerID)
      Sets the issuer identifier.
      Parameters:
      issuerID - Issuer identifier that is provided by onboarding team.
      Returns:
      The builder object.
    • setD1ServiceRSAExponent

      @NonNull public D1Task.Builder setD1ServiceRSAExponent(@NonNull byte[] rsaExponent)
      Sets the D1 service RSA exponent value.

      It is used to secure communication between the server and client.

      Parameters:
      rsaExponent - The RSA exponent value.
      Returns:
      The builder object.
    • setD1ServiceRSAModulus

      @NonNull public D1Task.Builder setD1ServiceRSAModulus(@NonNull byte[] rsaModulus)
      Sets the D1 service RSA Modulus value.

      It is used to secure communication between the server and client.

      Parameters:
      rsaModulus - The RSA modulus value.
      Returns:
      The builder object.
    • enableSecureLog

      @NonNull public D1Task.Builder enableSecureLog(@NonNull boolean isEnabled)
      Deprecated.
      from 4.3.0, use disableLogService() instead
      Allows you to enable or disable the generation of secure logs for D1 SDK; logging is enabled by default.
      Parameters:
      isEnabled - Set to `True` to enable the generation of secure logs or `false` to disable the secure logs.
      Returns:
      The builder object.
    • disableLogService

      @NonNull public D1Task.Builder disableLogService()
      Allows you to disable the generation of secure logs for D1 SDK; logging is enabled by default.
      Returns:
      The builder object.
      Since:
      4.3.0
    • setDigitalCardURL

      @NonNull public D1Task.Builder setDigitalCardURL(@NonNull String urlString)
      Sets the server URL for Digital Card management.
      Parameters:
      urlString - URL for Digital csard server.
      Returns:
      The builder object.
    • build

      @NonNull public D1Task build()
      A D1Task derived from the configuration. This method should only be called after all the configurations are set.
      Returns:
      The D1Task object.