Details
-
Improvement
-
Status: Resolved
-
Normal
-
Resolution: Fixed
-
None
-
Operability
-
Normal
-
All
-
None
-
Description
When initially implemented, we used the older javax.security.cert.X509Certificate when initializing an IAuthenticator with certs - as nobody is yet using this interface, and there is a reasonable way to fix it to use the correct, non-deprecated cert classes, we should switch to the modern java.security.cert.Certificate class.
The broader reasoning here is that consumers of this interface would have to jump through serialization/deserialization hoops on each authentication check to use the newer X509Certificate implementation, which has data on which we depend for our mTLS implementation, and in this case we can just cast them to the appropriate class.
See https://docs.oracle.com/javase/9/docs/api/javax/security/cert/X509Certificate.html for further details