@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() |
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 © 2017. All rights reserved.