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)
        Set D1 Service Server URL
        Parameters:
        urlString - URL String for D1 Service
        Returns:
        The builder object
      • setIssuerID

        @NonNull
        public D1Task.Builder setIssuerID​(@NonNull
                                          String issuerID)
        Set Issuer Identifier
        Parameters:
        issuerID - Issuer Identifier provided by On-boarding Team
        Returns:
        The builder object
      • setD1ServiceRSAExponent

        @NonNull
        public D1Task.Builder setD1ServiceRSAExponent​(@NonNull
                                                      byte[] rsaExponent)
        Set D1 Service RSA Exponent value.

        It is used to secure communication between Server and Client

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

        @NonNull
        public D1Task.Builder setD1ServiceRSAModulus​(@NonNull
                                                     byte[] rsaModulus)
        Set D1 Service RSA Modulus value.

        It is used to secure communication between Server and Client

        Parameters:
        rsaModulus - RSA Modulus value.
        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
      • 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