diff options
Diffstat (limited to 'neethi/test/policies')
44 files changed, 1110 insertions, 0 deletions
diff --git a/neethi/test/policies/1.5symmetric_binding_policy.xml b/neethi/test/policies/1.5symmetric_binding_policy.xml new file mode 100644 index 0000000..b660ac9 --- /dev/null +++ b/neethi/test/policies/1.5symmetric_binding_policy.xml @@ -0,0 +1,75 @@ +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy"> + <wsp:ExactlyOne> + <wsp:All> + <sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:ProtectionToken> + <wsp:Policy> + <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never"> + <wsp:Policy> + <sp:RequireDerivedKeys/> + <sp:RequireThumbprintReference/> + <sp:WssX509V3Token10/> + </wsp:Policy> + </sp:X509Token> + </wsp:Policy> + </sp:ProtectionToken> + <sp:AlgorithmSuite> + <wsp:Policy> + <sp:Basic256/> + </wsp:Policy> + </sp:AlgorithmSuite> + <sp:Layout> + <wsp:Policy> + <sp:Strict/> + </wsp:Policy> + </sp:Layout> + <sp:IncludeTimestamp/> + <sp:EncryptSignature/> + <sp:OnlySignEntireHeadersAndBody/> + </wsp:Policy> + </sp:SymmetricBinding> + <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"> + <wsp:Policy> + <sp:WssUsernameToken10/> + </wsp:Policy> + </sp:UsernameToken> + </wsp:Policy> + </sp:SignedSupportingTokens> + <sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:MustSupportRefKeyIdentifier/> + <sp:MustSupportRefIssuerSerial/> + <sp:MustSupportRefThumbprint/> + <sp:MustSupportRefEncryptedKey/> + </wsp:Policy> + </sp:Wss11> + <sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:MustSupportIssuedTokens/> + <sp:RequireClientEntropy/> + <sp:RequireServerEntropy/> + </wsp:Policy> + </sp:Trust10> + <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <sp:Body/> + </sp:EncryptedParts> + <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <sp:Body/> + <sp:Header Namespace="http://www.w3.org/2005/08/addressing"/> + </sp:SignedParts> + <rampc:RampartConfig xmlns:rampc="http://ws.apache.org/rampart/c/policy"> + <rampc:User>Alice</rampc:User> + <rampc:TimeToLive>360</rampc:TimeToLive> + <rampc:EncryptionUser>a</rampc:EncryptionUser> + <rampc:PasswordType>Digest</rampc:PasswordType> + <rampc:PasswordCallbackClass>AXIS2C_HOME/bin/samples/rampart/callback/libpwcb.so</rampc:PasswordCallbackClass> + <rampc:ReceiverCertificate>AXIS2C_HOME/bin/samples/rampart/keys/ahome/bob_cert.cert</rampc:ReceiverCertificate> + <rampc:Certificate>AXIS2C_HOME/bin/samples/rampart/keys/ahome/alice_cert.cert</rampc:Certificate> + <rampc:PrivateKey>AXIS2C_HOME/bin/samples/rampart/keys/ahome/alice_key.pem</rampc:PrivateKey> + </rampc:RampartConfig> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Endpoint-1A.xml b/neethi/test/policies/Policy-for-Endpoint-1A.xml new file mode 100644 index 0000000..ff1a54f --- /dev/null +++ b/neethi/test/policies/Policy-for-Endpoint-1A.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion59 marker="59" /> + <pa:Assertion22 marker="22" /> + <pa:Assertion2 marker="2" /> + <pa:Assertion1 marker="1" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Endpoint-1B.xml b/neethi/test/policies/Policy-for-Endpoint-1B.xml new file mode 100644 index 0000000..4df87e6 --- /dev/null +++ b/neethi/test/policies/Policy-for-Endpoint-1B.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion60 marker="60" /> + <pa:Assertion31 marker="31" /> + <pa:Assertion2 marker="2" /> + <pa:Assertion1 marker="1" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Endpoint-2A.xml b/neethi/test/policies/Policy-for-Endpoint-2A.xml new file mode 100644 index 0000000..1517682 --- /dev/null +++ b/neethi/test/policies/Policy-for-Endpoint-2A.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion62 marker="62" /> + <pa:Assertion40 marker="40" /> + <pa:Assertion12 marker="12" /> + <pa:Assertion1 marker="1" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Endpoint-2B.xml b/neethi/test/policies/Policy-for-Endpoint-2B.xml new file mode 100644 index 0000000..359f4bb --- /dev/null +++ b/neethi/test/policies/Policy-for-Endpoint-2B.xml @@ -0,0 +1,12 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion63 marker="63" /> + <pa:Assertion49 marker="49" /> + <pa:Assertion12 marker="12" /> + <pa:Assertion1 marker="1" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Input-in-Operation-1A-in-relation-to-Endpoint-1A.xml b/neethi/test/policies/Policy-for-Input-in-Operation-1A-in-relation-to-Endpoint-1A.xml new file mode 100644 index 0000000..de6cf40 --- /dev/null +++ b/neethi/test/policies/Policy-for-Input-in-Operation-1A-in-relation-to-Endpoint-1A.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion24 marker="24" /> + <pa:Assertion5 marker="5" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Input-in-Operation-1A-in-relation-to-Endpoint-1B.xml b/neethi/test/policies/Policy-for-Input-in-Operation-1A-in-relation-to-Endpoint-1B.xml new file mode 100644 index 0000000..c88dafa --- /dev/null +++ b/neethi/test/policies/Policy-for-Input-in-Operation-1A-in-relation-to-Endpoint-1B.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion33 marker="33" /> + <pa:Assertion5 marker="5" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Input-in-Operation-1B-in-relation-to-Endpoint-1A.xml b/neethi/test/policies/Policy-for-Input-in-Operation-1B-in-relation-to-Endpoint-1A.xml new file mode 100644 index 0000000..2885491 --- /dev/null +++ b/neethi/test/policies/Policy-for-Input-in-Operation-1B-in-relation-to-Endpoint-1A.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion28 marker="28" /> + <pa:Assertion9 marker="9" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Input-in-Operation-1B-in-relation-to-Endpoint-1B.xml b/neethi/test/policies/Policy-for-Input-in-Operation-1B-in-relation-to-Endpoint-1B.xml new file mode 100644 index 0000000..187a7b7 --- /dev/null +++ b/neethi/test/policies/Policy-for-Input-in-Operation-1B-in-relation-to-Endpoint-1B.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion37 marker="37" /> + <pa:Assertion9 marker="9" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Input-in-Operation-2A-in-relation-to-Endpoint-2A.xml b/neethi/test/policies/Policy-for-Input-in-Operation-2A-in-relation-to-Endpoint-2A.xml new file mode 100644 index 0000000..60e9575 --- /dev/null +++ b/neethi/test/policies/Policy-for-Input-in-Operation-2A-in-relation-to-Endpoint-2A.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion42 marker="42" /> + <pa:Assertion15 marker="15" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Input-in-Operation-2A-in-relation-to-Endpoint-2B.xml b/neethi/test/policies/Policy-for-Input-in-Operation-2A-in-relation-to-Endpoint-2B.xml new file mode 100644 index 0000000..59cc4fa --- /dev/null +++ b/neethi/test/policies/Policy-for-Input-in-Operation-2A-in-relation-to-Endpoint-2B.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion51 marker="51" /> + <pa:Assertion15 marker="15" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Input-in-Operation-2B-in-relation-to-Endpoint-2A.xml b/neethi/test/policies/Policy-for-Input-in-Operation-2B-in-relation-to-Endpoint-2A.xml new file mode 100644 index 0000000..ee38033 --- /dev/null +++ b/neethi/test/policies/Policy-for-Input-in-Operation-2B-in-relation-to-Endpoint-2A.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion46 marker="46" /> + <pa:Assertion19 marker="19" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Input-in-Operation-2B-in-relation-to-Endpoint-2B.xml b/neethi/test/policies/Policy-for-Input-in-Operation-2B-in-relation-to-Endpoint-2B.xml new file mode 100644 index 0000000..883dcda --- /dev/null +++ b/neethi/test/policies/Policy-for-Input-in-Operation-2B-in-relation-to-Endpoint-2B.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion55 marker="55" /> + <pa:Assertion19 marker="19" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Operation-1A-in-relation-to-Endpoint-1A.xml b/neethi/test/policies/Policy-for-Operation-1A-in-relation-to-Endpoint-1A.xml new file mode 100644 index 0000000..dfccd95 --- /dev/null +++ b/neethi/test/policies/Policy-for-Operation-1A-in-relation-to-Endpoint-1A.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion23 marker="23" /> + <pa:Assertion4 marker="4" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Operation-1A-in-relation-to-Endpoint-1B.xml b/neethi/test/policies/Policy-for-Operation-1A-in-relation-to-Endpoint-1B.xml new file mode 100644 index 0000000..f86c59d --- /dev/null +++ b/neethi/test/policies/Policy-for-Operation-1A-in-relation-to-Endpoint-1B.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion31 marker="31" /> + <pa:Assertion4 marker="4" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Operation-1B-in-relation-to-Endpoint-1A.xml b/neethi/test/policies/Policy-for-Operation-1B-in-relation-to-Endpoint-1A.xml new file mode 100644 index 0000000..1f39527 --- /dev/null +++ b/neethi/test/policies/Policy-for-Operation-1B-in-relation-to-Endpoint-1A.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion27 marker="27" /> + <pa:Assertion8 marker="8" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Operation-1B-in-relation-to-Endpoint-1B.xml b/neethi/test/policies/Policy-for-Operation-1B-in-relation-to-Endpoint-1B.xml new file mode 100644 index 0000000..180e72f --- /dev/null +++ b/neethi/test/policies/Policy-for-Operation-1B-in-relation-to-Endpoint-1B.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion36 marker="36" /> + <pa:Assertion8 marker="8" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Operation-2A-in-relation-to-Endpoint-2A.xml b/neethi/test/policies/Policy-for-Operation-2A-in-relation-to-Endpoint-2A.xml new file mode 100644 index 0000000..07efde6 --- /dev/null +++ b/neethi/test/policies/Policy-for-Operation-2A-in-relation-to-Endpoint-2A.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion41 marker="41" /> + <pa:Assertion14 marker="14" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Operation-2A-in-relation-to-Endpoint-2B.xml b/neethi/test/policies/Policy-for-Operation-2A-in-relation-to-Endpoint-2B.xml new file mode 100644 index 0000000..071fe79 --- /dev/null +++ b/neethi/test/policies/Policy-for-Operation-2A-in-relation-to-Endpoint-2B.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion50 marker="50" /> + <pa:Assertion14 marker="14" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Operation-2B-in-relation-to-Endpoint-2A.xml b/neethi/test/policies/Policy-for-Operation-2B-in-relation-to-Endpoint-2A.xml new file mode 100644 index 0000000..2356e7e --- /dev/null +++ b/neethi/test/policies/Policy-for-Operation-2B-in-relation-to-Endpoint-2A.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion45 marker="45" /> + <pa:Assertion18 marker="18" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Operation-2B-in-relation-to-Endpoint-2B.xml b/neethi/test/policies/Policy-for-Operation-2B-in-relation-to-Endpoint-2B.xml new file mode 100644 index 0000000..2a1787b --- /dev/null +++ b/neethi/test/policies/Policy-for-Operation-2B-in-relation-to-Endpoint-2B.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion54 marker="54" /> + <pa:Assertion18 marker="18" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-OutFault-in-Operation-1A-in-relation-to-Endpoint-1A.xml b/neethi/test/policies/Policy-for-OutFault-in-Operation-1A-in-relation-to-Endpoint-1A.xml new file mode 100644 index 0000000..084aa48 --- /dev/null +++ b/neethi/test/policies/Policy-for-OutFault-in-Operation-1A-in-relation-to-Endpoint-1A.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion26 marker="26" /> + <pa:Assertion7 marker="7" /> + <pa:Assertion3 marker="3" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-OutFault-in-Operation-1A-in-relation-to-Endpoint-1B.xml b/neethi/test/policies/Policy-for-OutFault-in-Operation-1A-in-relation-to-Endpoint-1B.xml new file mode 100644 index 0000000..7873554 --- /dev/null +++ b/neethi/test/policies/Policy-for-OutFault-in-Operation-1A-in-relation-to-Endpoint-1B.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion35 marker="35" /> + <pa:Assertion7 marker="7" /> + <pa:Assertion3 marker="3" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-OutFault-in-Operation-1B-in-relation-to-Endpoint-1A.xml b/neethi/test/policies/Policy-for-OutFault-in-Operation-1B-in-relation-to-Endpoint-1A.xml new file mode 100644 index 0000000..83acbfb --- /dev/null +++ b/neethi/test/policies/Policy-for-OutFault-in-Operation-1B-in-relation-to-Endpoint-1A.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion30 marker="30" /> + <pa:Assertion11 marker="11" /> + <pa:Assertion3 marker="3" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-OutFault-in-Operation-1B-in-relation-to-Endpoint-1B.xml b/neethi/test/policies/Policy-for-OutFault-in-Operation-1B-in-relation-to-Endpoint-1B.xml new file mode 100644 index 0000000..238a6dc --- /dev/null +++ b/neethi/test/policies/Policy-for-OutFault-in-Operation-1B-in-relation-to-Endpoint-1B.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion39 marker="39" /> + <pa:Assertion11 marker="11" /> + <pa:Assertion3 marker="3" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-OutFault-in-Operation-2A-in-relation-to-Endpoint-2A.xml b/neethi/test/policies/Policy-for-OutFault-in-Operation-2A-in-relation-to-Endpoint-2A.xml new file mode 100644 index 0000000..df84817 --- /dev/null +++ b/neethi/test/policies/Policy-for-OutFault-in-Operation-2A-in-relation-to-Endpoint-2A.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion44 marker="44" /> + <pa:Assertion17 marker="17" /> + <pa:Assertion13 marker="13" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-OutFault-in-Operation-2A-in-relation-to-Endpoint-2B.xml b/neethi/test/policies/Policy-for-OutFault-in-Operation-2A-in-relation-to-Endpoint-2B.xml new file mode 100644 index 0000000..83c6448 --- /dev/null +++ b/neethi/test/policies/Policy-for-OutFault-in-Operation-2A-in-relation-to-Endpoint-2B.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion53 marker="53" /> + <pa:Assertion17 marker="17" /> + <pa:Assertion13 marker="13" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-OutFault-in-Operation-2B-in-relation-to-Endpoint-2A.xml b/neethi/test/policies/Policy-for-OutFault-in-Operation-2B-in-relation-to-Endpoint-2A.xml new file mode 100644 index 0000000..e448339 --- /dev/null +++ b/neethi/test/policies/Policy-for-OutFault-in-Operation-2B-in-relation-to-Endpoint-2A.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion48 marker="48" /> + <pa:Assertion21 marker="21" /> + <pa:Assertion13 marker="13" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-OutFault-in-Operation-2B-in-relation-to-Endpoint-2B.xml b/neethi/test/policies/Policy-for-OutFault-in-Operation-2B-in-relation-to-Endpoint-2B.xml new file mode 100644 index 0000000..f0332c8 --- /dev/null +++ b/neethi/test/policies/Policy-for-OutFault-in-Operation-2B-in-relation-to-Endpoint-2B.xml @@ -0,0 +1,11 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion57 marker="57" /> + <pa:Assertion21 marker="21" /> + <pa:Assertion13 marker="13" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Output-in-Operation-1A-in-relation-to-Endpoint-1A.xml b/neethi/test/policies/Policy-for-Output-in-Operation-1A-in-relation-to-Endpoint-1A.xml new file mode 100644 index 0000000..7bb10e5 --- /dev/null +++ b/neethi/test/policies/Policy-for-Output-in-Operation-1A-in-relation-to-Endpoint-1A.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion25 marker="25" /> + <pa:Assertion6 marker="6" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Output-in-Operation-1A-in-relation-to-Endpoint-1B.xml b/neethi/test/policies/Policy-for-Output-in-Operation-1A-in-relation-to-Endpoint-1B.xml new file mode 100644 index 0000000..76493bb --- /dev/null +++ b/neethi/test/policies/Policy-for-Output-in-Operation-1A-in-relation-to-Endpoint-1B.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion34 marker="34" /> + <pa:Assertion6 marker="6" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Output-in-Operation-1B-in-relation-to-Endpoint-1A.xml b/neethi/test/policies/Policy-for-Output-in-Operation-1B-in-relation-to-Endpoint-1A.xml new file mode 100644 index 0000000..f4734e7 --- /dev/null +++ b/neethi/test/policies/Policy-for-Output-in-Operation-1B-in-relation-to-Endpoint-1A.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion29 marker="29" /> + <pa:Assertion10 marker="10" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Output-in-Operation-1B-in-relation-to-Endpoint-1B.xml b/neethi/test/policies/Policy-for-Output-in-Operation-1B-in-relation-to-Endpoint-1B.xml new file mode 100644 index 0000000..4bffd4e --- /dev/null +++ b/neethi/test/policies/Policy-for-Output-in-Operation-1B-in-relation-to-Endpoint-1B.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion38 marker="38" /> + <pa:Assertion10 marker="10" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Output-in-Operation-2A-in-relation-to-Endpoint-2A.xml b/neethi/test/policies/Policy-for-Output-in-Operation-2A-in-relation-to-Endpoint-2A.xml new file mode 100644 index 0000000..3cdbe39 --- /dev/null +++ b/neethi/test/policies/Policy-for-Output-in-Operation-2A-in-relation-to-Endpoint-2A.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion43 marker="43" /> + <pa:Assertion16 marker="16" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Output-in-Operation-2A-in-relation-to-Endpoint-2B.xml b/neethi/test/policies/Policy-for-Output-in-Operation-2A-in-relation-to-Endpoint-2B.xml new file mode 100644 index 0000000..54be84f --- /dev/null +++ b/neethi/test/policies/Policy-for-Output-in-Operation-2A-in-relation-to-Endpoint-2B.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion52 marker="52" /> + <pa:Assertion16 marker="16" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Output-in-Operation-2B-in-relation-to-Endpoint-2A.xml b/neethi/test/policies/Policy-for-Output-in-Operation-2B-in-relation-to-Endpoint-2A.xml new file mode 100644 index 0000000..a891bfc --- /dev/null +++ b/neethi/test/policies/Policy-for-Output-in-Operation-2B-in-relation-to-Endpoint-2A.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion47 marker="47" /> + <pa:Assertion20 marker="20" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Output-in-Operation-2B-in-relation-to-Endpoint-2B.xml b/neethi/test/policies/Policy-for-Output-in-Operation-2B-in-relation-to-Endpoint-2B.xml new file mode 100644 index 0000000..4dfc80a --- /dev/null +++ b/neethi/test/policies/Policy-for-Output-in-Operation-2B-in-relation-to-Endpoint-2B.xml @@ -0,0 +1,10 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion56 marker="56" /> + <pa:Assertion20 marker="20" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Service-1.xml b/neethi/test/policies/Policy-for-Service-1.xml new file mode 100644 index 0000000..a94a159 --- /dev/null +++ b/neethi/test/policies/Policy-for-Service-1.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion58 marker="58" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/Policy-for-Service-2.xml b/neethi/test/policies/Policy-for-Service-2.xml new file mode 100644 index 0000000..b57b6cf --- /dev/null +++ b/neethi/test/policies/Policy-for-Service-2.xml @@ -0,0 +1,9 @@ +<?xml version="1.0" encoding="UTF-8"?> +<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" + xmlns:pa="http://ws-policy.example.com/assertion" > + <wsp:ExactlyOne> + <wsp:All> + <pa:Assertion61 marker="61" /> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/PolicyAttachments.wsdl b/neethi/test/policies/PolicyAttachments.wsdl new file mode 100644 index 0000000..acf07c1 --- /dev/null +++ b/neethi/test/policies/PolicyAttachments.wsdl @@ -0,0 +1,448 @@ +<?xml version="1.0" encoding="UTF-8"?> + +<!-- Round 2 test cases for testing effective policy + computations for policies attached to WSDL 20 policy subjects. + + xmlns:wsp="http://www.w3.org/ns/ws-policy" + + --> + +<wsdl20:description xmlns:xsd="http://www.w3.org/2001/XMLSchema" + xmlns:wsdl20="http://www.w3.org/2006/01/wsdl" + xmlns:wsoap="http://www.w3.org/2006/01/wsdl/soap" + xmlns:wsp="http://www.w3.org/ns/ws-policy" + xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd" + xmlns:pa="http://ws-policy.example.com/assertion" + xmlns:s="http://schema.example.com/test" + targetNamespace="http://ws-policy.example.com/test" + xmlns:tns="http://ws-policy.example.com/test" + xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" + xsi:schemaLocation="http://www.w3.org/2001/XMLSchema http://www.w3.org/2001/XMLSchema.xsd + http://www.w3.org/2006/01/wsdl http://www.w3.org/2006/03/wsdl/wsdl20.xsd + http://www.w3.org/2006/01/wsdl/soap http://www.w3.org/2006/03/wsdl/soap.xsd + http://www.w3.org/ns/ws-policy http://www.w3.org/2002/ws/policy/ns/ws-policy"> + + <wsp:Policy wsu:Id="Policy1"> + <pa:Assertion1 marker="1"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy2"> + <pa:Assertion2 marker="2"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy3"> + <pa:Assertion3 marker="3"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy4"> + <pa:Assertion4 marker="4"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy5"> + <pa:Assertion5 marker="5"/> + <wsp:PolicyReference URI="#Policy2"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy6"> + <pa:Assertion6 marker="6"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy7"> + <pa:Assertion7 marker="7"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy8"> + <pa:Assertion8 marker="8"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy9"> + <pa:Assertion9 marker="9"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy10"> + <pa:Assertion10 marker="10"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy11"> + <pa:Assertion11 marker="11"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy12"> + <pa:Assertion12 marker="12"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy13"> + <pa:Assertion13 marker="13"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy14"> + <pa:Assertion14 marker="14"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy15"> + <pa:Assertion15 marker="15"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy16"> + <pa:Assertion16 marker="16"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy17"> + <pa:Assertion17 marker="17"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy18"> + <pa:Assertion18 marker="18"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy19"> + <pa:Assertion19 marker="19"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy20"> + <pa:Assertion20 marker="20"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy21"> + <pa:Assertion21 marker="21"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy22"> + <pa:Assertion22 marker="22"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy23"> + <pa:Assertion23 marker="23"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy24"> + <pa:Assertion24 marker="24"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy25"> + <pa:Assertion25 marker="25"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy26"> + <pa:Assertion26 marker="26"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy27"> + <pa:Assertion27 marker="27"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy28"> + <pa:Assertion28 marker="28"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy29"> + <pa:Assertion29 marker="29"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy30"> + <pa:Assertion30 marker="30"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy31"> + <pa:Assertion31 marker="31"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy32"> + <pa:Assertion32 marker="32"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy33"> + <pa:Assertion33 marker="33"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy34"> + <pa:Assertion34 marker="34"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy35"> + <pa:Assertion35 marker="35"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy36"> + <pa:Assertion36 marker="36"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy37"> + <pa:Assertion37 marker="37"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy38"> + <pa:Assertion38 marker="38"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy39"> + <pa:Assertion39 marker="39"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy40"> + <pa:Assertion40 marker="40"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy41"> + <pa:Assertion41 marker="41"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy42"> + <pa:Assertion42 marker="42"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy43"> + <pa:Assertion43 marker="43"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy44"> + <pa:Assertion44 marker="44"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy45"> + <pa:Assertion45 marker="45"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy46"> + <pa:Assertion46 marker="46"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy47"> + <pa:Assertion47 marker="47"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy48"> + <pa:Assertion48 marker="48"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy49"> + <pa:Assertion49 marker="49"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy50"> + <pa:Assertion50 marker="50"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy51"> + <pa:Assertion51 marker="51"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy52"> + <pa:Assertion52 marker="52"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy53"> + <pa:Assertion53 marker="53"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy54"> + <pa:Assertion54 marker="54"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy55"> + <pa:Assertion55 marker="55"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy56"> + <pa:Assertion56 marker="56"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy57"> + <pa:Assertion57 marker="57"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy58"> + <pa:Assertion58 marker="58"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy59"> + <pa:Assertion59 marker="59"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy60"> + <pa:Assertion60 marker="60"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy61"> + <pa:Assertion61 marker="61"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy62"> + <pa:Assertion62 marker="62"/> + </wsp:Policy> + <wsp:Policy wsu:Id="Policy63"> + <pa:Assertion63 marker="63"/> + </wsp:Policy> + + <wsdl20:types> + <xsd:schema elementFormDefault="qualified" targetNamespace="http://schema.example.com/test"> + <xsd:element name="SimpleRequest"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="request" nillable="true" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + <xsd:element name="SimpleResponse"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="response" nillable="true" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + <xsd:element name="SimpleFault"> + <xsd:complexType> + <xsd:sequence> + <xsd:element name="fault" nillable="true" type="xsd:string"/> + </xsd:sequence> + </xsd:complexType> + </xsd:element> + </xsd:schema> + </wsdl20:types> + + <wsdl20:interface name="Base-Interface"> + <wsp:PolicyReference URI="#Policy1"></wsp:PolicyReference> + </wsdl20:interface> + + <wsdl20:interface name="Interface-1" extends="tns:Base-Interface"> + <wsp:PolicyReference URI="#Policy2"></wsp:PolicyReference> + <wsdl20:fault name="Fault-1" element="s:SimpleFault"> + <wsp:PolicyReference URI="#Policy3"></wsp:PolicyReference> + </wsdl20:fault> + <wsdl20:operation name="Operation-1A" pattern="http://www.w3.org/2006/01/wsdl/in-out"> + <wsp:PolicyReference URI="#Policy4"></wsp:PolicyReference> + <wsdl20:input element="s:SimpleRequest"> + <wsp:PolicyReference URI="#Policy5"></wsp:PolicyReference> + </wsdl20:input> + <wsdl20:output element="s:SimpleResponse"> + <wsp:PolicyReference URI="#Policy6"></wsp:PolicyReference> + </wsdl20:output> + <wsdl20:outfault ref="tns:Fault-1"> + <wsp:PolicyReference URI="#Policy7"></wsp:PolicyReference> + </wsdl20:outfault> + </wsdl20:operation> + <wsdl20:operation name="Operation-1B" pattern="http://www.w3.org/2006/01/wsdl/in-out"> + <wsp:PolicyReference URI="#Policy8"></wsp:PolicyReference> + <wsdl20:input element="s:SimpleRequest"> + <wsp:PolicyReference URI="#Policy9"></wsp:PolicyReference> + </wsdl20:input> + <wsdl20:output element="s:SimpleResponse"> + <wsp:PolicyReference URI="#Policy10"></wsp:PolicyReference> + </wsdl20:output> + <wsdl20:outfault ref="tns:Fault-1"> + <wsp:PolicyReference URI="#Policy11"></wsp:PolicyReference> + </wsdl20:outfault> + </wsdl20:operation> + </wsdl20:interface> + + <wsdl20:interface name="Interface-2" extends="tns:Base-Interface"> + <wsp:PolicyReference URI="#Policy12"></wsp:PolicyReference> + <wsdl20:fault name="Fault-2" element="s:SimpleFault"> + <wsp:PolicyReference URI="#Policy13"></wsp:PolicyReference> + </wsdl20:fault> + <wsdl20:operation name="Operation-2A" pattern="http://www.w3.org/2006/01/wsdl/in-out"> + <wsp:PolicyReference URI="#Policy14"></wsp:PolicyReference> + <wsdl20:input element="s:SimpleRequest"> + <wsp:PolicyReference URI="#Policy15"></wsp:PolicyReference> + </wsdl20:input> + <wsdl20:output element="s:SimpleResponse"> + <wsp:PolicyReference URI="#Policy16"></wsp:PolicyReference> + </wsdl20:output> + <wsdl20:outfault ref="tns:Fault-2"> + <wsp:PolicyReference URI="#Policy17"></wsp:PolicyReference> + </wsdl20:outfault> + </wsdl20:operation> + <wsdl20:operation name="Operation-2B" pattern="http://www.w3.org/2006/01/wsdl/in-out"> + <wsp:PolicyReference URI="#Policy18"></wsp:PolicyReference> + <wsdl20:input element="s:SimpleRequest"> + <wsp:PolicyReference URI="#Policy19"></wsp:PolicyReference> + </wsdl20:input> + <wsdl20:output element="s:SimpleResponse"> + <wsp:PolicyReference URI="#Policy20"></wsp:PolicyReference> + </wsdl20:output> + <wsdl20:outfault ref="tns:Fault-2"> + <wsp:PolicyReference URI="#Policy21"></wsp:PolicyReference> + </wsdl20:outfault> + </wsdl20:operation> + </wsdl20:interface> + + <wsdl20:binding name="Binding-1A" interface="tns:Interface-1" + type="http://www.w3.org/2006/01/wsdl/soap" + wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/"> + <wsp:PolicyReference URI="#Policy22"></wsp:PolicyReference> + <wsdl20:operation ref="tns:Operation-1A"> + <wsp:PolicyReference URI="#Policy23"></wsp:PolicyReference> + <wsdl20:input> + <wsp:PolicyReference URI="#Policy24"></wsp:PolicyReference> + </wsdl20:input> + <wsdl20:output> + <wsp:PolicyReference URI="#Policy25"></wsp:PolicyReference> + </wsdl20:output> + <wsdl20:outfault ref="tns:Fault-1"> + <wsp:PolicyReference URI="#Policy26"></wsp:PolicyReference> + </wsdl20:outfault> + </wsdl20:operation> + <wsdl20:operation ref="tns:Operation-1B"> + <wsp:PolicyReference URI="#Policy27"></wsp:PolicyReference> + <wsdl20:input> + <wsp:PolicyReference URI="#Policy28"></wsp:PolicyReference> + </wsdl20:input> + <wsdl20:output> + <wsp:PolicyReference URI="#Policy29"></wsp:PolicyReference> + </wsdl20:output> + <wsdl20:outfault ref="tns:Fault-1"> + <wsp:PolicyReference URI="#Policy30"></wsp:PolicyReference> + </wsdl20:outfault> + </wsdl20:operation> + </wsdl20:binding> + + <wsdl20:binding name="Binding-1B" interface="tns:Interface-1" + type="http://www.w3.org/2006/01/wsdl/soap" + wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/"> + <wsp:PolicyReference URI="#Policy31"></wsp:PolicyReference> + <wsdl20:operation ref="tns:Operation-1A"> + <wsp:PolicyReference URI="#Policy32"></wsp:PolicyReference> + <wsdl20:input> + <wsp:PolicyReference URI="#Policy33"></wsp:PolicyReference> + </wsdl20:input> + <wsdl20:output> + <wsp:PolicyReference URI="#Policy34"></wsp:PolicyReference> + </wsdl20:output> + <wsdl20:outfault ref="tns:Fault-1"> + <wsp:PolicyReference URI="#Policy35"></wsp:PolicyReference> + </wsdl20:outfault> + </wsdl20:operation> + <wsdl20:operation ref="tns:Operation-1B"> + <wsp:PolicyReference URI="#Policy36"></wsp:PolicyReference> + <wsdl20:input> + <wsp:PolicyReference URI="#Policy37"></wsp:PolicyReference> + </wsdl20:input> + <wsdl20:output> + <wsp:PolicyReference URI="#Policy38"></wsp:PolicyReference> + </wsdl20:output> + <wsdl20:outfault ref="tns:Fault-1"> + <wsp:PolicyReference URI="#Policy39"></wsp:PolicyReference> + </wsdl20:outfault> + </wsdl20:operation> + </wsdl20:binding> + + <wsdl20:binding name="Binding-2A" interface="tns:Interface-2" + type="http://www.w3.org/2006/01/wsdl/soap" + wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/"> + <wsp:PolicyReference URI="#Policy40"></wsp:PolicyReference> + <wsdl20:operation ref="tns:Operation-2A"> + <wsp:PolicyReference URI="#Policy41"></wsp:PolicyReference> + <wsdl20:input> + <wsp:PolicyReference URI="#Policy42"></wsp:PolicyReference> + </wsdl20:input> + <wsdl20:output> + <wsp:PolicyReference URI="#Policy43"></wsp:PolicyReference> + </wsdl20:output> + <wsdl20:outfault ref="tns:Fault-2"> + <wsp:PolicyReference URI="#Policy44"></wsp:PolicyReference> + </wsdl20:outfault> + </wsdl20:operation> + <wsdl20:operation ref="tns:Operation-2B"> + <wsp:PolicyReference URI="#Policy45"></wsp:PolicyReference> + <wsdl20:input> + <wsp:PolicyReference URI="#Policy46"></wsp:PolicyReference> + </wsdl20:input> + <wsdl20:output> + <wsp:PolicyReference URI="#Policy47"></wsp:PolicyReference> + </wsdl20:output> + <wsdl20:outfault ref="tns:Fault-2"> + <wsp:PolicyReference URI="#Policy48"></wsp:PolicyReference> + </wsdl20:outfault> + </wsdl20:operation> + </wsdl20:binding> + + <wsdl20:binding name="Binding-2B" interface="tns:Interface-2" + type="http://www.w3.org/2006/01/wsdl/soap" + wsoap:protocol="http://www.w3.org/2003/05/soap/bindings/HTTP/"> + <wsp:PolicyReference URI="#Policy49"></wsp:PolicyReference> + <wsdl20:operation ref="tns:Operation-2A"> + <wsp:PolicyReference URI="#Policy50"></wsp:PolicyReference> + <wsdl20:input> + <wsp:PolicyReference URI="#Policy51"></wsp:PolicyReference> + </wsdl20:input> + <wsdl20:output> + <wsp:PolicyReference URI="#Policy52"></wsp:PolicyReference> + </wsdl20:output> + <wsdl20:outfault ref="tns:Fault-2"> + <wsp:PolicyReference URI="#Policy53"></wsp:PolicyReference> + </wsdl20:outfault> + </wsdl20:operation> + <wsdl20:operation ref="tns:Operation-2B"> + <wsp:PolicyReference URI="#Policy54"></wsp:PolicyReference> + <wsdl20:input> + <wsp:PolicyReference URI="#Policy55"></wsp:PolicyReference> + </wsdl20:input> + <wsdl20:output> + <wsp:PolicyReference URI="#Policy56"></wsp:PolicyReference> + </wsdl20:output> + <wsdl20:outfault ref="tns:Fault-2"> + <wsp:PolicyReference URI="#Policy57"></wsp:PolicyReference> + </wsdl20:outfault> + </wsdl20:operation> + </wsdl20:binding> + + <wsdl20:service name="Service-1" interface="tns:Interface-1"> + <wsp:PolicyReference URI="#Policy58"></wsp:PolicyReference> + <wsdl20:endpoint name="Endpoint-1A" binding="Binding-1A"> + <wsp:PolicyReference URI="#Policy59"></wsp:PolicyReference> + </wsdl20:endpoint> + <wsdl20:endpoint name="Endpoint-1B" binding="Binding-1B"> + <wsp:PolicyReference URI="#Policy60"></wsp:PolicyReference> + </wsdl20:endpoint> + </wsdl20:service> + + <wsdl20:service name="Service-2" interface="tns:Interface-2"> + <wsp:PolicyReference URI="#Policy61"></wsp:PolicyReference> + <wsdl20:endpoint name="Endpoint-2A" binding="Binding-2A"> + <wsp:PolicyReference URI="#Policy62"></wsp:PolicyReference> + </wsdl20:endpoint> + <wsdl20:endpoint name="Endpoint-2B" binding="Binding-2A"> + <wsp:PolicyReference URI="#Policy63"></wsp:PolicyReference> + </wsdl20:endpoint> + </wsdl20:service> + +</wsdl20:description> diff --git a/neethi/test/policies/asymmetric_binding_policy.xml b/neethi/test/policies/asymmetric_binding_policy.xml new file mode 100644 index 0000000..da136af --- /dev/null +++ b/neethi/test/policies/asymmetric_binding_policy.xml @@ -0,0 +1,70 @@ +<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> + <wsp:ExactlyOne> + <wsp:All> + <sp:AsymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:InitiatorToken> + <wsp:Policy> + <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"> + <wsp:Policy> + <sp:WssX509V3Token10/> + </wsp:Policy> + </sp:X509Token> + </wsp:Policy> + </sp:InitiatorToken> + <sp:RecipientToken> + <wsp:Policy> + <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never"> + <wsp:Policy> + <sp:WssX509V3Token10/> + </wsp:Policy> + </sp:X509Token> + </wsp:Policy> + </sp:RecipientToken> + <sp:AlgorithmSuite> + <wsp:Policy> + <sp:Basic256Rsa15/> + </wsp:Policy> + </sp:AlgorithmSuite> + <sp:Layout> + <wsp:Policy> + <sp:Strict/> + </wsp:Policy> + </sp:Layout> + <sp:IncludeTimestamp/> + <sp:EncryptSignature/> + <sp:EncryptBeforeSigning/> + </wsp:Policy> + </sp:AsymmetricBinding> + <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Always"/> + </wsp:Policy> + </sp:SignedSupportingTokens> + <sp:Wss10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:MustSupportRefKeyIdentifier/> + <sp:MustSupportRefEmbeddedToken/> + <sp:MustSupportRefIssuerSerial/> + </wsp:Policy> + </sp:Wss10> + <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <sp:Body/> + </sp:EncryptedParts> + <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <sp:Body/> + <sp:Header Namespace="http://www.w3.org/2005/08/addressing"/> + </sp:SignedParts> + <rampc:RampartConfig xmlns:rampc="http://ws.apache.org/rampart/c/policy"> + <rampc:User>Alice</rampc:User> + <rampc:TimeToLive>360</rampc:TimeToLive> + <rampc:EncryptionUser>a</rampc:EncryptionUser> + <rampc:PasswordType>Digest</rampc:PasswordType> + <rampc:PasswordCallbackClass>AXIS2C_HOME/bin/samples/rampart/callback/libpwcb.so</rampc:PasswordCallbackClass> + <rampc:ReceiverCertificate>AXIS2C_HOME/bin/samples/rampart/keys/ahome/bob_cert.cert</rampc:ReceiverCertificate> + <rampc:Certificate>AXIS2C_HOME/bin/samples/rampart/keys/ahome/alice_cert.cert</rampc:Certificate> + <rampc:PrivateKey>AXIS2C_HOME/bin/samples/rampart/keys/ahome/alice_key.pem</rampc:PrivateKey> + </rampc:RampartConfig> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/rm-1.0.xml b/neethi/test/policies/rm-1.0.xml new file mode 100644 index 0000000..353e1ba --- /dev/null +++ b/neethi/test/policies/rm-1.0.xml @@ -0,0 +1,21 @@ +<wsp:Policy wsu:Id="RmPolicy" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsrm="http://schemas.xmlsoap.org/ws/2005/02/rm/policy" xmlns:sanc="http://ws.apache.org/sandesha2/c/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> + <wsp:ExactlyOne> + <wsp:All> + <wsrm:RMAssertion> + <wsrm:InactivityTimeout Milliseconds="600000"/> + <wsrm:AcknowledgementInterval Milliseconds="200"/> + <wsrm:BaseRetransmissionInterval Milliseconds="300"/> + <wsrm:ExponentialBackoff/> + <sanc:sandesha2_db>/tmp/sandesha2_db</sanc:sandesha2_db> + <sanc:InactivityTimeout>64</sanc:InactivityTimeout> + <sanc:StorageManager>persistent</sanc:StorageManager> + <sanc:MessageTypesToDrop>none</sanc:MessageTypesToDrop> + <sanc:MaxRetransCount>10</sanc:MaxRetransCount> + <sanc:SenderSleepTime>1</sanc:SenderSleepTime><!--In seconds--> + <sanc:InvokerSleepTime>1</sanc:InvokerSleepTime> + <sanc:PollingWaitTime>4</sanc:PollingWaitTime> + <sanc:TerminateDelay>4</sanc:TerminateDelay> + </wsrm:RMAssertion> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/rm-1.1.xml b/neethi/test/policies/rm-1.1.xml new file mode 100644 index 0000000..6c60dbc --- /dev/null +++ b/neethi/test/policies/rm-1.1.xml @@ -0,0 +1,27 @@ +<wsp:Policy wsu:Id="RmPolicy" xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy" xmlns:wsrmp="http://docs.oasis-open.org/ws-rx/wsrmp/200702" xmlns:sanc="http://ws.apache.org/sandesha2/c/policy" xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd"> + <wsp:ExactlyOne> + <wsp:All> + <wsrmp:RMAssertion> + <wsp:Policy> + <wsrmp:DeliveryAssurance> + <wsp:Policy> + <wsrmp:ExactlyOnce/> + <wsrmp:InOrder/> + </wsp:Policy> + </wsrmp:DeliveryAssurance> + </wsp:Policy> + <sanc:InactivityTimeout>600000</sanc:InactivityTimeout> + <sanc:AcknowledgementInterval>200</sanc:AcknowledgementInterval> + <sanc:BaseRetransmissionInterval>300</sanc:BaseRetransmissionInterval> + <sanc:sandesha2_db>/tmp/sandesha2_db</sanc:sandesha2_db> + <sanc:StorageManager>persistent</sanc:StorageManager> + <sanc:MessageTypesToDrop>none</sanc:MessageTypesToDrop> + <sanc:MaxRetransCount>10</sanc:MaxRetransCount> + <sanc:SenderSleepTime>1</sanc:SenderSleepTime><!--In seconds--> + <sanc:InvokerSleepTime>1</sanc:InvokerSleepTime> + <sanc:PollingWaitTime>4</sanc:PollingWaitTime> + <sanc:TerminateDelay>4</sanc:TerminateDelay> + </wsrmp:RMAssertion> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> diff --git a/neethi/test/policies/symmetric_binding_policy.xml b/neethi/test/policies/symmetric_binding_policy.xml new file mode 100644 index 0000000..3db3ed8 --- /dev/null +++ b/neethi/test/policies/symmetric_binding_policy.xml @@ -0,0 +1,75 @@ +<wsp:Policy xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy"> + <wsp:ExactlyOne> + <wsp:All> + <sp:SymmetricBinding xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:ProtectionToken> + <wsp:Policy> + <sp:X509Token sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/Never"> + <wsp:Policy> + <sp:RequireDerivedKeys/> + <sp:RequireThumbprintReference/> + <sp:WssX509V3Token10/> + </wsp:Policy> + </sp:X509Token> + </wsp:Policy> + </sp:ProtectionToken> + <sp:AlgorithmSuite> + <wsp:Policy> + <sp:Basic256/> + </wsp:Policy> + </sp:AlgorithmSuite> + <sp:Layout> + <wsp:Policy> + <sp:Strict/> + </wsp:Policy> + </sp:Layout> + <sp:IncludeTimestamp/> + <sp:EncryptSignature/> + <sp:OnlySignEntireHeadersAndBody/> + </wsp:Policy> + </sp:SymmetricBinding> + <sp:SignedSupportingTokens xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:UsernameToken sp:IncludeToken="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy/IncludeToken/AlwaysToRecipient"> + <wsp:Policy> + <sp:WssUsernameToken10/> + </wsp:Policy> + </sp:UsernameToken> + </wsp:Policy> + </sp:SignedSupportingTokens> + <sp:Wss11 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:MustSupportRefKeyIdentifier/> + <sp:MustSupportRefIssuerSerial/> + <sp:MustSupportRefThumbprint/> + <sp:MustSupportRefEncryptedKey/> + </wsp:Policy> + </sp:Wss11> + <sp:Trust10 xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <wsp:Policy> + <sp:MustSupportIssuedTokens/> + <sp:RequireClientEntropy/> + <sp:RequireServerEntropy/> + </wsp:Policy> + </sp:Trust10> + <sp:EncryptedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <sp:Body/> + </sp:EncryptedParts> + <sp:SignedParts xmlns:sp="http://schemas.xmlsoap.org/ws/2005/07/securitypolicy"> + <sp:Body/> + <sp:Header Namespace="http://www.w3.org/2005/08/addressing"/> + </sp:SignedParts> + <rampc:RampartConfig xmlns:rampc="http://ws.apache.org/rampart/c/policy"> + <rampc:User>Alice</rampc:User> + <rampc:TimeToLive>360</rampc:TimeToLive> + <rampc:EncryptionUser>a</rampc:EncryptionUser> + <rampc:PasswordType>Digest</rampc:PasswordType> + <rampc:PasswordCallbackClass>AXIS2C_HOME/bin/samples/rampart/callback/libpwcb.so</rampc:PasswordCallbackClass> + <rampc:ReceiverCertificate>AXIS2C_HOME/bin/samples/rampart/keys/ahome/bob_cert.cert</rampc:ReceiverCertificate> + <rampc:Certificate>AXIS2C_HOME/bin/samples/rampart/keys/ahome/alice_cert.cert</rampc:Certificate> + <rampc:PrivateKey>AXIS2C_HOME/bin/samples/rampart/keys/ahome/alice_key.pem</rampc:PrivateKey> + </rampc:RampartConfig> + </wsp:All> + </wsp:ExactlyOne> +</wsp:Policy> |