public static class OppThreeDSConfig.Builder
extends java.lang.Object
OppThreeDSConfig
class with customized parameters.Constructor and Description |
---|
Builder() |
Builder(OppThreeDSConfig config)
Copy constructor for the Builder class
|
Modifier and Type | Method and Description |
---|---|
OppThreeDSConfig.Builder |
addClientConfigParam(java.lang.String key,
java.lang.String value)
Sets value for the custom parameter for the /n software
Client component. |
OppThreeDSConfig |
build()
Creates
OppThreeDSConfig initialized with all set earlier parameters. |
OppThreeDSConfig.Builder |
setAppSignature(java.lang.String appSignature)
Sets app signature to be verified by the SDK.
|
OppThreeDSConfig.Builder |
setChallengeUiTypes(java.util.EnumSet<ChallengeUiType> challengeUiTypes)
Sets supported UI types for displaying challenge screens.
|
OppThreeDSConfig.Builder |
setDeviceParameterBlacklist(java.lang.String[] deviceParameterBlacklist)
Sets the list of device parameters that should NOT be collected for the device.
|
OppThreeDSConfig.Builder |
setLocale(java.lang.String locale)
Sets string that represents the locale for the app's user interface.
|
OppThreeDSConfig.Builder |
setMaliciousApps(java.lang.String[] maliciousApps)
Sets the list of package names for the apps that should be recognized as malicious.
|
OppThreeDSConfig.Builder |
setSdkMaxTimeout(int sdkMaxTimeout)
Sets maximum amount of time (in minutes) for all exchanges for the 3-D Secure authentication.
|
OppThreeDSConfig.Builder |
setTrustedAppStores(java.lang.String[] trustedAppStores)
Sets additional list of trusted applications, that would not cause security warnings (SW02).
|
OppThreeDSConfig.Builder |
setUiCustomization(UiCustomization uiCustomization)
Sets UI configuration information that is used to specify the UI layout and theme of
the challenge screens, for example, font style and font size.
|
public Builder()
public Builder(OppThreeDSConfig config)
config
- Config class to be copied into Builderpublic OppThreeDSConfig.Builder setChallengeUiTypes(java.util.EnumSet<ChallengeUiType> challengeUiTypes)
challengeUiTypes
- set of supported UI types for displaying challenge screenspublic OppThreeDSConfig.Builder setSdkMaxTimeout(int sdkMaxTimeout)
sdkMaxTimeout
- maximum amount of time in minutes for all exchanges for 3-D Secure authenticationpublic OppThreeDSConfig.Builder setUiCustomization(UiCustomization uiCustomization)
uiCustomization
- UI configuration info to be applied for the challenge screenspublic OppThreeDSConfig.Builder setLocale(java.lang.String locale)
locale
- string representation of the locale (for example, "en-US")public OppThreeDSConfig.Builder setDeviceParameterBlacklist(java.lang.String[] deviceParameterBlacklist)
["A001", "A002"]
.deviceParameterBlacklist
- the list of device parameters that should NOT be collectedpublic OppThreeDSConfig.Builder setAppSignature(java.lang.String appSignature)
appSignature
- Signature of the user's app to be verified by the SDK during service initializationpublic OppThreeDSConfig.Builder setTrustedAppStores(java.lang.String[] trustedAppStores)
trustedAppStores
- the list of package names of the trusted applicationspublic OppThreeDSConfig.Builder setMaliciousApps(java.lang.String[] maliciousApps)
OppThreeDSService.getWarnings()
after service is initialized.
There are some default malicious apps configured inside by default:
maliciousApps
- the list of package names of malicious applicationspublic OppThreeDSConfig.Builder addClientConfigParam(java.lang.String key, java.lang.String value)
Client
component.
See
/n software ClientConfig guide for the keys.
Sample value addClientConfigParam("AcceptAnyACSCert", "true")
key
- the key of the custom parametervalue
- the value to be assigned for the custom parameterpublic OppThreeDSConfig build()
OppThreeDSConfig
initialized with all set earlier parameters.OppThreeDSConfig
object