You are viewing a plain text version of this content. The canonical link for it is here.
Posted to java-user@axis.apache.org by "Wang, Hailong (NIH/CIT) [C]" <wa...@mail.nih.gov> on 2007/02/15 23:29:50 UTC

Rampart-1.1 samples

Hi,

 

Could somebody explain to me what's the difference between basic fold
and policy fold under rampart-1.1\samples\ fold? Both of them can use
UsernameToken, Encrypt, Signature, TimeStamp. I got confused.  Thanks in
advance.

 

 

Hailong Wang

National Database for Autism Research(NDAR)

NIH/CIT/DECA

9000 Rockville Pike, Bld 12A/Room 2027

Bethesda, MD 20892

Phone:  301-402-3045

Fax:       301-480-0028

Email:   wangh3@mail.nih.gov

URL:   http://ndar.nih.gov

 


RE: Rampart-1.1 samples

Posted by "Wang, Hailong (NIH/CIT) [C]" <wa...@mail.nih.gov>.
Thanks very much.


Hailong

-----Original Message-----
From: Dimuthu Leelaratne [mailto:dimuthu.leelaratne@gmail.com] 
Sent: Friday, February 16, 2007 1:29 AM
To: axis-user@ws.apache.org
Subject: Re: Rampart-1.1 samples

Hi Hailong Wang,

There are two ways in which we can configure Rampart to include a
UsernameToken.

One way is by using the configuration file which is Axis specific.
Please have a look at "samples/basic/samples02/client.axis2.xml"
inside the rampart folder. Look at this part [1]

The other is using a policy file as per policy specification available
here[2].  Now look at the "samples/policy/sample01/policy.xml" file.

Same applies to Encrypt, Signature, TimeStamp. We can basically
configure Rampart in two methods - one method is using the
client.axis2.xml file or the other method is using policy.

The new trend is to use policy. Using the axis2.xml file for security
configuration is deprecated.

Cheers,
Dimuthu

http://wso2.org


[1]
<module ref="rampart" />
	
	<parameter name="OutflowSecurity">
    	<action>
        	<items>UsernameToken Timestamp</items>
        	<user>bob</user>
 
<passwordCallbackClass>org.apache.rampart.samples.sample02.PWCBHandler</
passwordCallbackClass>
      	</action>
    </parameter>


[2]http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.
pdf

On 2/16/07, Wang, Hailong (NIH/CIT) [C] <wa...@mail.nih.gov> wrote:
>
>
>
>
> Hi,
>
>
>
> Could somebody explain to me what's the difference between basic fold
and
> policy fold under rampart-1.1\samples\ fold? Both of them can use
> UsernameToken, Encrypt, Signature, TimeStamp. I got confused.  Thanks
in
> advance.
>
>
>
>
>
> Hailong Wang
>
> National Database for Autism Research(NDAR)
>
> NIH/CIT/DECA
>
> 9000 Rockville Pike, Bld 12A/Room 2027
>
> Bethesda, MD 20892
>
> Phone:  301-402-3045
>
> Fax:       301-480-0028
>
> Email:   wangh3@mail.nih.gov
>
> URL:   http://ndar.nih.gov
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org


Re: Rampart-1.1 samples

Posted by Dimuthu Leelaratne <di...@gmail.com>.
Hi Hailong Wang,

There are two ways in which we can configure Rampart to include a
UsernameToken.

One way is by using the configuration file which is Axis specific.
Please have a look at "samples/basic/samples02/client.axis2.xml"
inside the rampart folder. Look at this part [1]

The other is using a policy file as per policy specification available
here[2].  Now look at the "samples/policy/sample01/policy.xml" file.

Same applies to Encrypt, Signature, TimeStamp. We can basically
configure Rampart in two methods - one method is using the
client.axis2.xml file or the other method is using policy.

The new trend is to use policy. Using the axis2.xml file for security
configuration is deprecated.

Cheers,
Dimuthu

http://wso2.org


[1]
<module ref="rampart" />
	
	<parameter name="OutflowSecurity">
    	<action>
        	<items>UsernameToken Timestamp</items>
        	<user>bob</user>
        	<passwordCallbackClass>org.apache.rampart.samples.sample02.PWCBHandler</passwordCallbackClass>
      	</action>
    </parameter>


[2]http://specs.xmlsoap.org/ws/2005/07/securitypolicy/ws-securitypolicy.pdf

On 2/16/07, Wang, Hailong (NIH/CIT) [C] <wa...@mail.nih.gov> wrote:
>
>
>
>
> Hi,
>
>
>
> Could somebody explain to me what's the difference between basic fold and
> policy fold under rampart-1.1\samples\ fold? Both of them can use
> UsernameToken, Encrypt, Signature, TimeStamp. I got confused.  Thanks in
> advance.
>
>
>
>
>
> Hailong Wang
>
> National Database for Autism Research(NDAR)
>
> NIH/CIT/DECA
>
> 9000 Rockville Pike, Bld 12A/Room 2027
>
> Bethesda, MD 20892
>
> Phone:  301-402-3045
>
> Fax:       301-480-0028
>
> Email:   wangh3@mail.nih.gov
>
> URL:   http://ndar.nih.gov
>
>

---------------------------------------------------------------------
To unsubscribe, e-mail: axis-user-unsubscribe@ws.apache.org
For additional commands, e-mail: axis-user-help@ws.apache.org