Package com.thalesgroup.gemalto.d1
Class D1Task.Builder
java.lang.Object
com.thalesgroup.gemalto.d1.D1Task.Builder
- Enclosing class:
- D1Task
An object that constructs
D1Task from its configurations.- Since:
- 1.0.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuild()AD1Taskderived from the configuration.Allows you to disable the generation of secure logs for D1 SDK; logging is enabled by default.enableSecureLog(boolean isEnabled) Deprecated.setApplicationProfileId(String appProfileId) A unique identifier of the application that is pre-configured at the backend.setContext(Context context) Sets the application context for D1 SDK.setD1ServiceRSAExponent(byte[] rsaExponent) Sets the D1 service RSA exponent value.setD1ServiceRSAModulus(byte[] rsaModulus) Sets the D1 service RSA Modulus value.setD1ServiceURL(String urlString) Sets the D1 service server URL.setDigitalCardURL(String urlString) Sets the server URL for Digital Card management.setIssuerID(String issuerID) Sets the issuer identifier.
-
Constructor Details
-
Builder
public Builder()
-
-
Method Details
-
setContext
Sets the application context for D1 SDK.- Parameters:
context- The application context.
-
setApplicationProfileId
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
Sets the D1 service server URL.- Parameters:
urlString- The URL String for D1 service.- Returns:
- The builder object.
-
setIssuerID
Sets the issuer identifier.- Parameters:
issuerID- Issuer identifier that is provided by onboarding team.- Returns:
- The builder object.
-
setD1ServiceRSAExponent
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
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
Deprecated.from 4.3.0, usedisableLogService()insteadAllows 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
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
Sets the server URL for Digital Card management.- Parameters:
urlString- URL for Digital csard server.- Returns:
- The builder object.
-
build
AD1Taskderived from the configuration. This method should only be called after all the configurations are set.- Returns:
- The
D1Taskobject.
-
disableLogService()instead