public interface CardEncryptor
This file is open source and available under the MIT license. See the LICENSE file for more info.
Created by timon on 06/02/2018.
Modifier and Type | Method and Description |
---|---|
java.util.concurrent.Callable<java.lang.String> |
encrypt(java.lang.String holderName,
Card card,
java.util.Date generationTime,
java.lang.String publicKey)
Encrypt the
Card to a token. |
java.util.concurrent.Callable<EncryptedCard> |
encryptFields(Card card,
java.util.Date generationTime,
java.lang.String publicKey)
Encrypt the individual fields of a
Card to an EncryptedCard . |
java.util.concurrent.Callable<EncryptedCard> encryptFields(Card card, java.util.Date generationTime, java.lang.String publicKey)
Card
to an EncryptedCard
.card
- The Card
to be encrypted.generationTime
- The generation Date
.publicKey
- The public key to encrypt with.Callable
object returning an EncryptedCard
.java.util.concurrent.Callable<java.lang.String> encrypt(java.lang.String holderName, Card card, java.util.Date generationTime, java.lang.String publicKey)
Card
to a token.holderName
- The name of the card holder.card
- The Card
to be encrypted.generationTime
- The generation Date
.publicKey
- The public key to encrypt with.Callable
object returning an encrypted token.