cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject [1/2] cxf git commit: Minor refactor
Date Fri, 25 Sep 2015 10:39:42 GMT
Repository: cxf
Updated Branches:
  refs/heads/master 448ca8ec5 -> 325fdcf12


Minor refactor


Project: http://git-wip-us.apache.org/repos/asf/cxf/repo
Commit: http://git-wip-us.apache.org/repos/asf/cxf/commit/41643cb1
Tree: http://git-wip-us.apache.org/repos/asf/cxf/tree/41643cb1
Diff: http://git-wip-us.apache.org/repos/asf/cxf/diff/41643cb1

Branch: refs/heads/master
Commit: 41643cb1a60764ad990079012117586f55989081
Parents: 448ca8e
Author: Colm O hEigeartaigh <coheigea@apache.org>
Authored: Fri Sep 25 11:20:54 2015 +0100
Committer: Colm O hEigeartaigh <coheigea@apache.org>
Committed: Fri Sep 25 11:20:54 2015 +0100

----------------------------------------------------------------------
 .../wss4j/policyhandlers/AsymmetricBindingHandler.java    | 10 ++++------
 1 file changed, 4 insertions(+), 6 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cxf/blob/41643cb1/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AsymmetricBindingHandler.java
----------------------------------------------------------------------
diff --git a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AsymmetricBindingHandler.java
b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AsymmetricBindingHandler.java
index 2f01258..5adcd1c 100644
--- a/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AsymmetricBindingHandler.java
+++ b/rt/ws/security/src/main/java/org/apache/cxf/ws/security/wss4j/policyhandlers/AsymmetricBindingHandler.java
@@ -135,12 +135,10 @@ public class AsymmetricBindingHandler extends AbstractBindingBuilder
{
                     if (secToken == null) {
                         unassertPolicy(initiatorToken, "Security token is not found or expired");
                         return;
-                    } else {
-                        if (isTokenRequired(initiatorToken.getIncludeTokenType())) {
-                            Element el = secToken.getToken();
-                            this.addEncryptedKeyElement(cloneElement(el));
-                            attached = true;
-                        } 
+                    } else if (isTokenRequired(initiatorToken.getIncludeTokenType())) {
+                        Element el = secToken.getToken();
+                        this.addEncryptedKeyElement(cloneElement(el));
+                        attached = true;
                     }
                 } else if (initiatorToken instanceof SamlToken && isRequestor())
{
                     SamlAssertionWrapper assertionWrapper = addSamlToken((SamlToken)initiatorToken);


Mime
View raw message