Menu

#10 Signature with an external private key

open
Signature (1)
5
2019-01-12
2019-01-12
No

I'm working on a Public Key Authentication where the private key is located outside the apllication space (smartcard-like behavior). There is the beautiful Identity class for this which has the getSignature() method. But all Signature classes have only setPrvKey(byte[] e, byte[] n) method so I have to go tricky way to initialize the Signature object with my PrivateKey. At the same time current setPubKey method internally creates object of the same class (PrivateKey) to use java.security.Signature.

Suggestion:
Include setPrvKey(PrivateKey prvKey) method to avoid tricky overrides.
And the same about KeyPair clasess (if possible).

Discussion


Log in to post a comment.

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.