Author: sguilhen(a)redhat.com
Date: 2010-09-30 17:45:34 -0400 (Thu, 30 Sep 2010)
New Revision: 423
Added:
federation/trunk/picketlink-fed-parser/
federation/trunk/picketlink-fed-parser/src/
federation/trunk/picketlink-fed-parser/src/main/
federation/trunk/picketlink-fed-parser/src/main/java/
federation/trunk/picketlink-fed-parser/src/main/resources/
federation/trunk/picketlink-fed-parser/src/test/
federation/trunk/picketlink-fed-parser/src/test/java/
federation/trunk/picketlink-fed-parser/src/test/resources/
federation/trunk/picketlink-fed-parser/src/test/resources/config/
federation/trunk/picketlink-fed-parser/src/test/resources/config/picketlink-sts.xml
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-batch-issue.xml
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-batch-validate.xml
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-cancel-saml.xml
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-appliesto.xml
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-onbehalfof.xml
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-public-certificate.xml
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-public-key.xml
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-symmetric-key.xml
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue.xml
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-renew-saml.xml
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-validate-saml.xml
Log:
Created picketlink-fed-parser module and added sample configuration/ws-trust XML files for
testing
Added:
federation/trunk/picketlink-fed-parser/src/test/resources/config/picketlink-sts.xml
===================================================================
--- federation/trunk/picketlink-fed-parser/src/test/resources/config/picketlink-sts.xml
(rev 0)
+++
federation/trunk/picketlink-fed-parser/src/test/resources/config/picketlink-sts.xml 2010-09-30
21:45:34 UTC (rev 423)
@@ -0,0 +1,20 @@
+<PicketLinkSTS xmlns="urn:picketlink:identity-federation:config:1.0"
+ STSName="PicketLinkSTS" TokenTimeout="7200"
EncryptToken="false">
+ <KeyProvider
ClassName="org.picketlink.identity.federation.core.impl.KeyStoreKeyManager">
+ <Auth Key="KeyStoreURL" Value="sts_keystore.jks"/>
+ <Auth Key="KeyStorePass" Value="testpass"/>
+ <Auth Key="SigningKeyAlias" Value="sts"/>
+ <Auth Key="SigningKeyPass" Value="keypass"/>
+ <ValidatingAlias
Key="http://services.testcorp.org/provider1"
Value="service1"/>
+ </KeyProvider>
+ <TokenProviders>
+ <TokenProvider
ProviderClass="org.picketlink.identity.federation.core.wstrust.plugins.saml.SAML20TokenProvider"
+
TokenType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profi...
+ TokenElement="Assertion"
+ TokenElementNS="urn:oasis:names:tc:SAML:2.0:assertion"/>
+ </TokenProviders>
+ <ServiceProviders>
+ <ServiceProvider
Endpoint="http://services.testcorp.org/provider1"
TokenType="http://docs.oasis-open.org/wss/oasis-wss-saml-token-profi...
+ TruststoreAlias="service1"/>
+ </ServiceProviders>
+</PicketLinkSTS>
Added:
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-batch-issue.xml
===================================================================
--- federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-batch-issue.xml
(rev 0)
+++
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-batch-issue.xml 2010-09-30
21:45:34 UTC (rev 423)
@@ -0,0 +1,10 @@
+<wst:RequestSecurityTokenCollection
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
+ <wst:RequestSecurityToken Context="context1">
+
<
wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Batch...
+
<
wst:TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-prof...
+ </wst:RequestSecurityToken>
+ <wst:RequestSecurityToken Context="context2">
+
<
wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Batch...
+ <
wst:TokenType>http://www.tokens.org/SpecialToken</wst:TokenType>
+ </wst:RequestSecurityToken>
+</wst:RequestSecurityTokenCollection>
Added:
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-batch-validate.xml
===================================================================
---
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-batch-validate.xml
(rev 0)
+++
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-batch-validate.xml 2010-09-30
21:45:34 UTC (rev 423)
@@ -0,0 +1,98 @@
+<wst:RequestSecurityTokenCollection
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512">
+ <wst:RequestSecurityToken Context="validatecontext1">
+
<
wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Batch...
+
<
wst:TokenType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/St...
+ <wst:ValidateTarget>
+ <saml2:Assertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
ID="ID_ab0392ef-b557-4453-95a8-a7e168da8ac5"
+ IssueInstant="2010-09-30T19:13:37.869Z" Version="2.0">
+ <saml2:Issuer>Test STS</saml2:Issuer>
+ <saml2:Subject>
+ <saml2:NameID
NameQualifier="urn:picketlink:identity-federation">jduke</saml2:NameID>
+ <saml2:SubjectConfirmation
Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"/>
+ </saml2:Subject>
+ <saml2:Conditions NotBefore="2010-09-30T19:13:37.869Z"
NotOnOrAfter="2010-09-30T21:13:37.869Z"/>
+ <ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
+ <ds:SignedInfo>
+ <ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"...
+ <ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmlds#rsa-sha1"/>
+ <ds:Reference
URI="#ID_ab0392ef-b557-4453-95a8-a7e168da8ac5">
+ <ds:Transforms>
+ <ds:Transform
Algorithm="http://www.w3.org/2000/09/xmlds#enveloped-signature"...
+ <ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+ </ds:Transforms>
+ <ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmlds#sha1"/>
+ <ds:DigestValue>0Y9QM5c5qCShz5UWmbFzBmbuTus=</ds:DigestValue>
+ </ds:Reference>
+ </ds:SignedInfo>
+ <ds:SignatureValue>
+se/flQ2htUQ0IUYieVkXNn9cfjnfgv6H99nFarsTNTpRI9xuSlw5OTai/2PYdZI2Va9+QzzBf99m
+VFyigfFdfrqug6aKFhF0lsujzlFfPfmXBbDRiTFX+4SkBeV71uuy7rOUI/jRiitEA0QrKqs0e/pV
++C8PoaariisK96Mtt7A=
+ </ds:SignatureValue>
+ <ds:KeyInfo>
+ <ds:KeyValue>
+ <ds:RSAKeyValue>
+ <ds:Modulus>
+suGIyhVTbFvDwZdx8Av62zmP+aGOlsBN8WUE3eEEcDtOIZgO78SImMQGwB2C0eIVMhiLRzVPqoW1
+dCPAveTm653zHOmubaps1fY0lLJDSZbTbhjeYhoQmmaBro/tDpVw5lKJwspqVnMuRK19ju2dxpKw
+lYGGtrP5VQv00dfNPbs=
+ </ds:Modulus>
+ <ds:Exponent>AQAB</ds:Exponent>
+ </ds:RSAKeyValue>
+ </ds:KeyValue>
+ </ds:KeyInfo>
+ </ds:Signature>
+ </saml2:Assertion>
+ </wst:ValidateTarget>
+ </wst:RequestSecurityToken>
+ <wst:RequestSecurityToken Context="validatecontext2">
+
<
wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Batch...
+
<
wst:TokenType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/St...
+ <wst:ValidateTarget>
+ <saml2:Assertion xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion"
ID="ID_cf9efbf0-9d7f-4b4a-b77f-d83ecaafd374"
+ IssueInstant="2010-09-30T19:13:37.911Z" Version="2.0">
+ <saml2:Issuer>Test STS</saml2:Issuer>
+ <saml2:Subject>
+ <saml2:NameID
NameQualifier="urn:picketlink:identity-federation">jduke</saml2:NameID>
+ <saml2:SubjectConfirmation
Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"/>
+ </saml2:Subject>
+ <saml2:Conditions NotBefore="2010-09-30T19:13:37.911Z"
NotOnOrAfter="2010-09-30T21:13:37.911Z">
+ <saml2:AudienceRestriction>
+
<
saml2:Audience>http://services.testcorp.org/provider2</saml2:Audien...
+ </saml2:AudienceRestriction>
+ </saml2:Conditions>
+ <ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
+ <ds:SignedInfo>
+ <ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"...
+ <ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmlds#rsa-sha1"/>
+ <ds:Reference
URI="#ID_cf9efbf0-9d7f-4b4a-b77f-d83ecaafd374">
+ <ds:Transforms>
+ <ds:Transform
Algorithm="http://www.w3.org/2000/09/xmlds#enveloped-signature"...
+ <ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+ </ds:Transforms>
+ <ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmlds#sha1"/>
+ <ds:DigestValue>TMZdBOA0MvR7aNpCAg2CXggkdZc=</ds:DigestValue>
+ </ds:Reference>
+ </ds:SignedInfo>
+ <ds:SignatureValue>
+Q8mEzGWlnWmSmb+KUkP0wju4LOINaUYXBBXNF5vRhYVBixSUe8HSHKzNIdQ+ZGtijaV1vh0LUFbT
+//faZKyHRgPXtskDn8cJTVT6obp7rUIOCKMoCs5p9/bUAbtaQHYjfWpifdT3PaTdlehpS8INK2P0
+JUQYU3q8F3u7je9VHbA=
+ </ds:SignatureValue>
+ <ds:KeyInfo>
+ <ds:KeyValue>
+ <ds:RSAKeyValue>
+ <ds:Modulus>
+suGIyhVTbFvDwZdx8Av62zmP+aGOlsBN8WUE3eEEcDtOIZgO78SImMQGwB2C0eIVMhiLRzVPqoW1
+dCPAveTm653zHOmubaps1fY0lLJDSZbTbhjeYhoQmmaBro/tDpVw5lKJwspqVnMuRK19ju2dxpKw
+lYGGtrP5VQv00dfNPbs=
+ </ds:Modulus>
+ <ds:Exponent>AQAB</ds:Exponent>
+ </ds:RSAKeyValue>
+ </ds:KeyValue>
+ </ds:KeyInfo>
+ </ds:Signature>
+ </saml2:Assertion>
+ </wst:ValidateTarget>
+ </wst:RequestSecurityToken>
+</wst:RequestSecurityTokenCollection>
Added:
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-cancel-saml.xml
===================================================================
--- federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-cancel-saml.xml
(rev 0)
+++
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-cancel-saml.xml 2010-09-30
21:45:34 UTC (rev 423)
@@ -0,0 +1,45 @@
+<wst:RequestSecurityToken
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
Context="cancelcontext">
+
<
wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Cance...
+ <wst:CancelTarget>
+ <saml2:Assertion ID="ID_cb1eadf5-50a6-4fdf-96bc-412514f52882"
IssueInstant="2010-09-30T19:13:37.603Z" Version="2.0"
+ xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">
+ <saml2:Issuer>Test STS</saml2:Issuer>
+ <saml2:Subject>
+ <saml2:NameID
NameQualifier="urn:picketlink:identity-federation">jduke</saml2:NameID>
+ <saml2:SubjectConfirmation
Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"/>
+ </saml2:Subject>
+ <saml2:Conditions NotBefore="2010-09-30T19:13:37.603Z"
NotOnOrAfter="2010-09-30T21:13:37.603Z"/>
+ <ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
+ <ds:SignedInfo>
+ <ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"...
+ <ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmlds#rsa-sha1"/>
+ <ds:Reference URI="#ID_cb1eadf5-50a6-4fdf-96bc-412514f52882">
+ <ds:Transforms>
+ <ds:Transform
Algorithm="http://www.w3.org/2000/09/xmlds#enveloped-signature"...
+ <ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+ </ds:Transforms>
+ <ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmlds#sha1"/>
+ <ds:DigestValue >KaqeDCxTv3d8Xp646yGGAF7Kxw0=</ds:DigestValue>
+ </ds:Reference>
+ </ds:SignedInfo>
+ <ds:SignatureValue>
+rkl4IPZ1slJVbCUI39D0bKp/OvIGrU7FqigVORbl18gbVXcO7RLiubPefhc9xm2gG+YQ5itF4Az0
+xcqVuphJumo9tOG1czwS61JlKGabvFumL1DDV5V3oa0iIAw5GhXs7ZLs70eDj3CM3WVlD8vBgjy9
+xP7h9NFumidraXsFK9Q=
+ </ds:SignatureValue>
+ <ds:KeyInfo>
+ <ds:KeyValue>
+ <ds:RSAKeyValue>
+ <ds:Modulus>
+suGIyhVTbFvDwZdx8Av62zmP+aGOlsBN8WUE3eEEcDtOIZgO78SImMQGwB2C0eIVMhiLRzVPqoW1
+dCPAveTm653zHOmubaps1fY0lLJDSZbTbhjeYhoQmmaBro/tDpVw5lKJwspqVnMuRK19ju2dxpKw
+lYGGtrP5VQv00dfNPbs=
+ </ds:Modulus>
+ <ds:Exponent>AQAB</ds:Exponent>
+ </ds:RSAKeyValue>
+ </ds:KeyValue>
+ </ds:KeyInfo>
+ </ds:Signature>
+ </saml2:Assertion>
+ </wst:CancelTarget>
+</wst:RequestSecurityToken>
Added:
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-appliesto.xml
===================================================================
---
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-appliesto.xml
(rev 0)
+++
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-appliesto.xml 2010-09-30
21:45:34 UTC (rev 423)
@@ -0,0 +1,8 @@
+<wst:RequestSecurityToken
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
Context="testcontext">
+
<
wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue...
+ <wsp:AppliesTo
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
+ <wsa:EndpointReference
xmlns:wsa="http://www.w3.org/2005/08/addressing">
+ <
wsa:Address>http://services.testcorp.org/provider2</wsa:Address>
+ </wsa:EndpointReference>
+ </wsp:AppliesTo>
+</wst:RequestSecurityToken>
Added:
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-onbehalfof.xml
===================================================================
---
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-onbehalfof.xml
(rev 0)
+++
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-onbehalfof.xml 2010-09-30
21:45:34 UTC (rev 423)
@@ -0,0 +1,10 @@
+<wst:RequestSecurityToken
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
Context="testcontext">
+
<
wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue...
+
<
wst:TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-prof...
+ <wst:OnBehalfOf>
+ <wsse:UsernameToken wsu:Id="id"
xmlns:wsse="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-...
+
xmlns:wsu="http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-w...
+ <wsse:Username>anotherduke</wsse:Username>
+ </wsse:UsernameToken>
+ </wst:OnBehalfOf>
+</wst:RequestSecurityToken>
Added:
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-public-certificate.xml
===================================================================
---
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-public-certificate.xml
(rev 0)
+++
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-public-certificate.xml 2010-09-30
21:45:34 UTC (rev 423)
@@ -0,0 +1,15 @@
+<wst:RequestSecurityToken
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
Context="testcontext">
+
<
wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue...
+ <wsp:AppliesTo
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
+ <wsa:EndpointReference
xmlns:wsa="http://www.w3.org/2005/08/addressing">
+ <
wsa:Address>http://services.testcorp.org/provider2</wsa:Address>
+ </wsa:EndpointReference>
+ </wsp:AppliesTo>
+
<
wst:KeyType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/PublicKey...
+ <wst:UseKey>
+ <ds:X509Certificate
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
+MIICVDCCAb0CBEn2ANAwDQYJKoZIhvcNAQEEBQAwcTELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkZMMQ4wDAYDVQQHEwVNaWFtaTESMBAGA1UEChMJVGVjaG5vYnVnMRQwEgYDVQQLEwtTYW1wbGUgVW5pdDEbMBkGA1UEAxMSU2VydmljZSBQcm92aWRlciAxMB4XDTA5MDQyNzE5MDAzMloXDTA5MDcyNjE5MDAzMlowcTELMAkGA1UEBhMCVVMxCzAJBgNVBAgTAkZMMQ4wDAYDVQQHEwVNaWFtaTESMBAGA1UEChMJVGVjaG5vYnVnMRQwEgYDVQQLEwtTYW1wbGUgVW5pdDEbMBkGA1UEAxMSU2VydmljZSBQcm92aWRlciAxMIGfMA0GCSqGSIb3DQEBAQUAA4GNADCBiQKBgQC1yAvTR3PaBfYU77dznEb6PRPJWwAn3XDvp1kIObmaV2rkDwb+8dDkS2Y0pfl52ubKKK82kg/PA6GeL1c0/MCGCRnrZdCaQgKW/Tj+jh1SzZdLlMdBxYuV39jRUXoHJYgfhm7FZjew2SXo40T/qbeKYGhBS6D1tDPngxU1umB/hwIDAQABMA0GCSqGSIb3DQEBBAUAA4GBAK33IhDY8BGFf5A4gk4iQ8pOpfxq7khBerj5+5VaW5fdxbfs9vIpD2lLNkk0OnIEs5cd7ERqi2W7pb/M4yHVJ2/09JqAqVEbZYW/Gi88ZrxdfPexP5F9SnHkRwdMNPAV/XUXc0m6Jw44t02xzrgOVRyOaLE+X1Wvb1YWpLkgIua2
+ </ds:X509Certificate>
+ </wst:UseKey>
+</wst:RequestSecurityToken>
+
Added:
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-public-key.xml
===================================================================
---
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-public-key.xml
(rev 0)
+++
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-public-key.xml 2010-09-30
21:45:34 UTC (rev 423)
@@ -0,0 +1,19 @@
+<wst:RequestSecurityToken
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
Context="testcontext">
+
<
wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue...
+ <wsp:AppliesTo
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
+ <wsa:EndpointReference
xmlns:wsa="http://www.w3.org/2005/08/addressing">
+ <
wsa:Address>http://services.testcorp.org/provider2</wsa:Address>
+ </wsa:EndpointReference>
+ </wsp:AppliesTo>
+
<
wst:KeyType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/PublicKey...
+ <wst:UseKey>
+ <ds:KeyValue
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
+ <ds:RSAKeyValue>
+ <ds:Modulus>
+ALXIC9NHc9oF9hTvt3OcRvo9E8lbACfdcO+nWQg5uZpXauQPBv7x0ORLZjSl+Xna5soorzaSD88DoZ4vVzT8wIYJGetl0JpCApb9OP6OHVLNl0uUx0HFi5Xf2NFRegcliB+GbsVmN7DZJejjRP+pt4pgaEFLoPW0M+eDFTW6YH+H
+ </ds:Modulus>
+ <ds:Exponent>AQAB</ds:Exponent>
+ </ds:RSAKeyValue>
+ </ds:KeyValue>
+ </wst:UseKey>
+</wst:RequestSecurityToken>
Added:
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-symmetric-key.xml
===================================================================
---
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-symmetric-key.xml
(rev 0)
+++
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue-symmetric-key.xml 2010-09-30
21:45:34 UTC (rev 423)
@@ -0,0 +1,13 @@
+<wst:RequestSecurityToken
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
Context="testcontext">
+
<
wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue...
+ <wsp:AppliesTo
xmlns:wsp="http://schemas.xmlsoap.org/ws/2004/09/policy">
+ <wsa:EndpointReference
xmlns:wsa="http://www.w3.org/2005/08/addressing">
+ <
wsa:Address>http://services.testcorp.org/provider2</wsa:Address>
+ </wsa:EndpointReference>
+ </wsp:AppliesTo>
+
<
wst:KeyType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Symmetric...
+ <wst:Entropy>
+ <wst:BinarySecret
Type="http://docs.oasis-open.org/ws-sx/ws-trust/200512/Nonce"&g...
+ </wst:Entropy>
+ <wst:KeySize>64</wst:KeySize>
+</wst:RequestSecurityToken>
Added: federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue.xml
===================================================================
--- federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue.xml
(rev 0)
+++
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-issue.xml 2010-09-30
21:45:34 UTC (rev 423)
@@ -0,0 +1,4 @@
+<wst:RequestSecurityToken
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
Context="testcontext">
+
<
wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Issue...
+
<
wst:TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-prof...
+</wst:RequestSecurityToken>
Added:
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-renew-saml.xml
===================================================================
--- federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-renew-saml.xml
(rev 0)
+++
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-renew-saml.xml 2010-09-30
21:45:34 UTC (rev 423)
@@ -0,0 +1,50 @@
+<wst:RequestSecurityToken
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
Context="renewcontext">
+
<
wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Renew...
+
<
wst:TokenType>http://docs.oasis-open.org/wss/oasis-wss-saml-token-prof...
+ <wst:RenewTarget>
+ <saml2:Assertion ID="ID_654b6092-c725-40ea-8044-de453b59cb28"
IssueInstant="2010-09-30T19:13:37.429Z" Version="2.0"
+ xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">
+ <saml2:Issuer>Test STS</saml2:Issuer>
+ <saml2:Subject>
+ <saml2:NameID
NameQualifier="urn:picketlink:identity-federation">jduke</saml2:NameID>
+ <saml2:SubjectConfirmation
Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"/>
+ </saml2:Subject>
+ <saml2:Conditions NotBefore="2010-09-30T19:13:37.429Z"
NotOnOrAfter="2010-09-30T21:13:37.429Z">
+ <saml2:AudienceRestriction>
+
<
saml2:Audience>http://services.testcorp.org/provider2</saml2:Audien...
+ </saml2:AudienceRestriction>
+ </saml2:Conditions>
+ <ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
+ <ds:SignedInfo>
+ <ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"...
+ <ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmlds#rsa-sha1"/>
+ <ds:Reference URI="#ID_654b6092-c725-40ea-8044-de453b59cb28">
+ <ds:Transforms>
+ <ds:Transform
Algorithm="http://www.w3.org/2000/09/xmlds#enveloped-signature"...
+ <ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+ </ds:Transforms>
+ <ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmlds#sha1"/>
+ <ds:DigestValue>4OfF2Py9LTKN6qp+dcXupdPJM+Y=</ds:DigestValue>
+ </ds:Reference>
+ </ds:SignedInfo>
+ <ds:SignatureValue>
+MukTucsxjAyVtWwPMFQpfhREgZtl9Z+7+DlaaP3Ar2gJXg7GjkOpJmDQ72ASLWQeELUoTseqiOmZ
+slAQPV/RlLXXjLFenEMgO56gpBQdEZ4VVriegkTSXJhfz9c244oOnKKHCSH/7XMASt7DXRX+EOZF
+j3hJtAxbNgGTUOwMSLw=
+ </ds:SignatureValue>
+ <ds:KeyInfo>
+ <ds:KeyValue>
+ <ds:RSAKeyValue>
+ <ds:Modulus>
+suGIyhVTbFvDwZdx8Av62zmP+aGOlsBN8WUE3eEEcDtOIZgO78SImMQGwB2C0eIVMhiLRzVPqoW1
+dCPAveTm653zHOmubaps1fY0lLJDSZbTbhjeYhoQmmaBro/tDpVw5lKJwspqVnMuRK19ju2dxpKw
+lYGGtrP5VQv00dfNPbs=
+ </ds:Modulus>
+ <ds:Exponent>AQAB</ds:Exponent>
+ </ds:RSAKeyValue>
+ </ds:KeyValue>
+ </ds:KeyInfo>
+ </ds:Signature>
+ </saml2:Assertion>
+ </wst:RenewTarget>
+</wst:RequestSecurityToken>
Added:
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-validate-saml.xml
===================================================================
---
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-validate-saml.xml
(rev 0)
+++
federation/trunk/picketlink-fed-parser/src/test/resources/wstrust/wst-validate-saml.xml 2010-09-30
21:45:34 UTC (rev 423)
@@ -0,0 +1,46 @@
+<wst:RequestSecurityToken
xmlns:wst="http://docs.oasis-open.org/ws-sx/ws-trust/200512"
Context="validatecontext">
+
<
wst:RequestType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/Valid...
+
<
wst:TokenType>http://docs.oasis-open.org/ws-sx/ws-trust/200512/RSTR/St...
+ <wst:ValidateTarget>
+ <saml2:Assertion ID="ID_654b6092-c725-40ea-8044-de453b59cb28"
IssueInstant="2010-09-30T19:13:37.186Z" Version="2.0"
+ xmlns:saml2="urn:oasis:names:tc:SAML:2.0:assertion">
+ <saml2:Issuer>Test STS</saml2:Issuer>
+ <saml2:Subject>
+ <saml2:NameID
NameQualifier="urn:picketlink:identity-federation">jduke</saml2:NameID>
+ <saml2:SubjectConfirmation
Method="urn:oasis:names:tc:SAML:2.0:cm:bearer"/>
+ </saml2:Subject>
+ <saml2:Conditions NotBefore="2010-09-30T19:13:37.186Z"
NotOnOrAfter="2010-09-30T21:13:37.186Z"/>
+ <ds:Signature
xmlns:ds="http://www.w3.org/2000/09/xmldsig#">
+ <ds:SignedInfo>
+ <ds:CanonicalizationMethod
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#WithComments"...
+ <ds:SignatureMethod
Algorithm="http://www.w3.org/2000/09/xmlds#rsa-sha1"/>
+ <ds:Reference URI="#ID_c63aec28-2234-41f4-97da-a8b2a4d97a22">
+ <ds:Transforms>
+ <ds:Transform
Algorithm="http://www.w3.org/2000/09/xmlds#enveloped-signature"...
+ <ds:Transform
Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
+ </ds:Transforms>
+ <ds:DigestMethod
Algorithm="http://www.w3.org/2000/09/xmlds#sha1"/>
+ <ds:DigestValue>vLs6l7ECkKmthkW9/WR11mwhQDY=</ds:DigestValue>
+ </ds:Reference>
+ </ds:SignedInfo>
+ <ds:SignatureValue>
+lm6qC8xGp+BYFYmxV96xWT5nQ/97cvbKFpsOt8tWpJblVL6f/PpEkTxk8zYIF2Wz0zCseqyOQeFC
+0agSExcJulle6HAL5/4CHSR+MxQtXxUqNdAH4bQIFbPKzchRlkxZEy5u+OTt+iON/fLbtHCiEAk8
+m7elK6x1NYQ56RhTR0Q=
+ </ds:SignatureValue>
+ <ds:KeyInfo>
+ <ds:KeyValue>
+ <ds:RSAKeyValue>
+ <ds:Modulus>
+suGIyhVTbFvDwZdx8Av62zmP+aGOlsBN8WUE3eEEcDtOIZgO78SImMQGwB2C0eIVMhiLRzVPqoW1
+dCPAveTm653zHOmubaps1fY0lLJDSZbTbhjeYhoQmmaBro/tDpVw5lKJwspqVnMuRK19ju2dxpKw
+lYGGtrP5VQv00dfNPbs=
+ </ds:Modulus>
+ <ds:Exponent>AQAB</ds:Exponent>
+ </ds:RSAKeyValue>
+ </ds:KeyValue>
+ </ds:KeyInfo>
+ </ds:Signature>
+ </saml2:Assertion>
+ </wst:ValidateTarget>
+</wst:RequestSecurityToken>