cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [cxf] 01/05: Switch to use EntrySet instead of KeySet in the KerberosTokenInterceptorProvider
Date Tue, 18 Dec 2018 14:23:26 GMT
This is an automated email from the ASF dual-hosted git repository.

coheigea pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/cxf.git

commit f1d8c5f4d74f96cc17c30a891760735871366538
Author: Colm O hEigeartaigh <coheigea@apache.org>
AuthorDate: Tue Dec 18 11:00:52 2018 +0000

    Switch to use EntrySet instead of KeySet in the KerberosTokenInterceptorProvider
---
 .../policy/interceptors/KerberosTokenInterceptorProvider.java       | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/KerberosTokenInterceptorProvider.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/KerberosTokenInterceptorProvider.java
index 27037da..1e632ea 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/KerberosTokenInterceptorProvider.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/policy/interceptors/KerberosTokenInterceptorProvider.java
@@ -297,9 +297,9 @@ public class KerberosTokenInterceptorProvider extends AbstractPolicyInterceptorP
                 Map<String, Key> secretKeys = kerberosToken.getSecretKey();
                 if (secretKeys != null) {
                     SecretKey foundKey = null;
-                    for (String key : kerberosToken.getSecretKey().keySet()) {
-                        if (secretKeys.get(key) instanceof SecretKey) {
-                            SecretKey secretKey = (SecretKey)secretKeys.get(key);
+                    for (Entry<String, Key> entry : kerberosToken.getSecretKey().entrySet())
{
+                        if (entry.getValue() instanceof SecretKey) {
+                            SecretKey secretKey = (SecretKey)entry.getValue();
                             if (foundKey == null
                                 || secretKey.getEncoded().length > foundKey.getEncoded().length)
{
                                 foundKey = secretKey;


Mime
View raw message