Re: Ramapart Config based dynamic client sample code
Nandana: Any luck with the sample document. Thanks, cabear On Sun, Feb 15, 2009 at 3:45 PM, Nandana Mihindukulasooriya nandana@gmail.com wrote: Please get the AxisOperation/AxisMessage and from that you can get the PolicySubject. Attach the policy to the PolicySubject. I will check whether there is a sample documented somewhere. thanks, nandana On Wed, Feb 11, 2009 at 12:25 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Can someone give some pointers please. Thanks, cbear On Mon, Feb 9, 2009 at 3:42 PM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello: Hoping someone could reply. Thanks for your time, Regards, cbear On Mon, Feb 9, 2009 at 11:42 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Could someone give some pointers. Thanks, cbear On Fri, Feb 6, 2009 at 4:27 PM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello: The OutflowConfiguration that works right now looks like below: private static Parameter getOutflowConfiguration() { OutflowConfiguration ofc = new OutflowConfiguration(); ofc.setActionItems(Encrypt); ofc.setEncryptionUser(service); ofc.setEncryptionPropFile(client.properties); return ofc.getProperty(); } Since the OutflowConfiguration is deprecated, would like to use RampartConfiguration is possible. Don't have any policy defined for the service. Found some examples of RampartConfig() as below: private static Policy getRampartConfig(){ RampartConfig rampartConfig = new RampartConfig(); rampartConfig.setUser(client); rampartConfig.setPwCbClass(samples.quickstart.clients.PWCBHandler); CryptoConfig sigCrypto = new CryptoConfig(); sigCrypto.setProvider(org.apache.ws.security.components.crypto.Merlin); Properties props = new Properties(); props.setProperty(org.apache.ws.security.crypto.merlin.keystore.type, JKS); props.setProperty(org.apache.ws.security.crypto.merlin.file,client.jks); props.setProperty(org.apache.ws.security.crypto.merlin.keystore.password, clientPW); sigCrypto.setProp(props); rampartConfig.setSigCryptoConfig(sigCrypto); Policy policy = new Policy(); policy.addAssertion(rampartConfig); return policy; } But don't know how to bind this to the OperationClient. I also have to encrypt the request and decrycpt the response messages. Thanks, cbear On Fri, Feb 6, 2009 at 10:46 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello: Noticed that the OutflowConfiguration and InFlowConfiguration classes are deprectaed. Trying to see if RampartConfig could be used to get the same behavior. Saw the policy based examples but could not find any code that could add the Rampart code programmitically. 1) Please point me to some examples where the RampartConfig is done programmitically 2) I use the OperationClient to invoke webservices. Would like to add the RampartConfig() to that. Is it possible 3) Also would like to know the equivalent of OutFlow and InFlow configuration handlers using the RampartConfig. Thanks for your help and time, Regards cabear -- Nandana Mihindukulasooriya WSO2 inc. http://nandana83.blogspot.com/ http://www.wso2.org
Re: Ramapart Config based dynamic client sample code
Thanks Nandana. Regards, Ravi On Sun, Feb 15, 2009 at 3:45 PM, Nandana Mihindukulasooriya nandana@gmail.com wrote: Please get the AxisOperation/AxisMessage and from that you can get the PolicySubject. Attach the policy to the PolicySubject. I will check whether there is a sample documented somewhere. thanks, nandana On Wed, Feb 11, 2009 at 12:25 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Can someone give some pointers please. Thanks, cbear On Mon, Feb 9, 2009 at 3:42 PM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello: Hoping someone could reply. Thanks for your time, Regards, cbear On Mon, Feb 9, 2009 at 11:42 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Could someone give some pointers. Thanks, cbear On Fri, Feb 6, 2009 at 4:27 PM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello: The OutflowConfiguration that works right now looks like below: private static Parameter getOutflowConfiguration() { OutflowConfiguration ofc = new OutflowConfiguration(); ofc.setActionItems(Encrypt); ofc.setEncryptionUser(service); ofc.setEncryptionPropFile(client.properties); return ofc.getProperty(); } Since the OutflowConfiguration is deprecated, would like to use RampartConfiguration is possible. Don't have any policy defined for the service. Found some examples of RampartConfig() as below: private static Policy getRampartConfig(){ RampartConfig rampartConfig = new RampartConfig(); rampartConfig.setUser(client); rampartConfig.setPwCbClass(samples.quickstart.clients.PWCBHandler); CryptoConfig sigCrypto = new CryptoConfig(); sigCrypto.setProvider(org.apache.ws.security.components.crypto.Merlin); Properties props = new Properties(); props.setProperty(org.apache.ws.security.crypto.merlin.keystore.type, JKS); props.setProperty(org.apache.ws.security.crypto.merlin.file,client.jks); props.setProperty(org.apache.ws.security.crypto.merlin.keystore.password, clientPW); sigCrypto.setProp(props); rampartConfig.setSigCryptoConfig(sigCrypto); Policy policy = new Policy(); policy.addAssertion(rampartConfig); return policy; } But don't know how to bind this to the OperationClient. I also have to encrypt the request and decrycpt the response messages. Thanks, cbear On Fri, Feb 6, 2009 at 10:46 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello: Noticed that the OutflowConfiguration and InFlowConfiguration classes are deprectaed. Trying to see if RampartConfig could be used to get the same behavior. Saw the policy based examples but could not find any code that could add the Rampart code programmitically. 1) Please point me to some examples where the RampartConfig is done programmitically 2) I use the OperationClient to invoke webservices. Would like to add the RampartConfig() to that. Is it possible 3) Also would like to know the equivalent of OutFlow and InFlow configuration handlers using the RampartConfig. Thanks for your help and time, Regards cabear -- Nandana Mihindukulasooriya WSO2 inc. http://nandana83.blogspot.com/ http://www.wso2.org
Re: Ramapart Config based dynamic client sample code
Please get the AxisOperation/AxisMessage and from that you can get the PolicySubject. Attach the policy to the PolicySubject. I will check whether there is a sample documented somewhere. thanks, nandana On Wed, Feb 11, 2009 at 12:25 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Can someone give some pointers please. Thanks, cbear On Mon, Feb 9, 2009 at 3:42 PM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello:Hoping someone could reply. Thanks for your time, Regards, cbear On Mon, Feb 9, 2009 at 11:42 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Could someone give some pointers. Thanks, cbear On Fri, Feb 6, 2009 at 4:27 PM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello:The OutflowConfiguration that works right now looks like below: private static Parameter getOutflowConfiguration() { OutflowConfiguration ofc = new OutflowConfiguration(); ofc.setActionItems(Encrypt); ofc.setEncryptionUser(service); ofc.setEncryptionPropFile(client.properties); return ofc.getProperty(); } Since the OutflowConfiguration is deprecated, would like to use RampartConfiguration is possible. Don't have any policy defined for the service. Found some examples of RampartConfig() as below: private static Policy getRampartConfig(){ RampartConfig rampartConfig = new RampartConfig(); rampartConfig.setUser(client); rampartConfig.setPwCbClass(samples.quickstart.clients.PWCBHandler); CryptoConfig sigCrypto = new CryptoConfig(); sigCrypto.setProvider(org.apache.ws.security.components.crypto.Merlin); Properties props = new Properties(); props.setProperty(org.apache.ws.security.crypto.merlin.keystore.type, JKS); props.setProperty(org.apache.ws.security.crypto.merlin.file,client.jks); props.setProperty(org.apache.ws.security.crypto.merlin.keystore.password, clientPW); sigCrypto.setProp(props); rampartConfig.setSigCryptoConfig(sigCrypto); Policy policy = new Policy(); policy.addAssertion(rampartConfig); return policy; } But don't know how to bind this to the OperationClient. I also have to encrypt the request and decrycpt the response messages. Thanks, cbear On Fri, Feb 6, 2009 at 10:46 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello:Noticed that the OutflowConfiguration and InFlowConfiguration classes are deprectaed. Trying to see if RampartConfig could be used to get the same behavior. Saw the policy based examples but could not find any code that could add the Rampart code programmitically. 1) Please point me to some examples where the RampartConfig is done programmitically 2) I use the OperationClient to invoke webservices. Would like to add the RampartConfig() to that. Is it possible 3) Also would like to know the equivalent of OutFlow and InFlow configuration handlers using the RampartConfig. Thanks for your help and time, Regards cabear -- Nandana Mihindukulasooriya WSO2 inc. http://nandana83.blogspot.com/ http://www.wso2.org
Re: Ramapart Config based dynamic client sample code
Can someone give some pointers please. Thanks, cbear On Mon, Feb 9, 2009 at 3:42 PM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello:Hoping someone could reply. Thanks for your time, Regards, cbear On Mon, Feb 9, 2009 at 11:42 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Could someone give some pointers. Thanks, cbear On Fri, Feb 6, 2009 at 4:27 PM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello:The OutflowConfiguration that works right now looks like below: private static Parameter getOutflowConfiguration() { OutflowConfiguration ofc = new OutflowConfiguration(); ofc.setActionItems(Encrypt); ofc.setEncryptionUser(service); ofc.setEncryptionPropFile(client.properties); return ofc.getProperty(); } Since the OutflowConfiguration is deprecated, would like to use RampartConfiguration is possible. Don't have any policy defined for the service. Found some examples of RampartConfig() as below: private static Policy getRampartConfig(){ RampartConfig rampartConfig = new RampartConfig(); rampartConfig.setUser(client); rampartConfig.setPwCbClass(samples.quickstart.clients.PWCBHandler); CryptoConfig sigCrypto = new CryptoConfig(); sigCrypto.setProvider(org.apache.ws.security.components.crypto.Merlin); Properties props = new Properties(); props.setProperty(org.apache.ws.security.crypto.merlin.keystore.type, JKS); props.setProperty(org.apache.ws.security.crypto.merlin.file,client.jks); props.setProperty(org.apache.ws.security.crypto.merlin.keystore.password, clientPW); sigCrypto.setProp(props); rampartConfig.setSigCryptoConfig(sigCrypto); Policy policy = new Policy(); policy.addAssertion(rampartConfig); return policy; } But don't know how to bind this to the OperationClient. I also have to encrypt the request and decrycpt the response messages. Thanks, cbear On Fri, Feb 6, 2009 at 10:46 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello:Noticed that the OutflowConfiguration and InFlowConfiguration classes are deprectaed. Trying to see if RampartConfig could be used to get the same behavior. Saw the policy based examples but could not find any code that could add the Rampart code programmitically. 1) Please point me to some examples where the RampartConfig is done programmitically 2) I use the OperationClient to invoke webservices. Would like to add the RampartConfig() to that. Is it possible 3) Also would like to know the equivalent of OutFlow and InFlow configuration handlers using the RampartConfig. Thanks for your help and time, Regards cabear
Re: Ramapart Config based dynamic client sample code
Could someone give some pointers. Thanks, cbear On Fri, Feb 6, 2009 at 4:27 PM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello:The OutflowConfiguration that works right now looks like below: private static Parameter getOutflowConfiguration() { OutflowConfiguration ofc = new OutflowConfiguration(); ofc.setActionItems(Encrypt); ofc.setEncryptionUser(service); ofc.setEncryptionPropFile(client.properties); return ofc.getProperty(); } Since the OutflowConfiguration is deprecated, would like to use RampartConfiguration is possible. Don't have any policy defined for the service. Found some examples of RampartConfig() as below: private static Policy getRampartConfig(){ RampartConfig rampartConfig = new RampartConfig(); rampartConfig.setUser(client); rampartConfig.setPwCbClass(samples.quickstart.clients.PWCBHandler); CryptoConfig sigCrypto = new CryptoConfig(); sigCrypto.setProvider(org.apache.ws.security.components.crypto.Merlin); Properties props = new Properties(); props.setProperty(org.apache.ws.security.crypto.merlin.keystore.type, JKS); props.setProperty(org.apache.ws.security.crypto.merlin.file,client.jks); props.setProperty(org.apache.ws.security.crypto.merlin.keystore.password, clientPW); sigCrypto.setProp(props); rampartConfig.setSigCryptoConfig(sigCrypto); Policy policy = new Policy(); policy.addAssertion(rampartConfig); return policy; } But don't know how to bind this to the OperationClient. I also have to encrypt the request and decrycpt the response messages. Thanks, cbear On Fri, Feb 6, 2009 at 10:46 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello:Noticed that the OutflowConfiguration and InFlowConfiguration classes are deprectaed. Trying to see if RampartConfig could be used to get the same behavior. Saw the policy based examples but could not find any code that could add the Rampart code programmitically. 1) Please point me to some examples where the RampartConfig is done programmitically 2) I use the OperationClient to invoke webservices. Would like to add the RampartConfig() to that. Is it possible 3) Also would like to know the equivalent of OutFlow and InFlow configuration handlers using the RampartConfig. Thanks for your help and time, Regards cabear
Re: Ramapart Config based dynamic client sample code
Hello:Hoping someone could reply. Thanks for your time, Regards, cbear On Mon, Feb 9, 2009 at 11:42 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Could someone give some pointers. Thanks, cbear On Fri, Feb 6, 2009 at 4:27 PM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello:The OutflowConfiguration that works right now looks like below: private static Parameter getOutflowConfiguration() { OutflowConfiguration ofc = new OutflowConfiguration(); ofc.setActionItems(Encrypt); ofc.setEncryptionUser(service); ofc.setEncryptionPropFile(client.properties); return ofc.getProperty(); } Since the OutflowConfiguration is deprecated, would like to use RampartConfiguration is possible. Don't have any policy defined for the service. Found some examples of RampartConfig() as below: private static Policy getRampartConfig(){ RampartConfig rampartConfig = new RampartConfig(); rampartConfig.setUser(client); rampartConfig.setPwCbClass(samples.quickstart.clients.PWCBHandler); CryptoConfig sigCrypto = new CryptoConfig(); sigCrypto.setProvider(org.apache.ws.security.components.crypto.Merlin); Properties props = new Properties(); props.setProperty(org.apache.ws.security.crypto.merlin.keystore.type, JKS); props.setProperty(org.apache.ws.security.crypto.merlin.file,client.jks); props.setProperty(org.apache.ws.security.crypto.merlin.keystore.password, clientPW); sigCrypto.setProp(props); rampartConfig.setSigCryptoConfig(sigCrypto); Policy policy = new Policy(); policy.addAssertion(rampartConfig); return policy; } But don't know how to bind this to the OperationClient. I also have to encrypt the request and decrycpt the response messages. Thanks, cbear On Fri, Feb 6, 2009 at 10:46 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello:Noticed that the OutflowConfiguration and InFlowConfiguration classes are deprectaed. Trying to see if RampartConfig could be used to get the same behavior. Saw the policy based examples but could not find any code that could add the Rampart code programmitically. 1) Please point me to some examples where the RampartConfig is done programmitically 2) I use the OperationClient to invoke webservices. Would like to add the RampartConfig() to that. Is it possible 3) Also would like to know the equivalent of OutFlow and InFlow configuration handlers using the RampartConfig. Thanks for your help and time, Regards cabear
Ramapart Config based dynamic client sample code
Hello:Noticed that the OutflowConfiguration and InFlowConfiguration classes are deprectaed. Trying to see if RampartConfig could be used to get the same behavior. Saw the policy based examples but could not find any code that could add the Rampart code programmitically. 1) Please point me to some examples where the RampartConfig is done programmitically 2) I use the OperationClient to invoke webservices. Would like to add the RampartConfig() to that. Is it possible 3) Also would like to know the equivalent of OutFlow and InFlow configuration handlers using the RampartConfig. Thanks for your help and time, Regards cabear
Re: Ramapart Config based dynamic client sample code
Hello:The OutflowConfiguration that works right now looks like below: private static Parameter getOutflowConfiguration() { OutflowConfiguration ofc = new OutflowConfiguration(); ofc.setActionItems(Encrypt); ofc.setEncryptionUser(service); ofc.setEncryptionPropFile(client.properties); return ofc.getProperty(); } Since the OutflowConfiguration is deprecated, would like to use RampartConfiguration is possible. Don't have any policy defined for the service. Found some examples of RampartConfig() as below: private static Policy getRampartConfig(){ RampartConfig rampartConfig = new RampartConfig(); rampartConfig.setUser(client); rampartConfig.setPwCbClass(samples.quickstart.clients.PWCBHandler); CryptoConfig sigCrypto = new CryptoConfig(); sigCrypto.setProvider(org.apache.ws.security.components.crypto.Merlin); Properties props = new Properties(); props.setProperty(org.apache.ws.security.crypto.merlin.keystore.type, JKS); props.setProperty(org.apache.ws.security.crypto.merlin.file,client.jks); props.setProperty(org.apache.ws.security.crypto.merlin.keystore.password, clientPW); sigCrypto.setProp(props); rampartConfig.setSigCryptoConfig(sigCrypto); Policy policy = new Policy(); policy.addAssertion(rampartConfig); return policy; } But don't know how to bind this to the OperationClient. I also have to encrypt the request and decrycpt the response messages. Thanks, cbear On Fri, Feb 6, 2009 at 10:46 AM, Wishing Carebear wishing.careb...@gmail.com wrote: Hello:Noticed that the OutflowConfiguration and InFlowConfiguration classes are deprectaed. Trying to see if RampartConfig could be used to get the same behavior. Saw the policy based examples but could not find any code that could add the Rampart code programmitically. 1) Please point me to some examples where the RampartConfig is done programmitically 2) I use the OperationClient to invoke webservices. Would like to add the RampartConfig() to that. Is it possible 3) Also would like to know the equivalent of OutFlow and InFlow configuration handlers using the RampartConfig. Thanks for your help and time, Regards cabear