You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When a ResourceKeyConverterAdapter is registered with the conversion service, it's registered as a String -> java.security.Key converter as the adapter's type constraint is T extends Key. This means that the conversion service is incapable of a String to RSAPublicKey or RSAPrivateKey conversion.
Describe the bug
When a
ResourceKeyConverterAdapter
is registered with the conversion service, it's registered as aString -> java.security.Key
converter as the adapter's type constraint isT extends Key
. This means that the conversion service is incapable of a String toRSAPublicKey
orRSAPrivateKey
conversion.To Reproduce
The following test will reproduce the problem:
Expected behavior
The above test should pass. A workaround is to sub-class
ResourceKeyConverterAdapter
to provide additional type information:Sample
See above.
The text was updated successfully, but these errors were encountered: