JavaException: java.lang.SecurityException: Illegal access to method getSerialNumber() in class com.sun.security.cert.internal.x509.X509V1CertImpl

Javier
Kilo Explorer

Developing a scoped app, I get this error when I try to access the method getSerialNumber() in the class Packages.javax.security.cert.X509Certificate. The other methods like getIssuerDN() or getSubjectDN() work perfectly fine. 

7 REPLIES 7

Community Alums
Not applicable

Hi,

its a protected or private Java method I think. So you cant have access to it 

Then how can I access the serial number of a certificate?

Community Alums
Not applicable

Try using a script created in global scope - from there you can call the global scope objects.

It's not a scope problem. I tried to access the method through a background script in the global scope and the same error appears.

 

find_real_file.png