aboutsummaryrefslogtreecommitdiff
path: root/moaSig/moa-sig/src/test/resources/testdata/xades/sign/createXades_2.xml
diff options
context:
space:
mode:
Diffstat (limited to 'moaSig/moa-sig/src/test/resources/testdata/xades/sign/createXades_2.xml')
-rw-r--r--moaSig/moa-sig/src/test/resources/testdata/xades/sign/createXades_2.xml62
1 files changed, 62 insertions, 0 deletions
diff --git a/moaSig/moa-sig/src/test/resources/testdata/xades/sign/createXades_2.xml b/moaSig/moa-sig/src/test/resources/testdata/xades/sign/createXades_2.xml
new file mode 100644
index 0000000..72f819b
--- /dev/null
+++ b/moaSig/moa-sig/src/test/resources/testdata/xades/sign/createXades_2.xml
@@ -0,0 +1,62 @@
+ <moa:CreateXMLSignatureRequest xmlns:moa="http://reference.e-government.gv.at/namespace/moa/20020822#" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
+ <moa:KeyIdentifier>KG_junit</moa:KeyIdentifier>
+ <moa:SingleSignatureInfo SecurityLayerConformity="true">
+
+ <moa:DataObjectInfo Structure="detached" ChildOfManifest="false">
+ <moa:DataObject Reference=""/>
+ <moa:CreateTransformsInfoProfile>
+ <moa:CreateTransformsInfo>
+ <dsig:Transforms>
+ <dsig:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
+ <dsig:XPath>not(ancestor-or-self::pr:Identification)</dsig:XPath>
+ </dsig:Transform>
+ <dsig:Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
+ </dsig:Transforms>
+ <moa:FinalDataMetaInfo>
+ <moa:MimeType>text/xml</moa:MimeType>
+ </moa:FinalDataMetaInfo>
+ </moa:CreateTransformsInfo>
+ </moa:CreateTransformsInfoProfile>
+ </moa:DataObjectInfo>
+
+ <moa:DataObjectInfo Structure="detached" ChildOfManifest="true">
+ <moa:DataObject Reference=""/>
+ <moa:CreateTransformsInfoProfile>
+ <moa:CreateTransformsInfo>
+ <dsig:Transforms>
+ <dsig:Transform Algorithm="http://www.w3.org/TR/1999/REC-xpath-19991116">
+ <dsig:XPath>not(ancestor-or-self::dsig:Signature)</dsig:XPath>
+ </dsig:Transform>
+ </dsig:Transforms>
+ <moa:FinalDataMetaInfo>
+ <moa:MimeType>text/xml</moa:MimeType>
+ </moa:FinalDataMetaInfo>
+ </moa:CreateTransformsInfo>
+ </moa:CreateTransformsInfoProfile>
+ </moa:DataObjectInfo>
+
+ <moa:CreateSignatureInfo>
+ <moa:CreateSignatureEnvironment>
+ <moa:XMLContent><saml:Assertion xmlns:saml="urn:oasis:names:tc:SAML:1.0:assertion" xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" xmlns:ecdsa="http://www.w3.org/2001/04/xmldsig-more#" xmlns:pr="http://reference.e-government.gv.at/namespace/persondata/20020228#" xmlns:si="http://www.w3.org/2001/XMLSchema-instance" AssertionID="szr.bmi.gv.at-AssertionID13231274415215238" IssueInstant="2011-12-06T00:24:01+01:00" Issuer="http://portal.bmi.gv.at/ref/szr/issuer" MajorVersion="1" MinorVersion="0">
+ <saml:AttributeStatement>
+ <saml:Subject>
+ <saml:SubjectConfirmation>
+ <saml:ConfirmationMethod>urn:oasis:names:tc:SAML:1.0:cm:sender-vouches</saml:ConfirmationMethod>
+ <saml:SubjectConfirmationData>
+ <pr:Person si:type="pr:PhysicalPersonType"><pr:Identification><pr:Value>adfasfsafsafsafsafsadfsa</pr:Value><pr:Type>urn:publicid:gv.at:baseid</pr:Type></pr:Identification><pr:Name><pr:GivenName>Georg Max</pr:GivenName><pr:FamilyName primary="undefined">Gehtnichtmehr</pr:FamilyName></pr:Name><pr:DateOfBirth>1970-10-07</pr:DateOfBirth></pr:Person>
+ </saml:SubjectConfirmationData>
+ </saml:SubjectConfirmation>
+ </saml:Subject>
+ <saml:Attribute AttributeName="CitizenPublicKey" AttributeNamespace="urn:publicid:gv.at:namespaces:identitylink:1.2"><saml:AttributeValue><ecdsa:ECDSAKeyValue><ecdsa:DomainParameters><ecdsa:NamedCurve URN="urn:oid:1.2.840.10045.3.1.7"/></ecdsa:DomainParameters><ecdsa:PublicKey><ecdsa:X Value="30182780990795840910396548931819898671707742888036046362327117589598976109577" si:type="ecdsa:PrimeFieldElemType"/><ecdsa:Y Value="107112196457062351517299791458741371657831961314729500352055528678053697367827" si:type="ecdsa:PrimeFieldElemType"/></ecdsa:PublicKey></ecdsa:ECDSAKeyValue></saml:AttributeValue></saml:Attribute><saml:Attribute AttributeName="CitizenPublicKey" AttributeNamespace="urn:publicid:gv.at:namespaces:identitylink:1.2"><saml:AttributeValue><dsig:RSAKeyValue><dsig:Modulus>hCZLl3qKckwEWV3l4UBG14o7fvbxoHKxCfrTcJW/yJJvIZa2VUzL7rYpEGZSKFpur0v9cDjIZOtn
+jCt/8pmDSSpdRF4Yrem3wnhv2jE+UuiwUOZtOymcsv5g3I5NXFjaBJlXnXbQF3djAd0YcU6tAzpr
+Md8x0ko+J9CVBxWj6VFJeP4muTI/XvEUSU4QVxmmAyUPCYM6mzlYoYUPEYpw5oWA1p++dvM8USdh
+0pB5mmXboFfPGvN/DvfV4BKKT8xX</dsig:Modulus><dsig:Exponent>AQAB</dsig:Exponent></dsig:RSAKeyValue></saml:AttributeValue></saml:Attribute></saml:AttributeStatement>
+</saml:Assertion></moa:XMLContent>
+ </moa:CreateSignatureEnvironment>
+ <moa:CreateSignatureEnvironmentProfile>
+ <moa:CreateSignatureLocation xmlns:saml='urn:oasis:names:tc:SAML:1.0:assertion' Index='2'>
+ /saml:Assertion</moa:CreateSignatureLocation>
+ </moa:CreateSignatureEnvironmentProfile>
+ </moa:CreateSignatureInfo>
+ </moa:SingleSignatureInfo>
+</moa:CreateXMLSignatureRequest>