ws-axis-cvs mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ruchi...@apache.org
Subject svn commit: r391222 - /webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/rahas/RahasConfiguration.java
Date Tue, 04 Apr 2006 04:22:57 GMT
Author: ruchithf
Date: Mon Apr  3 21:22:51 2006
New Revision: 391222

URL: http://svn.apache.org/viewcvs?rev=391222&view=rev
Log:
Generate the Parameter instance from the RahasConiguration

Modified:
    webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/rahas/RahasConfiguration.java

Modified: webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/rahas/RahasConfiguration.java
URL: http://svn.apache.org/viewcvs/webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/rahas/RahasConfiguration.java?rev=391222&r1=391221&r2=391222&view=diff
==============================================================================
--- webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/rahas/RahasConfiguration.java
(original)
+++ webservices/axis2/trunk/java/modules/security/src/org/apache/axis2/security/rahas/RahasConfiguration.java
Mon Apr  3 21:22:51 2006
@@ -19,16 +19,12 @@
 import org.apache.axiom.om.OMAbstractFactory;
 import org.apache.axiom.om.OMElement;
 import org.apache.axiom.om.OMFactory;
-import org.apache.axis2.AxisFault;
 import org.apache.axis2.context.MessageContext;
 import org.apache.axis2.context.OperationContext;
 import org.apache.axis2.description.Parameter;
 import org.apache.axis2.security.trust.SimpleTokenStore;
-import org.apache.axis2.security.trust.Token;
 import org.apache.axis2.security.trust.TokenStorage;
-import org.apache.axis2.security.trust.TrustException;
 import org.apache.axis2.security.util.Axis2Util;
-import org.apache.ws.security.WSSecurityException;
 import org.apache.ws.security.components.crypto.Crypto;
 import org.apache.ws.security.handler.WSHandlerConstants;
 import org.apache.ws.security.message.token.SecurityContextToken;
@@ -260,7 +256,18 @@
         return null;
     }
 
-    public OMElement getOMElement() {
+    public Parameter getParameter() {
+        Parameter param = new Parameter();
+        OMElement element = this.getOMElement();
+        OMElement paramElem = element.getOMFactory().createOMElement("parameter", null);
+        paramElem.addAttribute("name", RahasConfiguration.RAHAS_CONFIG, null);
+        paramElem.addChild(element);
+        param.setParameterElement(paramElem);
+        System.out.println(paramElem);
+        return param;
+    }
+    
+    private OMElement getOMElement() {
         OMFactory factory = OMAbstractFactory.getOMFactory();
         OMElement elem = factory.createOMElement(RAHAS_CONFIG, null);
         if (this.scope != null) {



Mime
View raw message