Hello:Hoping someone could reply. Thanks for your time, Regards, cbear
On Mon, Feb 9, 2009 at 11:42 AM, Wishing Carebear < [email protected]> wrote: > Could someone give some pointers. > Thanks, > cbear > > > On Fri, Feb 6, 2009 at 4:27 PM, Wishing Carebear < > [email protected]> 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 < >> [email protected]> 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 >>> >> >> >
