JavaException: java.lang.SecurityException: Illegal access to method getSerialNumber() in class com.sun.security.cert.internal.x509.X509V1CertImpl
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2020 05:22 AM
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.
- Labels:
-
Scoped App Development
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2020 05:41 AM
Hi,
its a protected or private Java method I think. So you cant have access to it
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-14-2020 05:50 AM
Then how can I access the serial number of a certificate?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-15-2020 08:21 AM
Try using a script created in global scope - from there you can call the global scope objects.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
12-16-2020 03:43 AM