Class SchemeConfiguration.Builder
- java.lang.Object
-
- com.netcetera.threeds.sdk.api.configparameters.builder.SchemeConfiguration.Builder
-
- Enclosing class:
- SchemeConfiguration
public static final class SchemeConfiguration.Builder extends java.lang.ObjectBuilder forSchemeConfiguration.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description SchemeConfigurationbuild()Builds theSchemeConfiguration.SchemeConfiguration.BuilderencryptionPublicKey(java.lang.String encryptionPublicKey)Sets the scheme encryption public key.SchemeConfiguration.BuilderencryptionPublicKey(java.lang.String encryptionPublicKey, java.lang.String encryptionPublicKeyId)Sets the scheme encryption Public Key and Public Key ID.SchemeConfiguration.BuilderencryptionPublicKeyFromAssetCertificate(android.content.res.AssetManager assetManager, java.lang.String certificatePath)Sets the scheme encryption public key.SchemeConfiguration.BuilderencryptionPublicKeyFromAssetCertificate(android.content.res.AssetManager assetManager, java.lang.String certificatePath, java.lang.String encryptionPublicKeyId)Sets the scheme encryption public key.SchemeConfiguration.Builderids(java.util.List<java.lang.String> schemeIds)Sets the the DS id of the scheme.SchemeConfiguration.Builderlogo(java.lang.String schemeLogo)Sets the value of Drawable Resource ID.SchemeConfiguration.BuilderlogoDark(java.lang.String schemeLogoDark)Sets the value of Drawable Resource ID.SchemeConfiguration.BuilderrootPublicKey(java.lang.String... rootPublicKeys)Sets the scheme public root keys.SchemeConfiguration.BuilderrootPublicKeyFromAssetCertificate(android.content.res.AssetManager assetManager, java.lang.String... certificatePaths)Sets the scheme public root keys.
-
-
-
Method Detail
-
ids
public SchemeConfiguration.Builder ids(java.util.List<java.lang.String> schemeIds)
Sets the the DS id of the scheme.- Parameters:
schemeIds-StringDS id of the scheme.- Returns:
SchemeConfiguration.Builder
-
logo
public SchemeConfiguration.Builder logo(java.lang.String schemeLogo)
Sets the value of Drawable Resource ID.- Parameters:
schemeLogo-Stringvalue of Drawable Resource ID.- Returns:
SchemeConfiguration.Builder
-
logoDark
public SchemeConfiguration.Builder logoDark(java.lang.String schemeLogoDark)
Sets the value of Drawable Resource ID.- Parameters:
schemeLogoDark-Stringvalue of the Dark Drawable Resource ID.- Returns:
SchemeConfiguration.Builder
-
encryptionPublicKey
public SchemeConfiguration.Builder encryptionPublicKey(java.lang.String encryptionPublicKey)
Sets the scheme encryption public key.- Parameters:
encryptionPublicKey-Stringrepresenting the ASN.1 encoding of the encryption public key.- Returns:
SchemeConfiguration.Builder
-
encryptionPublicKey
public SchemeConfiguration.Builder encryptionPublicKey(java.lang.String encryptionPublicKey, java.lang.String encryptionPublicKeyId)
Sets the scheme encryption Public Key and Public Key ID.- Parameters:
encryptionPublicKey-Stringrepresenting the ASN.1 encoding of the encryption public key.encryptionPublicKeyId-Stringthe ID representing theencryptionPublicKey- Returns:
SchemeConfiguration.Builder
-
encryptionPublicKeyFromAssetCertificate
public SchemeConfiguration.Builder encryptionPublicKeyFromAssetCertificate(android.content.res.AssetManager assetManager, java.lang.String certificatePath)
Sets the scheme encryption public key.- Parameters:
assetManager-AssetManagercertificatePath-Stringpath of the certificate (DER/PEM) in Base64 encoded format placed in the "assets" directory.- Returns:
SchemeConfiguration.Builder
-
encryptionPublicKeyFromAssetCertificate
public SchemeConfiguration.Builder encryptionPublicKeyFromAssetCertificate(android.content.res.AssetManager assetManager, java.lang.String certificatePath, java.lang.String encryptionPublicKeyId)
Sets the scheme encryption public key.- Parameters:
assetManager-AssetManagercertificatePath-Stringpath of the certificate (DER/PEM) in Base64 encoded format placed in the "assets" directory.encryptionPublicKeyId-Stringthe ID representing theencryptionPublicKey- Returns:
SchemeConfiguration.Builder
-
rootPublicKey
public SchemeConfiguration.Builder rootPublicKey(java.lang.String... rootPublicKeys)
Sets the scheme public root keys.- Parameters:
rootPublicKeys-Stringrepresenting the ASN.1 encoding of the public root key.- Returns:
SchemeConfiguration.Builder
-
rootPublicKeyFromAssetCertificate
public SchemeConfiguration.Builder rootPublicKeyFromAssetCertificate(android.content.res.AssetManager assetManager, java.lang.String... certificatePaths)
Sets the scheme public root keys.- Parameters:
assetManager- theAssetManager.certificatePaths-Stringpaths of the certificates (DER/PEM) in Base64 encoded format placed in the "assets" directory.- Returns:
SchemeConfiguration.Builder
-
build
public SchemeConfiguration build() throws InvalidInputException
Builds theSchemeConfiguration.- Returns:
SchemeConfiguration- Throws:
InvalidInputException- if a parameter isnull.
-
-