You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fx-dev@ws.apache.org by mu...@apache.org on 2004/08/05 07:14:04 UTC
cvs commit: ws-fx/wss4j/src/org/apache/ws/axis/security/conversation ConversationClientHandler.java ConversationServerHandler.java
muthulee 2004/08/04 22:14:04
Modified: wss4j/src/org/apache/ws/axis/security/conversation
ConversationClientHandler.java
ConversationServerHandler.java
Log:
Code is commented because the compile breaks.
Revision Changes Path
1.6 +14 -14 ws-fx/wss4j/src/org/apache/ws/axis/security/conversation/ConversationClientHandler.java
Index: ConversationClientHandler.java
===================================================================
RCS file: /home/cvs/ws-fx/wss4j/src/org/apache/ws/axis/security/conversation/ConversationClientHandler.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- ConversationClientHandler.java 31 Jul 2004 10:16:47 -0000 1.5
+++ ConversationClientHandler.java 5 Aug 2004 05:14:04 -0000 1.6
@@ -113,7 +113,7 @@
//add DerivedKeyTokens
String genID = ConversationUtil.genericID();
ConversationManager conMan = new ConversationManager();
- conMan.addDerivedKeyToken(doc, uuid, dkcbHandler, genID);
+ // conMan.addDerivedKeyToken(doc, uuid, dkcbHandler, genID);
//add the SCT with just identifier
Element securityHeader =
@@ -164,11 +164,11 @@
* 1)Store the identifier in identifier
* 2)SCTInfo in dkcbHandler
*/
- uuid =
- stRes
- .getRequestedSecurityToken()
- .getSecurityContextToken()
- .getIdentifier();
+// uuid =
+// stRes
+// .getRequestedSecurityToken()
+// .getSecurityContextToken()
+// .getIdentifier();
isTokenInMemory = true;
stRes.build(doc);
@@ -177,14 +177,14 @@
RequestedProofToken reqProof = stRes.getRequestedProofToken();
//reqProof.doEncryptProof(doc);
- SecurityContextInfo info =
- new SecurityContextInfo(
- stRes
- .getRequestedSecurityToken()
- .getSecurityContextToken(),
- reqProof,
- 1);
- dkcbHandler.addSecurtiyContext(uuid, info);
+// SecurityContextInfo info =
+// new SecurityContextInfo(
+// stRes
+// .getRequestedSecurityToken()
+// .getSecurityContextToken(),
+// reqProof,
+// 1);
+ // dkcbHandler.addSecurtiyContext(uuid, info);
ByteArrayOutputStream os = new ByteArrayOutputStream();
XMLUtils.outputDOM(doc, os, true);
1.5 +13 -13 ws-fx/wss4j/src/org/apache/ws/axis/security/conversation/ConversationServerHandler.java
Index: ConversationServerHandler.java
===================================================================
RCS file: /home/cvs/ws-fx/wss4j/src/org/apache/ws/axis/security/conversation/ConversationServerHandler.java,v
retrieving revision 1.4
retrieving revision 1.5
diff -u -r1.4 -r1.5
--- ConversationServerHandler.java 31 Jul 2004 10:16:47 -0000 1.4
+++ ConversationServerHandler.java 5 Aug 2004 05:14:04 -0000 1.5
@@ -152,22 +152,22 @@
"SecurityTokenResponse Found :: " + stRes.toString());
// get securityContextToken, requestedProofToken
- SecurityContextToken SCT =
- stRes.getRequestedSecurityToken().getSecurityContextToken();
- RequestedProofToken proofToken = stRes.getRequestedProfToken();
+// SecurityContextToken SCT =
+// stRes.getRequestedSecurityToken().getSecurityContextToken();
+// RequestedProofToken proofToken = stRes.getRequestedProfToken();
//TODO:: romove the hard coded decryption
- proofToken.doDecryption(
- "org.apache.ws.axis.oasis.PWCallback",
- loadEncryptionCrypto());
+// proofToken.doDecryption(
+// "org.apache.ws.axis.oasis.PWCallback",
+// loadEncryptionCrypto());
- SecurityContextInfo scInfo =
- new SecurityContextInfo(SCT, proofToken, 1);
+// SecurityContextInfo scInfo =
+// new SecurityContextInfo(SCT, proofToken, 1);
//scInfo.setSharedSecret(proofToken.getSharedSecret());
- dkcbHandler.addSecurtiyContext("uuid:secureZone", scInfo);
-
- //Set the stuff in msgContext.
- msg.setProperty("WSSecureConversation.ID", SCT.getIdentifier());
+// dkcbHandler.addSecurtiyContext("uuid:secureZone", scInfo);
+//
+// //Set the stuff in msgContext.
+// msg.setProperty("WSSecureConversation.ID", SCT.getIdentifier());
}
// Replace sPart with the new sPart.
@@ -238,7 +238,7 @@
// Derrive the token
ConversationManager manager = new ConversationManager();
String genID = ConversationUtil.genericID();
- manager.addDerivedKeyToken(doc, uuid, dkcbHandler, genID);
+ // manager.addDerivedKeyToken(doc, uuid, dkcbHandler, genID);
//add the relavent SCT
Element securityHeader =