@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 PaymentGatewayTamperProofSealService
NoSuchAlgorithmException
InvalidKeyException
public Boolean verifySeal(String seal, String secretKey, String customerId, String orderId) throws InvalidKeyException, NoSuchAlgorithmException
verifySeal
in interface PaymentGatewayTamperProofSealService
InvalidKeyException
NoSuchAlgorithmException
Copyright © 2019. All rights reserved.