users@jax-rpc.java.net

Re: [Fwd: Re: Serialization & encriptation]

From: Vishal Mahajan <Vishal.Mahajan_at_Sun.COM>
Date: Thu, 29 Jul 2004 20:30:29 +0530

To add to Phil's suggestion, if you just want to encrypt the text node
under the target element (which I think is what you want to do), your
<Encrypt> configuration element will look something like

    <Encrypt target="{http://url.not.prefix}localName"
receiverCertificateAlias="....">

There's another attribute called "encryptContentOnly" which can be set
on the <Encrypt> element and whose value is "true" by default. So simply
the above configuration element should be OK for you. In case you want
to encrypt the entire element, then you can set the value of this
attribute as "false".

Vishal

Phil Goodwin wrote:

> This is actually pretty easy if you know the QName of the elment that
> you want to encrypt. In the <Encrypt> element in the configuration
> file add an attribute: target="{http://url.not.prefix}localName" that
> contains the QName of the element that you want to encrypt and you
> should be good to go.
>
> Phil Goodwin
>
> -------- Original Message --------
> Subject: Re: Serialization & encriptation
> Date: Wed, 28 Jul 2004 19:39:39 +0200
> From: Guadalupe Ortiz <gobellot_at_hotmail.com>
> Reply-To: users_at_jax-rpc.dev.java.net
> To: users_at_jax-rpc.dev.java.net
> References:
> <F87013A89AD3F040A73DEB2F4AF4CF940250A125_at_rrc-its-exs07.cc.telcordia.com>
> <4106833D.5070804_at_sun.com> <Sea1-DAV24J2ul6flpT00005df2_at_hotmail.com>
> <4107DCE0.5090804_at_sun.com>
>
>
>
>I know JWSDP1.4 offers a way to do it, but I was working on this with the
>previous section and I am really interested on trying it. Is it not posible
>to encrypt different kinds of parameters like with a cipher?
>
>----- Original Message -----
>From: "Doug Kohlert" <Doug.Kohlert_at_Sun.COM>
>To: <users_at_jax-rpc.dev.java.net>
>Sent: Wednesday, July 28, 2004 7:05 PM
>Subject: Re: Serialization & encriptation
>
>
>> Guadalupe,
>> JWSDP 1.4 contains Web Services Security. It will allow you to encrypt
>> and sign the entire SOAP message. It is not
>> possible to encrypt just the parameters short of you writing your own
>> handlers to do so.
>>
>> Guadalupe Ortiz wrote:
>>
>> >Here is my doubt:
>> >
>> >I want to make a call to a remote service wit the parameters encripted,
>but
>> >I want to keep the parameters type, I mean if the call is:
>> > callfunction_x(String parameterA, int parameterB, date Parameter_C), I
>> >want to make the call with an String, an int an a date parameers, but all
>of
>> >them encripted.
>> >Is it that posible? If so, can you suggest me how? Ive been trying with
>> >javax.crypto but I am not able to get the parameters encrypted but
>> >maintaining the type.
>> >Aby help is really grateful,
>> >Guadalupe
>> >
>> >---------------------------------------------------------------------
>> >To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>> >For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>> >
>> >
>> >
>> >
>>
>> --
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>> Doug Kohlert
>>
>> Sun Microsystems, Inc.
>> doug.kohlert_at_sun.com
>> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
>>
>>
>>
>> ---------------------------------------------------------------------
>> To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>> For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>>
>>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: users-unsubscribe_at_jax-rpc.dev.java.net
>For additional commands, e-mail: users-help_at_jax-rpc.dev.java.net
>
>
>