Introduce AsymmetricKey interface with a getParams method

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 22
    • Affects Version/s: None
    • Component/s: security-libs
    • None
    • b22

      Currently, every algorithm-specific asymmetric key interface (Ex: `ECKey`) in JDK has a `getParams()` method. It will be nice if this method is in `PublicKey` and `PrivateKey` (returning null by default) or a superclass so that it's available for all asymmetric keys. Once we have this method, even if a new algorithm is introduced in a future release, developers do not need to rewrite their applications to use any new algorithm-specific API.

            Assignee:
            Weijun Wang
            Reporter:
            Weijun Wang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: