JWE-JWS encryption - java

rajni
Regular Visitor

JWE-JWS encryption - java

hi 

 

I have downloaded JWE-JWS encryption sample code. I am getting compilation error in CertificateUtils.java class. there is no DatatypeConverter class available. Can you please guide me how to use this sample code? I have to use this code in Token inquiry by pan API.

 
        byte[] encodedPrivateKey = DatatypeConverter.parseBase64Binary(privateKey);
        return (RSAPrivateKey) KeyFactory.getInstance("RSA").generatePrivate(ne
 

Thanks

 

 

2 REPLIES 2
jenn_kh
Community Moderator

Re: JWE-JWS encryption - java

Hi, @rajniThank you for reaching out! An agent will look into this and get back to you as soon as possible. If any community member knows a solution, please reply here.

API_Managers
Visa Developer Support Specialist

Re: JWE-JWS encryption - java

Hi @rajni,

 

You can try using the Visa Developer Playground tool guide to test the API. Make sure to download the certificates and create a client keystore. Here's the link to the guide. Try the test again and let us know if you need further assistance.




Thanks,

Tee



Was your question answered? Don't forget to click on "Accept as Solution" to help other devs find the answer to the same question.