Details
-
New Feature
-
Status: Closed
-
Major
-
Resolution: Fixed
-
Java 1.5.1
-
None
-
Security Level: Public (Public issues, viewable by everyone)
-
None
Description
The built-in KeyResolvers can resolve PubicKeys by searching through the StorageResolvers. They cannot resolve private or secret keys because the StorageResolvers can only iterate certificates. I proposed to extend StorageResolverSpi or invent a new kind of storage class but the project lead prefers to rely on custom KeyResolvers.
This patch implements KeyResolvers for private and secret keys for some common cases. These resolvers take their storage on the constructor. This means they cannot be used as static resolvers (because that requires a default constructor). The user must register the new resolvers explicitly as internal key resolvers.