Signature with an external private key
Status: Alpha
Brought to you by:
ymnk
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).