@Service(value="blPaymentGatewayTamperProofSealService") public class PaymentGatewayTamperProofSealServiceImpl extends Object implements PaymentGatewayTamperProofSealService
This default implementation encodes the seal using a URL-Safe Base64 encoder and 'HmacSHA1'
| Constructor and Description | 
|---|
| PaymentGatewayTamperProofSealServiceImpl() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | createTamperProofSeal(String secretKey,
                     String customerId,
                     String orderId) | 
| Boolean | verifySeal(String seal,
          String secretKey,
          String customerId,
          String orderId) | 
public PaymentGatewayTamperProofSealServiceImpl()
public String createTamperProofSeal(String secretKey, String customerId, String orderId) throws NoSuchAlgorithmException, InvalidKeyException
createTamperProofSeal in interface PaymentGatewayTamperProofSealServiceNoSuchAlgorithmExceptionInvalidKeyExceptionpublic Boolean verifySeal(String seal, String secretKey, String customerId, String orderId) throws InvalidKeyException, NoSuchAlgorithmException
verifySeal in interface PaymentGatewayTamperProofSealServiceInvalidKeyExceptionNoSuchAlgorithmExceptionCopyright © 2020. All rights reserved.