PCloud63514 opened a new pull request, #9141: URL: https://github.com/apache/gravitino/pull/9141
### What changes were proposed in this pull request? - Fixed incorrect KeyFactory lookup for ECDSA algorithms. - Updated the key generation logic to use "EC" instead of "ECDSA" when handling ES256/ES384/ES512 keys. - Refactored the branching into a dedicated generateKeyByFamilyType method. ### Why are the changes needed? - Java does not provide a KeyFactory named "ECDSA", which caused token validation to fail with ECDSA signatures. - Using "EC" resolves the issue and allows proper validation of ES256 tokens. Fix: #9121 ### Does this PR introduce _any_ user-facing change? - no. - This change only corrects internal exception handling logic, with no modification to public APIs or user-visible behavior. ### How was this patch tested? - Verified using an ES256 token generation flow as described in the issue. - Confirmed all existing tests continue to pass. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
