coheigea commented on code in PR #3809:
URL: https://github.com/apache/cxf/pull/3809#discussion_r4755166874
##########
rt/rs/security/oauth-parent/oauth2/src/main/java/org/apache/cxf/rs/security/oauth2/utils/crypto/ModelEncryptionSupport.java:
##########
@@ -296,13 +301,13 @@ private static KeyProperties gcmProperties(byte[] iv) {
public static ServerAccessToken recreateAccessToken(OAuthDataProvider
provider,
String newTokenKey,
String decryptedSequence)
throws SecurityException {
- return recreateAccessToken(provider, newTokenKey,
getParts(decryptedSequence));
+ return recreateAccessToken(provider, newTokenKey,
getParts(decryptedSequence, ACCESS_TOKEN_PARTS));
}
public static RefreshToken recreateRefreshToken(OAuthDataProvider provider,
String newTokenKey,
String decryptedSequence)
throws SecurityException {
- String[] parts = getParts(decryptedSequence);
+ String[] parts = getParts(decryptedSequence, ACCESS_TOKEN_PARTS + 1);
Review Comment:
Good idea, I'll update the PR.
--
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]