ws-wss4j-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r453612 - in /webservices/wss4j/trunk/src/org/apache/ws/security: WSConstants.java WSSecurityEngineResult.java processor/SecurityContextTokenProcessor.java
Date Fri, 06 Oct 2006 14:34:12 GMT
Author: ruchithf
Date: Fri Oct  6 07:34:11 2006
New Revision: 453612

URL: http://svn.apache.org/viewvc?view=rev&rev=453612
Log:
Add a WSSecurityEngineResult for the after processing a SecurityContextToken

Modified:
    webservices/wss4j/trunk/src/org/apache/ws/security/WSConstants.java
    webservices/wss4j/trunk/src/org/apache/ws/security/WSSecurityEngineResult.java
    webservices/wss4j/trunk/src/org/apache/ws/security/processor/SecurityContextTokenProcessor.java

Modified: webservices/wss4j/trunk/src/org/apache/ws/security/WSConstants.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/org/apache/ws/security/WSConstants.java?view=diff&rev=453612&r1=453611&r2=453612
==============================================================================
--- webservices/wss4j/trunk/src/org/apache/ws/security/WSConstants.java (original)
+++ webservices/wss4j/trunk/src/org/apache/ws/security/WSConstants.java Fri Oct  6 07:34:11
2006
@@ -365,6 +365,7 @@
 
     public static final int NO_SERIALIZE = 0x100;
     public static final int SERIALIZE = 0x200;
+    public static final int SCT = 0x400;
 
     /**
      * Length of UsernameToken derived key used by .NET WSE to sign a message.

Modified: webservices/wss4j/trunk/src/org/apache/ws/security/WSSecurityEngineResult.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/org/apache/ws/security/WSSecurityEngineResult.java?view=diff&rev=453612&r1=453611&r2=453612
==============================================================================
--- webservices/wss4j/trunk/src/org/apache/ws/security/WSSecurityEngineResult.java (original)
+++ webservices/wss4j/trunk/src/org/apache/ws/security/WSSecurityEngineResult.java Fri Oct
 6 07:34:11 2006
@@ -18,6 +18,7 @@
 
 package org.apache.ws.security;
 
+import org.apache.ws.security.message.token.SecurityContextToken;
 import org.apache.ws.security.message.token.SignatureConfirmation;
 import org.apache.ws.security.message.token.Timestamp;
 import org.opensaml.SAMLAssertion;
@@ -36,6 +37,7 @@
     private X509Certificate cert;
     private SAMLAssertion assertion;
     private Timestamp timestamp;
+    private SecurityContextToken securityContextToken;
     private Set signedElements;
     private byte[] signatureValue = null;
     private SignatureConfirmation sigConf = null;
@@ -60,7 +62,12 @@
         action = act;
         timestamp = tstamp;
     }
-
+    
+    public WSSecurityEngineResult(int act, SecurityContextToken sct) {
+        action = act;
+        this.securityContextToken = sct;
+    }
+    
     public WSSecurityEngineResult(int act, SignatureConfirmation sc) {
         action = act;
         sigConf = sc;
@@ -129,6 +136,10 @@
      */
     public void setSignatureValue(byte[] signatureValue) {
         this.signatureValue = signatureValue;
+    }
+
+    public SecurityContextToken getSecurityContextToken() {
+        return securityContextToken;
     }
     
 }

Modified: webservices/wss4j/trunk/src/org/apache/ws/security/processor/SecurityContextTokenProcessor.java
URL: http://svn.apache.org/viewvc/webservices/wss4j/trunk/src/org/apache/ws/security/processor/SecurityContextTokenProcessor.java?view=diff&rev=453612&r1=453611&r2=453612
==============================================================================
--- webservices/wss4j/trunk/src/org/apache/ws/security/processor/SecurityContextTokenProcessor.java
(original)
+++ webservices/wss4j/trunk/src/org/apache/ws/security/processor/SecurityContextTokenProcessor.java
Fri Oct  6 07:34:11 2006
@@ -16,9 +16,11 @@
 
 package org.apache.ws.security.processor;
 
+import org.apache.ws.security.WSConstants;
 import org.apache.ws.security.WSDocInfo;
 import org.apache.ws.security.WSPasswordCallback;
 import org.apache.ws.security.WSSConfig;
+import org.apache.ws.security.WSSecurityEngineResult;
 import org.apache.ws.security.WSSecurityException;
 import org.apache.ws.security.components.crypto.Crypto;
 import org.apache.ws.security.message.token.SecurityContextToken;
@@ -63,6 +65,8 @@
         this.identifier = sct.getIdentifier();
         this.secret = this.getSecret(cb, sct);
         this.sctId = sct.getID();
+        
+        returnResults.add(0, new WSSecurityEngineResult(WSConstants.SCT, sct));
     }
 
     /**



---------------------------------------------------------------------
To unsubscribe, e-mail: wss4j-dev-unsubscribe@ws.apache.org
For additional commands, e-mail: wss4j-dev-help@ws.apache.org


Mime
View raw message