EncryptionRequest

public class EncryptionRequest

Allows an application to specify how to encrypt either sensitive card information or an entire message for the retrieved ADE encrypted message.

Methods

addEncryptDataTags

public void addEncryptDataTags(String value, int length)

Add TLV values and lengths for EncryptData TLV data

addEncryptMessageTags

public void addEncryptMessageTags(String value, int length, EnumSet<EncryptionOptions> options, int position)

Add positional tag values and lengths for EncryptMessage sensitive data

create

public static EncryptionRequest create()

setCryptoInterface

public void setCryptoInterface(String name)

Set name of crypto interface

setEncryptDataOptions

public void setEncryptDataOptions(EnumSet<EncryptionOptions> options)

Set Data Options for EncryptData TLV data

setEncryptionMode

public void setEncryptionMode(EncryptionType mode)

Set encryption mode to either data encryption or message encryption

setHexMessageField

public void setHexMessageField(byte[] value)

Set hex message to be inserted into EncryptMessage container

setInitializationVector

public void setInitializationVector(String iv)

Set initialization vector as hex string

setKeySetId

public void setKeySetId(String id)

Specify the key to use as hex string

setTextMessageField

public void setTextMessageField(String value)

Set text message to be inserted into EncryptMessage container