You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@tuscany.apache.org by "Sacauskis, Mike" <Mi...@gdit.com> on 2009/03/03 01:56:12 UTC
Contents of Definitions.xml
I playing with the definitions.xml in the calculator-ws-secure-webapp
sample. On of the policy sets is:
<!-- WS Security POLICY SETS -->
<sca:policySet name="calc:wsAuthenticationPolicy"
provides="sca:authentication"
appliesTo="sca:service/sca:binding.ws">
<tuscany:wsConfigParam>
<parameter name="InflowSecurity">
<action>
<items>UsernameToken</items>
<passwordCallbackClass>calculator.security.ServerPWCBHandler</passwordCa
llbackClass>
</action>
</parameter>
</tuscany:wsConfigParam>
</sca:policySet>
There is named element Tuscany:wsConfigParam and a parameter name
InflowSecurity. I was wondering where do these come from , obviously
there are others such as OutFlowSecurity. Is there a list of these
somewhere? Can I define my own, so if I want to have a policy to do
foobar I can set up a parameter named foobar?
Mike Sacauskis
RE: Contents of Definitions.xml
Posted by "Sacauskis, Mike" <Mi...@gdit.com>.
This is all that is in the definition.xml.
<definitions xmlns="http://www.osoa.org/xmlns/sca/1.0"
targetNamespace="http://tuscany.apache.org/xmlns/sca/1.0"
xmlns:sca="http://www.osoa.org/xmlns/sca/1.0"
xmlns:tuscany="http://tuscany.apache.org/xmlns/sca/1.0">
<!-- Policy Intents Defined by the SCA Runtime -->
<intent name="logging" constrains="sca:implementation.java sca:implementation.spring">
<description>
All messages to and from this implementation must be logged
</description>
</intent>
</definitions>
How this maps to the LoggingPolicyDefinitionsProvider.java and the JDKLoggingPolicyProcessor.java.
-----Original Message-----
From: Luciano Resende [mailto:luckbr1975@gmail.com]
Sent: Tuesday, March 03, 2009 9:36 AM
To: user@tuscany.apache.org
Subject: Re: Contents of Definitions.xml
It goes over the whole process of providing an new policy. As you
mentioned, it provides a new itent [1] but also shows the
policyProvider [1] also the JDKLoggingPolicyProcessor [2] that is
responsible to reading the configuration from the definitions.xml and
other necessary infra code.
[1] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/src/main/resources/org/apache/tuscany/sca/policy/logging/definitions.xml
[2] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/LoggingPolicyDefinitionsProvider.java
[3] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingPolicyProcessor.java
On Tue, Mar 3, 2009 at 9:25 AM, Sacauskis, Mike <Mi...@gdit.com> wrote:
> All that example shows is the definition of an intent.
>
> -----Original Message-----
> From: Luciano Resende [mailto:luckbr1975@gmail.com]
> Sent: Tuesday, March 03, 2009 8:36 AM
> To: user@tuscany.apache.org
> Subject: Re: Contents of Definitions.xml
>
> It's in modules/policy-loggin [1]
>
> [1] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/
>
> On Tue, Mar 3, 2009 at 8:22 AM, Sacauskis, Mike <Mi...@gdit.com> wrote:
>> Where do I find the policy logging module?
>>
>> -----Original Message-----
>> From: Luciano Resende [mailto:luckbr1975@gmail.com]
>> Sent: Monday, March 02, 2009 5:20 PM
>> To: user@tuscany.apache.org
>> Subject: Re: Contents of Definitions.xml
>>
>> The policy support in Tuscany is very flexible, the policy-logging
>> module is a good example on how to create your own policies (e.g
>> providing intents, provide processors for the policySets, etc)
>>
>> On Mon, Mar 2, 2009 at 4:56 PM, Sacauskis, Mike <Mi...@gdit.com> wrote:
>>> I playing with the definitions.xml in the calculator-ws-secure-webapp
>>> sample. On of the policy sets is:
>>>
>>> <!-- WS Security POLICY SETS -->
>>>
>>> <sca:policySet name="calc:wsAuthenticationPolicy"
>>>
>>> provides="sca:authentication"
>>>
>>> appliesTo="sca:service/sca:binding.ws">
>>>
>>> <tuscany:wsConfigParam>
>>>
>>> <parameter name="InflowSecurity">
>>>
>>> <action>
>>>
>>>
>>> <items>UsernameToken</items>
>>>
>>>
>>> <passwordCallbackClass>calculator.security.ServerPWCBHandler</passwordCallbackClass>
>>>
>>> </action>
>>>
>>> </parameter>
>>>
>>> </tuscany:wsConfigParam>
>>>
>>> </sca:policySet>
>>>
>>>
>>>
>>> There is named element Tuscany:wsConfigParam and a parameter name
>>> InflowSecurity. I was wondering where do these come from , obviously there
>>> are others such as OutFlowSecurity. Is there a list of these somewhere? Can
>>> I define my own, so if I want to have a policy to do foobar I can set up a
>>> parameter named foobar?
>>>
>>>
>>>
>>>
>>>
>>> Mike Sacauskis
>>>
>>>
>>
>>
>>
>> --
>> Luciano Resende
>> Apache Tuscany, Apache PhotArk
>> http://people.apache.org/~lresende
>> http://lresende.blogspot.com/
>>
>
>
>
> --
> Luciano Resende
> Apache Tuscany, Apache PhotArk
> http://people.apache.org/~lresende
> http://lresende.blogspot.com/
>
--
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/
RE: Contents of Definitions.xml
Posted by "Sacauskis, Mike" <Mi...@gdit.com>.
Alright I'll take a closer look.
-----Original Message-----
From: Luciano Resende [mailto:luckbr1975@gmail.com]
Sent: Tuesday, March 03, 2009 9:36 AM
To: user@tuscany.apache.org
Subject: Re: Contents of Definitions.xml
It goes over the whole process of providing an new policy. As you
mentioned, it provides a new itent [1] but also shows the
policyProvider [1] also the JDKLoggingPolicyProcessor [2] that is
responsible to reading the configuration from the definitions.xml and
other necessary infra code.
[1] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/src/main/resources/org/apache/tuscany/sca/policy/logging/definitions.xml
[2] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/LoggingPolicyDefinitionsProvider.java
[3] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingPolicyProcessor.java
On Tue, Mar 3, 2009 at 9:25 AM, Sacauskis, Mike <Mi...@gdit.com> wrote:
> All that example shows is the definition of an intent.
>
> -----Original Message-----
> From: Luciano Resende [mailto:luckbr1975@gmail.com]
> Sent: Tuesday, March 03, 2009 8:36 AM
> To: user@tuscany.apache.org
> Subject: Re: Contents of Definitions.xml
>
> It's in modules/policy-loggin [1]
>
> [1] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/
>
> On Tue, Mar 3, 2009 at 8:22 AM, Sacauskis, Mike <Mi...@gdit.com> wrote:
>> Where do I find the policy logging module?
>>
>> -----Original Message-----
>> From: Luciano Resende [mailto:luckbr1975@gmail.com]
>> Sent: Monday, March 02, 2009 5:20 PM
>> To: user@tuscany.apache.org
>> Subject: Re: Contents of Definitions.xml
>>
>> The policy support in Tuscany is very flexible, the policy-logging
>> module is a good example on how to create your own policies (e.g
>> providing intents, provide processors for the policySets, etc)
>>
>> On Mon, Mar 2, 2009 at 4:56 PM, Sacauskis, Mike <Mi...@gdit.com> wrote:
>>> I playing with the definitions.xml in the calculator-ws-secure-webapp
>>> sample. On of the policy sets is:
>>>
>>> <!-- WS Security POLICY SETS -->
>>>
>>> <sca:policySet name="calc:wsAuthenticationPolicy"
>>>
>>> provides="sca:authentication"
>>>
>>> appliesTo="sca:service/sca:binding.ws">
>>>
>>> <tuscany:wsConfigParam>
>>>
>>> <parameter name="InflowSecurity">
>>>
>>> <action>
>>>
>>>
>>> <items>UsernameToken</items>
>>>
>>>
>>> <passwordCallbackClass>calculator.security.ServerPWCBHandler</passwordCallbackClass>
>>>
>>> </action>
>>>
>>> </parameter>
>>>
>>> </tuscany:wsConfigParam>
>>>
>>> </sca:policySet>
>>>
>>>
>>>
>>> There is named element Tuscany:wsConfigParam and a parameter name
>>> InflowSecurity. I was wondering where do these come from , obviously there
>>> are others such as OutFlowSecurity. Is there a list of these somewhere? Can
>>> I define my own, so if I want to have a policy to do foobar I can set up a
>>> parameter named foobar?
>>>
>>>
>>>
>>>
>>>
>>> Mike Sacauskis
>>>
>>>
>>
>>
>>
>> --
>> Luciano Resende
>> Apache Tuscany, Apache PhotArk
>> http://people.apache.org/~lresende
>> http://lresende.blogspot.com/
>>
>
>
>
> --
> Luciano Resende
> Apache Tuscany, Apache PhotArk
> http://people.apache.org/~lresende
> http://lresende.blogspot.com/
>
--
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/
Re: Contents of Definitions.xml
Posted by Luciano Resende <lu...@gmail.com>.
It goes over the whole process of providing an new policy. As you
mentioned, it provides a new itent [1] but also shows the
policyProvider [1] also the JDKLoggingPolicyProcessor [2] that is
responsible to reading the configuration from the definitions.xml and
other necessary infra code.
[1] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/src/main/resources/org/apache/tuscany/sca/policy/logging/definitions.xml
[2] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/LoggingPolicyDefinitionsProvider.java
[3] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/src/main/java/org/apache/tuscany/sca/policy/logging/jdk/JDKLoggingPolicyProcessor.java
On Tue, Mar 3, 2009 at 9:25 AM, Sacauskis, Mike <Mi...@gdit.com> wrote:
> All that example shows is the definition of an intent.
>
> -----Original Message-----
> From: Luciano Resende [mailto:luckbr1975@gmail.com]
> Sent: Tuesday, March 03, 2009 8:36 AM
> To: user@tuscany.apache.org
> Subject: Re: Contents of Definitions.xml
>
> It's in modules/policy-loggin [1]
>
> [1] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/
>
> On Tue, Mar 3, 2009 at 8:22 AM, Sacauskis, Mike <Mi...@gdit.com> wrote:
>> Where do I find the policy logging module?
>>
>> -----Original Message-----
>> From: Luciano Resende [mailto:luckbr1975@gmail.com]
>> Sent: Monday, March 02, 2009 5:20 PM
>> To: user@tuscany.apache.org
>> Subject: Re: Contents of Definitions.xml
>>
>> The policy support in Tuscany is very flexible, the policy-logging
>> module is a good example on how to create your own policies (e.g
>> providing intents, provide processors for the policySets, etc)
>>
>> On Mon, Mar 2, 2009 at 4:56 PM, Sacauskis, Mike <Mi...@gdit.com> wrote:
>>> I playing with the definitions.xml in the calculator-ws-secure-webapp
>>> sample. On of the policy sets is:
>>>
>>> <!-- WS Security POLICY SETS -->
>>>
>>> <sca:policySet name="calc:wsAuthenticationPolicy"
>>>
>>> provides="sca:authentication"
>>>
>>> appliesTo="sca:service/sca:binding.ws">
>>>
>>> <tuscany:wsConfigParam>
>>>
>>> <parameter name="InflowSecurity">
>>>
>>> <action>
>>>
>>>
>>> <items>UsernameToken</items>
>>>
>>>
>>> <passwordCallbackClass>calculator.security.ServerPWCBHandler</passwordCallbackClass>
>>>
>>> </action>
>>>
>>> </parameter>
>>>
>>> </tuscany:wsConfigParam>
>>>
>>> </sca:policySet>
>>>
>>>
>>>
>>> There is named element Tuscany:wsConfigParam and a parameter name
>>> InflowSecurity. I was wondering where do these come from , obviously there
>>> are others such as OutFlowSecurity. Is there a list of these somewhere? Can
>>> I define my own, so if I want to have a policy to do foobar I can set up a
>>> parameter named foobar?
>>>
>>>
>>>
>>>
>>>
>>> Mike Sacauskis
>>>
>>>
>>
>>
>>
>> --
>> Luciano Resende
>> Apache Tuscany, Apache PhotArk
>> http://people.apache.org/~lresende
>> http://lresende.blogspot.com/
>>
>
>
>
> --
> Luciano Resende
> Apache Tuscany, Apache PhotArk
> http://people.apache.org/~lresende
> http://lresende.blogspot.com/
>
--
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/
RE: Contents of Definitions.xml
Posted by "Sacauskis, Mike" <Mi...@gdit.com>.
All that example shows is the definition of an intent.
-----Original Message-----
From: Luciano Resende [mailto:luckbr1975@gmail.com]
Sent: Tuesday, March 03, 2009 8:36 AM
To: user@tuscany.apache.org
Subject: Re: Contents of Definitions.xml
It's in modules/policy-loggin [1]
[1] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/
On Tue, Mar 3, 2009 at 8:22 AM, Sacauskis, Mike <Mi...@gdit.com> wrote:
> Where do I find the policy logging module?
>
> -----Original Message-----
> From: Luciano Resende [mailto:luckbr1975@gmail.com]
> Sent: Monday, March 02, 2009 5:20 PM
> To: user@tuscany.apache.org
> Subject: Re: Contents of Definitions.xml
>
> The policy support in Tuscany is very flexible, the policy-logging
> module is a good example on how to create your own policies (e.g
> providing intents, provide processors for the policySets, etc)
>
> On Mon, Mar 2, 2009 at 4:56 PM, Sacauskis, Mike <Mi...@gdit.com> wrote:
>> I playing with the definitions.xml in the calculator-ws-secure-webapp
>> sample. On of the policy sets is:
>>
>> <!-- WS Security POLICY SETS -->
>>
>> <sca:policySet name="calc:wsAuthenticationPolicy"
>>
>> provides="sca:authentication"
>>
>> appliesTo="sca:service/sca:binding.ws">
>>
>> <tuscany:wsConfigParam>
>>
>> <parameter name="InflowSecurity">
>>
>> <action>
>>
>>
>> <items>UsernameToken</items>
>>
>>
>> <passwordCallbackClass>calculator.security.ServerPWCBHandler</passwordCallbackClass>
>>
>> </action>
>>
>> </parameter>
>>
>> </tuscany:wsConfigParam>
>>
>> </sca:policySet>
>>
>>
>>
>> There is named element Tuscany:wsConfigParam and a parameter name
>> InflowSecurity. I was wondering where do these come from , obviously there
>> are others such as OutFlowSecurity. Is there a list of these somewhere? Can
>> I define my own, so if I want to have a policy to do foobar I can set up a
>> parameter named foobar?
>>
>>
>>
>>
>>
>> Mike Sacauskis
>>
>>
>
>
>
> --
> Luciano Resende
> Apache Tuscany, Apache PhotArk
> http://people.apache.org/~lresende
> http://lresende.blogspot.com/
>
--
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/
Re: Contents of Definitions.xml
Posted by Luciano Resende <lu...@gmail.com>.
It's in modules/policy-loggin [1]
[1] https://svn.apache.org/repos/asf/tuscany/branches/sca-java-1.x/modules/policy-logging/
On Tue, Mar 3, 2009 at 8:22 AM, Sacauskis, Mike <Mi...@gdit.com> wrote:
> Where do I find the policy logging module?
>
> -----Original Message-----
> From: Luciano Resende [mailto:luckbr1975@gmail.com]
> Sent: Monday, March 02, 2009 5:20 PM
> To: user@tuscany.apache.org
> Subject: Re: Contents of Definitions.xml
>
> The policy support in Tuscany is very flexible, the policy-logging
> module is a good example on how to create your own policies (e.g
> providing intents, provide processors for the policySets, etc)
>
> On Mon, Mar 2, 2009 at 4:56 PM, Sacauskis, Mike <Mi...@gdit.com> wrote:
>> I playing with the definitions.xml in the calculator-ws-secure-webapp
>> sample. On of the policy sets is:
>>
>> <!-- WS Security POLICY SETS -->
>>
>> <sca:policySet name="calc:wsAuthenticationPolicy"
>>
>> provides="sca:authentication"
>>
>> appliesTo="sca:service/sca:binding.ws">
>>
>> <tuscany:wsConfigParam>
>>
>> <parameter name="InflowSecurity">
>>
>> <action>
>>
>>
>> <items>UsernameToken</items>
>>
>>
>> <passwordCallbackClass>calculator.security.ServerPWCBHandler</passwordCallbackClass>
>>
>> </action>
>>
>> </parameter>
>>
>> </tuscany:wsConfigParam>
>>
>> </sca:policySet>
>>
>>
>>
>> There is named element Tuscany:wsConfigParam and a parameter name
>> InflowSecurity. I was wondering where do these come from , obviously there
>> are others such as OutFlowSecurity. Is there a list of these somewhere? Can
>> I define my own, so if I want to have a policy to do foobar I can set up a
>> parameter named foobar?
>>
>>
>>
>>
>>
>> Mike Sacauskis
>>
>>
>
>
>
> --
> Luciano Resende
> Apache Tuscany, Apache PhotArk
> http://people.apache.org/~lresende
> http://lresende.blogspot.com/
>
--
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/
RE: Contents of Definitions.xml
Posted by "Sacauskis, Mike" <Mi...@gdit.com>.
Where do I find the policy logging module?
-----Original Message-----
From: Luciano Resende [mailto:luckbr1975@gmail.com]
Sent: Monday, March 02, 2009 5:20 PM
To: user@tuscany.apache.org
Subject: Re: Contents of Definitions.xml
The policy support in Tuscany is very flexible, the policy-logging
module is a good example on how to create your own policies (e.g
providing intents, provide processors for the policySets, etc)
On Mon, Mar 2, 2009 at 4:56 PM, Sacauskis, Mike <Mi...@gdit.com> wrote:
> I playing with the definitions.xml in the calculator-ws-secure-webapp
> sample. On of the policy sets is:
>
> <!-- WS Security POLICY SETS -->
>
> <sca:policySet name="calc:wsAuthenticationPolicy"
>
> provides="sca:authentication"
>
> appliesTo="sca:service/sca:binding.ws">
>
> <tuscany:wsConfigParam>
>
> <parameter name="InflowSecurity">
>
> <action>
>
>
> <items>UsernameToken</items>
>
>
> <passwordCallbackClass>calculator.security.ServerPWCBHandler</passwordCallbackClass>
>
> </action>
>
> </parameter>
>
> </tuscany:wsConfigParam>
>
> </sca:policySet>
>
>
>
> There is named element Tuscany:wsConfigParam and a parameter name
> InflowSecurity. I was wondering where do these come from , obviously there
> are others such as OutFlowSecurity. Is there a list of these somewhere? Can
> I define my own, so if I want to have a policy to do foobar I can set up a
> parameter named foobar?
>
>
>
>
>
> Mike Sacauskis
>
>
--
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/
Re: Contents of Definitions.xml
Posted by Luciano Resende <lu...@gmail.com>.
The policy support in Tuscany is very flexible, the policy-logging
module is a good example on how to create your own policies (e.g
providing intents, provide processors for the policySets, etc)
On Mon, Mar 2, 2009 at 4:56 PM, Sacauskis, Mike <Mi...@gdit.com> wrote:
> I playing with the definitions.xml in the calculator-ws-secure-webapp
> sample. On of the policy sets is:
>
> <!-- WS Security POLICY SETS -->
>
> <sca:policySet name="calc:wsAuthenticationPolicy"
>
> provides="sca:authentication"
>
> appliesTo="sca:service/sca:binding.ws">
>
> <tuscany:wsConfigParam>
>
> <parameter name="InflowSecurity">
>
> <action>
>
>
> <items>UsernameToken</items>
>
>
> <passwordCallbackClass>calculator.security.ServerPWCBHandler</passwordCallbackClass>
>
> </action>
>
> </parameter>
>
> </tuscany:wsConfigParam>
>
> </sca:policySet>
>
>
>
> There is named element Tuscany:wsConfigParam and a parameter name
> InflowSecurity. I was wondering where do these come from , obviously there
> are others such as OutFlowSecurity. Is there a list of these somewhere? Can
> I define my own, so if I want to have a policy to do foobar I can set up a
> parameter named foobar?
>
>
>
>
>
> Mike Sacauskis
>
>
--
Luciano Resende
Apache Tuscany, Apache PhotArk
http://people.apache.org/~lresende
http://lresende.blogspot.com/