Package com.cybersource.authsdk.util
Class JWEUtility
java.lang.Object
com.cybersource.authsdk.util.JWEUtility
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringdecryptJWEUsingPEM(MerchantConfig merchantConfig, String jweBase64Data) static PrivateKeyreadPemFileToGetPrivateKey(String pemFilepath)
-
Constructor Details
-
JWEUtility
public JWEUtility()
-
-
Method Details
-
decryptJWEUsingPEM
public static String decryptJWEUsingPEM(MerchantConfig merchantConfig, String jweBase64Data) throws NoSuchAlgorithmException, IOException, InvalidKeySpecException, ParseException, com.nimbusds.jose.JOSEException - Throws:
NoSuchAlgorithmExceptionIOExceptionInvalidKeySpecExceptionParseExceptioncom.nimbusds.jose.JOSEException
-
readPemFileToGetPrivateKey
public static PrivateKey readPemFileToGetPrivateKey(String pemFilepath) throws FileNotFoundException, IOException, NoSuchAlgorithmException, InvalidKeySpecException
-