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

Well then you cant reach it - its Java class possbily with private method which is not exposed to the Rhino. Or its used by MID server - its a bit different there.

 

Sorry for being able to help a bit

 

Joro

I think it's actually a public method, this is what the Oracle documentation says

find_real_file.png

Community Alums
Not applicable

Yeahhh,

so Rhino has no access to it I guess. I am thinking of how we can flank this if possible.