public class JWEUtility extends Object
| Constructor and Description |
|---|
JWEUtility() |
| Modifier and Type | Method and Description |
|---|---|
static String |
decryptJWEUsingPEM(MerchantConfig merchantConfig,
String jweBase64Data)
Deprecated.
use
decryptJWEUsingPrivateKey(PrivateKey, String) instead. |
static String |
decryptJWEUsingPrivateKey(PrivateKey privateKey,
String jweBase64Data) |
static PrivateKey |
readPemFileToGetPrivateKey(String pemFilepath)
Deprecated.
|
public static String decryptJWEUsingPrivateKey(PrivateKey privateKey, String jweBase64Data) throws ParseException, com.nimbusds.jose.JOSEException
ParseExceptioncom.nimbusds.jose.JOSEException@Deprecated public static String decryptJWEUsingPEM(MerchantConfig merchantConfig, String jweBase64Data) throws NoSuchAlgorithmException, IOException, InvalidKeySpecException, ParseException, com.nimbusds.jose.JOSEException
decryptJWEUsingPrivateKey(PrivateKey, String) instead.merchantConfig - the merchant configuration containing JWE decryption detailsjweBase64Data - the base64 encoded JWE data to decryptNoSuchAlgorithmException - if the algorithm is not availableIOException - if an I/O error occursInvalidKeySpecException - if the key specification is invalidParseException - if the JWE cannot be parsedcom.nimbusds.jose.JOSEException - if a JOSE processing error occurs@Deprecated public static PrivateKey readPemFileToGetPrivateKey(String pemFilepath) throws FileNotFoundException, IOException, NoSuchAlgorithmException, InvalidKeySpecException
decryptJWEUsingPrivateKey(PrivateKey, String)pemFilepath - the path to the PEM file containing the private keyFileNotFoundException - if the PEM file is not foundIOException - if an I/O error occurs while reading the fileNoSuchAlgorithmException - if the RSA algorithm is not availableInvalidKeySpecException - if the key specification is invalidCopyright © 2026. All rights reserved.