cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cohei...@apache.org
Subject svn commit: r1547031 - in /cxf/trunk/distribution/src/main/release/samples/sts/src/main/java/demo/wssec: client/ClientCallbackHandler.java sts/STSCallbackHandler.java
Date Mon, 02 Dec 2013 14:35:58 GMT
Author: coheigea
Date: Mon Dec  2 14:35:57 2013
New Revision: 1547031

URL: http://svn.apache.org/r1547031
Log:
Fixing samples

Modified:
    cxf/trunk/distribution/src/main/release/samples/sts/src/main/java/demo/wssec/client/ClientCallbackHandler.java
    cxf/trunk/distribution/src/main/release/samples/sts/src/main/java/demo/wssec/sts/STSCallbackHandler.java

Modified: cxf/trunk/distribution/src/main/release/samples/sts/src/main/java/demo/wssec/client/ClientCallbackHandler.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/sts/src/main/java/demo/wssec/client/ClientCallbackHandler.java?rev=1547031&r1=1547030&r2=1547031&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/sts/src/main/java/demo/wssec/client/ClientCallbackHandler.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/sts/src/main/java/demo/wssec/client/ClientCallbackHandler.java
Mon Dec  2 14:35:57 2013
@@ -31,12 +31,12 @@ public class ClientCallbackHandler imple
         for (int i = 0; i < callbacks.length; i++) {
             if (callbacks[i] instanceof WSPasswordCallback) {
                 WSPasswordCallback pc = (WSPasswordCallback) callbacks[i];
-                if (pc.getUsage() == WSPasswordCallback.Usage.DECRYPT 
-                    || pc.getUsage() == WSPasswordCallback.Usage.SIGNATURE) {
+                if (pc.getUsage() == WSPasswordCallback.DECRYPT 
+                    || pc.getUsage() == WSPasswordCallback.SIGNATURE) {
                     if ("myclientkey".equals(pc.getIdentifier())) {
                         pc.setPassword("ckpass");
                     }
-                } else if (pc.getUsage() == WSPasswordCallback.Usage.USERNAME_TOKEN) {
+                } else if (pc.getUsage() == WSPasswordCallback.USERNAME_TOKEN) {
                     if ("alice".equals(pc.getIdentifier())) {
                         pc.setPassword("clarinet");
                         break;

Modified: cxf/trunk/distribution/src/main/release/samples/sts/src/main/java/demo/wssec/sts/STSCallbackHandler.java
URL: http://svn.apache.org/viewvc/cxf/trunk/distribution/src/main/release/samples/sts/src/main/java/demo/wssec/sts/STSCallbackHandler.java?rev=1547031&r1=1547030&r2=1547031&view=diff
==============================================================================
--- cxf/trunk/distribution/src/main/release/samples/sts/src/main/java/demo/wssec/sts/STSCallbackHandler.java
(original)
+++ cxf/trunk/distribution/src/main/release/samples/sts/src/main/java/demo/wssec/sts/STSCallbackHandler.java
Mon Dec  2 14:35:57 2013
@@ -31,12 +31,12 @@ public class STSCallbackHandler implemen
         for (int i = 0; i < callbacks.length; i++) {
             if (callbacks[i] instanceof WSPasswordCallback) {
                 WSPasswordCallback pc = (WSPasswordCallback) callbacks[i];
-                if (pc.getUsage() == WSPasswordCallback.Usage.DECRYPT 
-                    || pc.getUsage() == WSPasswordCallback.Usage.SIGNATURE) {
+                if (pc.getUsage() == WSPasswordCallback.DECRYPT 
+                    || pc.getUsage() == WSPasswordCallback.SIGNATURE) {
                     if ("mystskey".equals(pc.getIdentifier())) {
                         pc.setPassword("stskpass");
                     }
-                } else if (pc.getUsage() == WSPasswordCallback.Usage.USERNAME_TOKEN) {
+                } else if (pc.getUsage() == WSPasswordCallback.USERNAME_TOKEN) {
                     if ("alice".equals(pc.getIdentifier())) {
                         pc.setPassword("clarinet");
                     }



Mime
View raw message