Class 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 Detail

      • Builder

        public Builder()
    • Method Detail

      • 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 provided by On-boarding 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 - 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 - RSA Modulus value.
        Returns:
        The builder object
      • enableSecureLog

        @NonNull
        public D1Task.Builder enableSecureLog​(@NonNull
                                              boolean isEnabled)
        Enable or disable Secure Logs, enabled by default.

        It is used to enable or disable generation of secure logs for D1 SDK.

        Parameters:
        isEnabled - True to enable Secure Logs or false to disable Secure Logs.
        Returns:
        The builder object
      • setDigitalCardURL

        @NonNull
        public D1Task.Builder setDigitalCardURL​(@NonNull
                                                String urlString)
        Set Server URL for Digital Card management.
        Parameters:
        urlString - URL for Digital Card Server.
        Returns:
        The builder object
      • setAttestationKey

        @NonNull
        public D1Task.Builder setAttestationKey​(String attestationKey)
        Set attestationKey for D1 SDK
        Parameters:
        attestationKey - Attestation Key
      • 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.