diff options
author | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2016-06-20 12:45:07 +0200 |
---|---|---|
committer | Andreas Fitzek <andreas.fitzek@iaik.tugraz.at> | 2016-06-20 12:45:07 +0200 |
commit | 53ae98cdfa510650c1e015efd0d11a96ad4dc87a (patch) | |
tree | 8e7ab77a9208b541416d14bbdb15e7211ff40c5b /moaSig/moa-sig/src/main/resources | |
parent | acf1b849ab835bc6797adfb91f8ab4fa88f0aff5 (diff) | |
download | moa-sig-53ae98cdfa510650c1e015efd0d11a96ad4dc87a.tar.gz moa-sig-53ae98cdfa510650c1e015efd0d11a96ad4dc87a.tar.bz2 moa-sig-53ae98cdfa510650c1e015efd0d11a96ad4dc87a.zip |
ASiC Library added
Diffstat (limited to 'moaSig/moa-sig/src/main/resources')
3 files changed, 64 insertions, 791 deletions
diff --git a/moaSig/moa-sig/src/main/resources/resources/schemas/MOA-SIG-3.0.0.xsd b/moaSig/moa-sig/src/main/resources/resources/schemas/MOA-SIG-3.0.0.xsd deleted file mode 100644 index 3fb11ee..0000000 --- a/moaSig/moa-sig/src/main/resources/resources/schemas/MOA-SIG-3.0.0.xsd +++ /dev/null @@ -1,791 +0,0 @@ -<?xml version="1.0" encoding="UTF-8"?> -<!-- MOA SIG 3.0.0 Schema --> -<xsd:schema xmlns:dsig="http://www.w3.org/2000/09/xmldsig#" - xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://reference.e-government.gv.at/namespace/moa/20151109#" - targetNamespace="http://reference.e-government.gv.at/namespace/moa/20151109#" - elementFormDefault="qualified" attributeFormDefault="unqualified" - version="1.2"> - <xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" - schemaLocation="http://www.w3.org/TR/xmldsig-core/xmldsig-core-schema.xsd" /> - <xsd:import namespace="http://www.w3.org/XML/1998/namespace" - schemaLocation="http://www.w3.org/2001/xml.xsd" /> - <!--########## Create CMS Signature ### --> - <!--### Create CMS Signature Request ### --> - <xsd:element name="CreateCMSSignatureRequest"> - <xsd:complexType> - <xsd:complexContent> - <xsd:extension base="CreateCMSSignatureRequestType" /> - </xsd:complexContent> - </xsd:complexType> - </xsd:element> - <xsd:complexType name="CreateCMSSignatureRequestType"> - <xsd:sequence> - <xsd:element name="KeyIdentifier" type="KeyIdentifierType" /> - <xsd:element name="SingleSignatureInfo" maxOccurs="unbounded"> - <xsd:annotation> - <xsd:documentation>Ermöglichung der Stapelsignatur durch - wiederholte Angabe dieses Elements</xsd:documentation> - </xsd:annotation> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="DataObjectInfo"> - <xsd:complexType> - <xsd:complexContent> - <xsd:extension base="CMSDataObjectInfoType" /> - </xsd:complexContent> - </xsd:complexType> - </xsd:element> - </xsd:sequence> - <xsd:attribute name="SecurityLayerConformity" type="xsd:boolean" - use="optional" default="true" /> - </xsd:complexType> - </xsd:element> - </xsd:sequence> - </xsd:complexType> - <!--### Create CMS Signature Response ### --> - <xsd:element name="CreateCMSSignatureResponse" type="CreateCMSSignatureResponseType" /> - <xsd:complexType name="CreateCMSSignatureResponseType"> - <xsd:choice maxOccurs="unbounded"> - <xsd:annotation> - <xsd:documentation>Kardinalität 1..oo erlaubt die Antwort auf eine - Stapelsignatur-Anfrage</xsd:documentation> - </xsd:annotation> - <xsd:element name="CMSSignature" type="xsd:base64Binary"> - <xsd:annotation> - <xsd:documentation>Resultat, falls die Signaturerstellung - erfolgreich war</xsd:documentation> - </xsd:annotation> - </xsd:element> - <xsd:element ref="ErrorResponse" /> - </xsd:choice> - </xsd:complexType> - <!--########## Create XML Signature ### --> - <!--### Create XML Signature Request ### --> - <xsd:element name="CreateXMLSignatureRequest"> - <xsd:complexType> - <xsd:complexContent> - <xsd:extension base="CreateXMLSignatureRequestType" /> - </xsd:complexContent> - </xsd:complexType> - </xsd:element> - <xsd:complexType name="CreateXMLSignatureRequestType"> - <xsd:sequence> - <xsd:element name="KeyIdentifier" type="KeyIdentifierType" /> - <xsd:element name="SingleSignatureInfo" maxOccurs="unbounded"> - <xsd:annotation> - <xsd:documentation>Ermöglichung der Stapelsignatur durch - wiederholte Angabe dieses Elements</xsd:documentation> - </xsd:annotation> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="DataObjectInfo" maxOccurs="unbounded"> - <xsd:complexType> - <xsd:complexContent> - <xsd:extension base="DataObjectInfoType"> - <xsd:attribute name="ChildOfManifest" type="xsd:boolean" - use="optional" default="false" /> - </xsd:extension> - </xsd:complexContent> - </xsd:complexType> - </xsd:element> - <xsd:element name="CreateSignatureInfo" minOccurs="0"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="CreateSignatureEnvironment" - type="ContentOptionalRefType" /> - <xsd:choice> - <xsd:annotation> - <xsd:documentation>Auswahl: Entweder explizite Angabe des - Signaturorts sowie ggf. sinnvoller Supplements im Zshg. mit - der Signaturumgebung, oder Verweis auf ein benanntes Profil - </xsd:documentation> - </xsd:annotation> - <xsd:element ref="CreateSignatureEnvironmentProfile" /> - <xsd:element name="CreateSignatureEnvironmentProfileID" - type="ProfileIdentifierType" /> - </xsd:choice> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - </xsd:sequence> - <xsd:attribute name="SecurityLayerConformity" type="xsd:boolean" - use="optional" default="true" /> - </xsd:complexType> - </xsd:element> - </xsd:sequence> - </xsd:complexType> - <!--### Create XML Signature Response ### --> - <xsd:complexType name="CreateXMLSignatureResponseType"> - <xsd:choice maxOccurs="unbounded"> - <xsd:annotation> - <xsd:documentation>Kardinalität 1..oo erlaubt die Antwort auf eine - Stapelsignatur-Anfrage</xsd:documentation> - </xsd:annotation> - <xsd:element name="SignatureEnvironment" type="xsd:base64Binary"> - <xsd:annotation> - <xsd:documentation>Resultat, falls die Signaturerstellung - erfolgreich war</xsd:documentation> - </xsd:annotation> - </xsd:element> - <xsd:element ref="ErrorResponse" /> - </xsd:choice> - </xsd:complexType> - <xsd:element name="CreateXMLSignatureResponse" type="CreateXMLSignatureResponseType" /> - <!--########## Create PDF Signature ### --> - <!--### Create PDF Signature Request ### --> - <!--xsd:element name="CreatePDFSignatureRequest"> - <xsd:complexType> - <xsd:complexContent> - <xsd:extension base="CreatePDFSignatureRequestType" /> - </xsd:complexContent> - </xsd:complexType> - </xsd:element> - <xsd:complexType name="CreatePDFSignatureRequestType"> - <xsd:sequence> - <xsd:element name="KeyIdentifier" type="KeyIdentifierType" /> - <xsd:element name="SingleSignatureInfo" maxOccurs="unbounded"> - <xsd:annotation> - <xsd:documentation>Ermöglichung der Stapelsignatur durch - wiederholte Angabe dieses Elements</xsd:documentation> - </xsd:annotation> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="PDFDocument" type="xsd:base64Binary" /> - <xsd:element name="SignatureProfile" type="xsd:string" - minOccurs="0" maxOccurs="1" /> - <xsd:element name="SignaturePosition" type="xsd:string" - minOccurs="0" maxOccurs="1" /> - <xsd:element name="SignatureID" type="xsd:string" - minOccurs="0" maxOccurs="1" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - </xsd:sequence> - </xsd:complexType--> - <!--### Create PDF Signature Response ### --> - <!--xsd:element name="CreatePDFSignatureResponse" type="CreatePDFSignatureResponseType" /> - <xsd:complexType name="CreatePDFSignatureResponseType"> - <xsd:sequence> - <xsd:element name="PDFSignature" type="PDFSignedRepsonse" - maxOccurs="unbounded" /> - </xsd:sequence> - </xsd:complexType--> - <!--########## Verify CMS Signature ### --> - <!--### Verifiy CMS Signature Request ### --> - <xsd:element name="VerifyCMSSignatureRequest"> - <xsd:complexType> - <xsd:complexContent> - <xsd:extension base="VerifyCMSSignatureRequestType"> - <xsd:attribute name="Signatories" type="SignatoriesType" - use="optional" default="1" /> - </xsd:extension> - </xsd:complexContent> - </xsd:complexType> - </xsd:element> - <xsd:complexType name="VerifyCMSSignatureRequestType"> - <xsd:sequence> - <xsd:element name="DateTime" type="xsd:dateTime" - minOccurs="0" /> - <xsd:element name="ExtendedValidation" type="xsd:boolean" minOccurs="0" default="false"/> - <xsd:element name="CMSSignature" type="xsd:base64Binary" /> - <xsd:element name="DataObject" type="CMSDataObjectOptionalMetaType" - minOccurs="0" /> - <xsd:element name="TrustProfileID" type="xsd:token"> - <xsd:annotation> - <xsd:documentation>mit diesem Profil wird eine Menge von - vertrauenswürdigen Wurzelzertifikaten spezifiziert - </xsd:documentation> - </xsd:annotation> - </xsd:element> - </xsd:sequence> - </xsd:complexType> - <!--### Verify CMS Signature Response ### --> - <xsd:element name="VerifyCMSSignatureResponse" type="VerifyCMSSignatureResponseType" /> - <xsd:complexType name="VerifyCMSSignatureResponseType"> - <xsd:sequence maxOccurs="unbounded"> - <xsd:element name="SignerInfo" type="dsig:KeyInfoType"> - <xsd:annotation> - <xsd:documentation>only ds:X509Data and RetrievalMethod is - supported; QualifiedCertificate is included as - X509Data/any;publicAuthority is included as X509Data/any; - SecureSignatureCreationDevice is included as X509Data/any, - IssuingCountry is included as X509Data/any</xsd:documentation> - </xsd:annotation> - </xsd:element> - <xsd:element name="SignatureCheck" type="CheckResultType" /> - <xsd:element name="CertificateCheck" type="CheckResultType" /> - <xsd:element name="FormCheckResult" type="FormResultType" - minOccurs="0" maxOccurs="unbounded" /> - <xsd:element name="ExtendedCertificateCheck" type="ExtendedCertificateCheckResultType" minOccurs="0" maxOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - <!--########## Verify PDF Signature ### --> - <!--### Verifiy PDF Signature Request ### --> - <xsd:element name="VerifyPDFSignatureRequest"> - <xsd:complexType> - <xsd:complexContent> - <xsd:extension base="VerifyPDFSignatureRequestType" /> - </xsd:complexContent> - </xsd:complexType> - </xsd:element> - <xsd:complexType name="VerifyPDFSignatureRequestType"> - <xsd:sequence> - <xsd:element name="DateTime" type="xsd:dateTime" - minOccurs="0" /> - <xsd:element name="ExtendedValidation" type="xsd:boolean" minOccurs="0" default="false"/> - <xsd:element name="PDFSignature" type="xsd:base64Binary" /> - <xsd:element name="TrustProfileID" type="xsd:token"> - <xsd:annotation> - <xsd:documentation>mit diesem Profil wird eine Menge von - vertrauenswürdigen Wurzelzertifikaten spezifiziert - </xsd:documentation> - </xsd:annotation> - </xsd:element> - </xsd:sequence> - </xsd:complexType> - <!--### Verify CMS Signature Response ### --> - <xsd:element name="VerifyPDFSignatureResponse" type="VerifyPDFSignatureResponseType" /> - <xsd:complexType name="VerifyPDFSignatureResponseType"> - <xsd:sequence maxOccurs="unbounded"> - <xsd:element name="SignatureResult" type="PDFSignatureResultType" /> - </xsd:sequence> - </xsd:complexType> - <xsd:complexType name="PDFSignatureResultType"> - <xsd:sequence> - <xsd:element name="SignerInfo" type="dsig:KeyInfoType"> - <xsd:annotation> - <xsd:documentation>only ds:X509Data and RetrievalMethod is - supported; QualifiedCertificate is included as - X509Data/any;publicAuthority is included as X509Data/any; - SecureSignatureCreationDevice is included as X509Data/any, - IssuingCountry is included as X509Data/any</xsd:documentation> - </xsd:annotation> - </xsd:element> - <xsd:element name="SignatureCheck" type="CheckResultType" /> - <xsd:element name="CertificateCheck" type="CheckResultType" /> - <xsd:element name="FormCheckResult" type="FormResultType" - minOccurs="0" maxOccurs="unbounded" /> - <xsd:element name="ExtendedCertificateCheck" type="ExtendedCertificateCheckResultType" minOccurs="0" maxOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - <!--########## Verify XML Signature ### --> - <!--### Verify XML Signature Request ### --> - <xsd:element name="VerifyXMLSignatureRequest"> - <xsd:complexType> - <xsd:complexContent> - <xsd:extension base="VerifyXMLSignatureRequestType" /> - </xsd:complexContent> - </xsd:complexType> - </xsd:element> - <xsd:complexType name="VerifyXMLSignatureRequestType"> - <xsd:sequence> - <xsd:element name="DateTime" type="xsd:dateTime" - minOccurs="0" /> - <xsd:element name="ExtendedValidation" type="xsd:boolean" minOccurs="0" default="false"/> - <xsd:element name="VerifySignatureInfo"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="VerifySignatureEnvironment" type="ContentOptionalRefType" /> - <xsd:element name="VerifySignatureLocation" type="XMLSignatureLocationType" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:choice minOccurs="0" maxOccurs="unbounded"> - <xsd:element ref="SupplementProfile" /> - <xsd:element name="SupplementProfileID" type="xsd:string" /> - </xsd:choice> - <xsd:element name="SignatureManifestCheckParams" - minOccurs="0"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="ReferenceInfo" type="VerifyTransformsDataType" - maxOccurs="unbounded"> - <xsd:annotation> - <xsd:documentation>Pro dsig:Reference-Element in der zu - überprüfenden XML-Signatur muss hier ein - ReferenceInfo-Element erscheinen. Die Reihenfolge der einzelnen - ReferenceInfo Elemente entspricht jener der dsig:Reference - Elemente in der XML-Signatur.</xsd:documentation> - </xsd:annotation> - </xsd:element> - </xsd:sequence> - <xsd:attribute name="ReturnReferenceInputData" type="xsd:boolean" - use="optional" default="true" /> - </xsd:complexType> - </xsd:element> - <xsd:element name="ReturnHashInputData" minOccurs="0" /> - <xsd:element name="TrustProfileID" type="xsd:token"> - <xsd:annotation> - <xsd:documentation>mit diesem Profil wird eine Menge von - vertrauenswürdigen Wurzelzertifikaten spezifiziert - </xsd:documentation> - </xsd:annotation> - </xsd:element> - </xsd:sequence> - </xsd:complexType> - <!--### Verify XML Signature Response ### --> - <xsd:element name="VerifyXMLSignatureResponse" type="VerifyXMLSignatureResponseType" /> - <xsd:complexType name="VerifyXMLSignatureResponseType"> - <xsd:sequence> - <xsd:element name="SignerInfo" type="dsig:KeyInfoType"> - <xsd:annotation> - <xsd:documentation>only ds:X509Data and ds:RetrievalMethod is - supported; QualifiedCertificate is included as X509Data/any; - PublicAuthority is included as X509Data/any; - SecureSignatureCreationDevice is included as X509Data/any, - IssuingCountry is included as X509Data/any</xsd:documentation> - </xsd:annotation> - </xsd:element> - <xsd:element name="HashInputData" type="InputDataType" - minOccurs="0" maxOccurs="unbounded" /> - <xsd:element name="ReferenceInputData" type="InputDataType" - minOccurs="0" maxOccurs="unbounded" /> - <xsd:element name="SignatureCheck" type="ReferencesCheckResultType" /> - <xsd:element name="SignatureManifestCheck" type="ReferencesCheckResultType" - minOccurs="0" /> - <xsd:element name="XMLDSIGManifestCheck" type="ManifestRefsCheckResultType" - minOccurs="0" maxOccurs="unbounded" /> - <xsd:element name="CertificateCheck" type="CheckResultType" /> - <xsd:element name="FormCheckResult" type="FormResultType" - minOccurs="0" maxOccurs="unbounded" /> - <xsd:element name="ExtendedCertificateCheck" type="ExtendedCertificateCheckResultType" minOccurs="0" maxOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - <xsd:simpleType name="ProfileIdentifierType"> - <xsd:restriction base="xsd:token" /> - </xsd:simpleType> - <xsd:complexType name="InputDataType"> - <xsd:complexContent> - <xsd:extension base="ContentExLocRefBaseType"> - <xsd:attribute name="PartOf" use="optional" default="SignedInfo"> - <xsd:simpleType> - <xsd:restriction base="xsd:token"> - <xsd:enumeration value="SignedInfo" /> - <xsd:enumeration value="XMLDSIGManifest" /> - </xsd:restriction> - </xsd:simpleType> - </xsd:attribute> - <xsd:attribute name="ReferringSigReference" type="xsd:nonNegativeInteger" - use="optional" /> - </xsd:extension> - </xsd:complexContent> - </xsd:complexType> - <xsd:complexType name="MetaInfoType"> - <xsd:sequence> - <xsd:element name="MimeType" type="MimeTypeType" /> - <xsd:element name="Description" type="xsd:anyURI" - minOccurs="0" /> - <xsd:any namespace="##other" minOccurs="0" maxOccurs="unbounded" /> - </xsd:sequence> - </xsd:complexType> - <xsd:complexType name="FinalDataMetaInfoType"> - <xsd:complexContent> - <xsd:extension base="MetaInfoType"> - <xsd:sequence> - <xsd:element name="Type" type="xsd:anyURI" minOccurs="0" /> - </xsd:sequence> - </xsd:extension> - </xsd:complexContent> - </xsd:complexType> - <xsd:complexType name="DataObjectInfoType"> - <xsd:sequence> - <xsd:element name="DataObject"> - <xsd:complexType> - <xsd:complexContent> - <xsd:extension base="ContentOptionalRefType" /> - </xsd:complexContent> - </xsd:complexType> - </xsd:element> - <xsd:choice> - <xsd:annotation> - <xsd:documentation>Auswahl: Entweder explizite Angabe EINER - Transformationskette inklusive ggf. sinnvoller Supplements oder - Verweis auf ein benanntes Profil</xsd:documentation> - </xsd:annotation> - <xsd:element ref="CreateTransformsInfoProfile" /> - <xsd:element name="CreateTransformsInfoProfileID" type="ProfileIdentifierType" /> - </xsd:choice> - </xsd:sequence> - <xsd:attribute name="Structure" use="required"> - <xsd:simpleType> - <xsd:restriction base="xsd:string"> - <xsd:enumeration value="detached" /> - <xsd:enumeration value="enveloping" /> - </xsd:restriction> - </xsd:simpleType> - </xsd:attribute> - </xsd:complexType> - <xsd:complexType name="CMSDataObjectInfoType"> - <xsd:sequence> - <xsd:element name="DataObject" type="CMSDataObjectRequiredMetaType" /> - </xsd:sequence> - <xsd:attribute name="Structure" use="required"> - <xsd:simpleType> - <xsd:restriction base="xsd:string"> - <xsd:enumeration value="detached" /> - <xsd:enumeration value="enveloping" /> - </xsd:restriction> - </xsd:simpleType> - </xsd:attribute> - </xsd:complexType> - <xsd:complexType name="TransformsInfoType"> - <xsd:sequence> - <xsd:element ref="MoaTransforms" minOccurs="0" /> - <xsd:element name="FinalDataMetaInfo" type="FinalDataMetaInfoType" /> - </xsd:sequence> - </xsd:complexType> - <xsd:element name="MoaTransforms" type="MoaTransformsType" /> - <xsd:complexType name="MoaTransformsType"> - <xsd:sequence> - <xsd:element ref="MoaTransform" maxOccurs="unbounded" /> - </xsd:sequence> - </xsd:complexType> - <xsd:element name="MoaTransform" type="MoaTransformType" /> - <xsd:complexType name="MoaTransformType" mixed="true"> - <xsd:choice minOccurs="0" maxOccurs="unbounded"> - <xsd:element name="transformData" type="xsd:base64Binary" /> - <xsd:element name="XPath" type="xsd:string" /> - </xsd:choice> - <xsd:attribute name="Algorithm" type="xsd:anyURI" use="required" /> - </xsd:complexType> - <xsd:complexType name="XMLDataObjectAssociationType"> - <xsd:sequence> - <xsd:element name="MetaInfo" type="MetaInfoType" - minOccurs="0" /> - <xsd:element name="Content" type="ContentRequiredRefType" /> - </xsd:sequence> - </xsd:complexType> - <xsd:complexType name="PDFSignedRepsonse"> - <xsd:sequence> - <xsd:element name="SignatureID" type="xsd:string" - minOccurs="0" maxOccurs="1" /> - <xsd:choice maxOccurs="1"> - <xsd:element name="PDFSignature" type="xsd:base64Binary"> - <xsd:annotation> - <xsd:documentation>Resultat, falls die Signaturerstellung - erfolgreich war</xsd:documentation> - </xsd:annotation> - </xsd:element> - <xsd:element ref="ErrorResponse" /> - </xsd:choice> - </xsd:sequence> - </xsd:complexType> - <xsd:complexType name="CMSDataObjectOptionalMetaType"> - <xsd:sequence> - <xsd:element name="MetaInfo" type="MetaInfoType" - minOccurs="0" /> - <xsd:element name="Content" type="CMSContentBaseType" /> - <xsd:element name="From" type="xsd:nonNegativeInteger" minOccurs="0" maxOccurs="1" /> - <xsd:element name="To" type="xsd:nonNegativeInteger" minOccurs="0" maxOccurs="1" /> - </xsd:sequence> - </xsd:complexType> - <xsd:complexType name="CMSDataObjectRequiredMetaType"> - <xsd:sequence> - <xsd:element name="MetaInfo" type="MetaInfoType" /> - <xsd:element name="Content" type="CMSContentBaseType" /> - <xsd:element name="From" type="xsd:nonNegativeInteger" minOccurs="0" maxOccurs="1" /> - <xsd:element name="To" type="xsd:nonNegativeInteger" minOccurs="0" maxOccurs="1" /> - </xsd:sequence> - </xsd:complexType> - <xsd:complexType name="CMSContentBaseType"> - <xsd:complexContent> - <xsd:restriction base="ContentOptionalRefType"> - <xsd:choice minOccurs="0"> - <xsd:element name="Base64Content" type="xsd:base64Binary" /> - </xsd:choice> - </xsd:restriction> - </xsd:complexContent> - </xsd:complexType> - <xsd:complexType name="CheckResultType"> - <xsd:sequence> - <xsd:element name="Code" type="xsd:nonNegativeInteger" /> - <xsd:element name="Info" type="AnyChildrenType" - minOccurs="0" /> - </xsd:sequence> - </xsd:complexType> - <xsd:complexType name="FormResultType"> - <xsd:sequence> - <xsd:element name="Code" type="xsd:nonNegativeInteger" - minOccurs="1" maxOccurs="1" /> - <xsd:element name="Name" type="xsd:string" minOccurs="1" - maxOccurs="1" /> - </xsd:sequence> - </xsd:complexType> - <xsd:complexType name="IndicationResultType"> - <xsd:sequence> - <xsd:element name="Code" type="xsd:nonNegativeInteger" minOccurs="1" maxOccurs="1"/> - <xsd:element name="Name" type="xsd:string" minOccurs="1" maxOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - <xsd:complexType name="ExtendedCertificateCheckResultType"> - <xsd:sequence> - <xsd:element name="Major" type="IndicationResultType" minOccurs="1" maxOccurs="1"/> - <xsd:element name="Minor" type="IndicationResultType" minOccurs="0" maxOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - <xsd:complexType name="ReferencesCheckResultType"> - <xsd:complexContent> - <xsd:restriction base="CheckResultType"> - <xsd:sequence> - <xsd:element name="Code" type="xsd:nonNegativeInteger" /> - <xsd:element name="Info" type="ReferencesCheckResultInfoType" - minOccurs="0" /> - </xsd:sequence> - </xsd:restriction> - </xsd:complexContent> - </xsd:complexType> - <xsd:complexType name="ReferencesCheckResultInfoType" - mixed="true"> - <xsd:complexContent> - <xsd:restriction base="AnyChildrenType"> - <xsd:sequence> - <xsd:any namespace="##other" processContents="lax" - minOccurs="0" maxOccurs="unbounded" /> - <xsd:element ref="FailedReference" minOccurs="0" maxOccurs="unbounded"/> - </xsd:sequence> - </xsd:restriction> - </xsd:complexContent> - </xsd:complexType> - <xsd:element name="FailedReference" type="xsd:positiveInteger"/> - <xsd:element name="ReferringSigReference" type="xsd:positiveInteger" /> - <xsd:complexType name="ManifestRefsCheckResultType"> - <xsd:complexContent> - <xsd:restriction base="CheckResultType"> - <xsd:sequence> - <xsd:element name="Code" type="xsd:nonNegativeInteger" /> - <xsd:element name="Info" type="ManifestRefsCheckResultInfoType" /> - </xsd:sequence> - </xsd:restriction> - </xsd:complexContent> - </xsd:complexType> - <xsd:complexType name="ManifestRefsCheckResultInfoType" - mixed="true"> - <xsd:complexContent> - <xsd:restriction base="AnyChildrenType"> - <xsd:sequence> - <xsd:any namespace="##other" processContents="lax" - minOccurs="0" maxOccurs="unbounded" /> - <xsd:element ref="FailedReference" minOccurs="0" maxOccurs="unbounded"/> - <xsd:element ref="ReferringSigReference"/> - </xsd:sequence> - </xsd:restriction> - </xsd:complexContent> - </xsd:complexType> - <!--########## Error Response ### --> - <xsd:element name="ErrorResponse" type="ErrorResponseType"> - <xsd:annotation> - <xsd:documentation>Resultat, falls die Signaturerstellung gescheitert - ist</xsd:documentation> - </xsd:annotation> - </xsd:element> - <xsd:complexType name="ErrorResponseType"> - <xsd:sequence> - <xsd:element name="ErrorCode" type="xsd:integer" /> - <xsd:element name="Info" type="xsd:string" /> - </xsd:sequence> - </xsd:complexType> - <!--########## Auxiliary Types ### --> - <xsd:simpleType name="KeyIdentifierType"> - <xsd:restriction base="xsd:string" /> - </xsd:simpleType> - <xsd:simpleType name="KeyStorageType"> - <xsd:restriction base="xsd:string"> - <xsd:enumeration value="Software" /> - <xsd:enumeration value="Hardware" /> - </xsd:restriction> - </xsd:simpleType> - <xsd:simpleType name="MimeTypeType"> - <xsd:restriction base="xsd:token" /> - </xsd:simpleType> - <xsd:complexType name="AnyChildrenType" mixed="true"> - <xsd:sequence> - <xsd:any namespace="##any" processContents="lax" minOccurs="0" - maxOccurs="unbounded" /> - </xsd:sequence> - </xsd:complexType> - <xsd:complexType name="ContentBaseType"> - <xsd:choice minOccurs="0"> - <xsd:element name="Base64Content" type="xsd:base64Binary" /> - <xsd:element name="LocRefContent" type="xsd:anyURI" /> - </xsd:choice> - </xsd:complexType> - <xsd:complexType name="ContentExLocRefBaseType"> - <xsd:complexContent> - <xsd:restriction base="ContentBaseType"> - <xsd:choice minOccurs="0"> - <xsd:element name="Base64Content" type="xsd:base64Binary" /> - </xsd:choice> - </xsd:restriction> - </xsd:complexContent> - </xsd:complexType> - <xsd:complexType name="ContentOptionalRefType"> - <xsd:complexContent> - <xsd:extension base="ContentBaseType"> - <xsd:attribute name="Reference" type="xsd:anyURI" use="optional" /> - </xsd:extension> - </xsd:complexContent> - </xsd:complexType> - <xsd:complexType name="ContentRequiredRefType"> - <xsd:complexContent> - <xsd:restriction base="ContentOptionalRefType"> - <xsd:choice minOccurs="0"> - <xsd:element name="Base64Content" type="xsd:base64Binary" /> - <xsd:element name="LocRefContent" type="xsd:anyURI" /> - </xsd:choice> - <xsd:attribute name="Reference" type="xsd:anyURI" use="required" /> - </xsd:restriction> - </xsd:complexContent> - </xsd:complexType> - <xsd:complexType name="VerifyTransformsDataType"> - <xsd:choice maxOccurs="unbounded"> - <xsd:annotation> - <xsd:documentation>Ein oder mehrere Transformationswege können von - der Applikation an MOA mitgeteilt werden. Die zu prüfende Signatur - hat zumindest einem dieser Transformationswege zu entsprechen. Die - Angabe kann explizit oder als Profilbezeichner erfolgen. - </xsd:documentation> - </xsd:annotation> - <xsd:element ref="VerifyTransformsInfoProfile" /> - <xsd:element name="VerifyTransformsInfoProfileID" type="xsd:string"> - <xsd:annotation> - <xsd:documentation>Profilbezeichner für einen Transformationsweg - </xsd:documentation> - </xsd:annotation> - </xsd:element> - </xsd:choice> - </xsd:complexType> - <xsd:element name="QualifiedCertificate"> - <xsd:complexType> - <xsd:attribute name="source" use="optional"> - <xsd:simpleType> - <xsd:restriction base="xsd:token"> - <xsd:enumeration value="TSL" /> - <xsd:enumeration value="Certificate" /> - </xsd:restriction> - </xsd:simpleType> - </xsd:attribute> - </xsd:complexType> - </xsd:element> - <xsd:complexType name="XMLSignatureLocationType"> - <xsd:sequence> - <xsd:element name="NamespaceDeclaration" type="NamespaceDeclarationType" minOccurs="0" maxOccurs="unbounded"/> - <xsd:element name="XPathExpression" type="xsd:token" minOccurs="1" maxOccurs="1"/> - </xsd:sequence> - </xsd:complexType> - <xsd:complexType name="NamespaceDeclarationType"> - <xsd:simpleContent> - <xsd:extension base="xsd:token"> - <xsd:attribute name="prefix" use="required" type="xsd:string"/> - </xsd:extension> - </xsd:simpleContent> - </xsd:complexType> - <xsd:element name="SecureSignatureCreationDevice"> - <xsd:complexType> - <xsd:attribute name="source" use="optional"> - <xsd:simpleType> - <xsd:restriction base="xsd:token"> - <xsd:enumeration value="TSL" /> - <xsd:enumeration value="Certificate" /> - </xsd:restriction> - </xsd:simpleType> - </xsd:attribute> - </xsd:complexType> - </xsd:element> - <xsd:element name="IssuingCountry" type="xsd:token" /> - <xsd:element name="PublicAuthority" type="PublicAuthorityType" /> - <xsd:complexType name="PublicAuthorityType"> - <xsd:sequence> - <xsd:element name="Code" type="xsd:string" minOccurs="0" /> - </xsd:sequence> - </xsd:complexType> - <xsd:simpleType name="SignatoriesType"> - <xsd:union memberTypes="AllSignatoriesType"> - <xsd:simpleType> - <xsd:list itemType="xsd:positiveInteger" /> - </xsd:simpleType> - </xsd:union> - </xsd:simpleType> - <xsd:simpleType name="AllSignatoriesType"> - <xsd:restriction base="xsd:string"> - <xsd:enumeration value="all" /> - </xsd:restriction> - </xsd:simpleType> - <xsd:complexType name="CreateSignatureLocationType"> - <xsd:simpleContent> - <xsd:extension base="xsd:token"> - <xsd:attribute name="Index" type="xsd:integer" use="required" /> - </xsd:extension> - </xsd:simpleContent> - </xsd:complexType> - <xsd:complexType name="TransformParameterType"> - <xsd:choice minOccurs="0"> - <xsd:annotation> - <xsd:documentation>Die Angabe des Transformationsparameters - (explizit oder als Hashwert) kann unterlassen werden, wenn die - Applikation von der Unveränderlichkeit des Inhalts der in - "Transformationsparamter", Attribut "URI" angegebenen URI ausgehen - kann.</xsd:documentation> - </xsd:annotation> - <xsd:element name="Base64Content" type="xsd:base64Binary"> - <xsd:annotation> - <xsd:documentation>Der Transformationsparameter explizit angegeben. - </xsd:documentation> - </xsd:annotation> - </xsd:element> - <xsd:element name="Hash"> - <xsd:annotation> - <xsd:documentation>Der Hashwert des Transformationsparameters. - </xsd:documentation> - </xsd:annotation> - <xsd:complexType> - <xsd:sequence> - <xsd:element ref="dsig:DigestMethod" /> - <xsd:element ref="dsig:DigestValue" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - </xsd:choice> - <xsd:attribute name="URI" type="xsd:anyURI" use="required" /> - </xsd:complexType> - <xsd:element name="CreateSignatureEnvironmentProfile"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="CreateSignatureLocation" type="CreateSignatureLocationType" /> - <xsd:element name="Supplement" type="XMLDataObjectAssociationType" - minOccurs="0" maxOccurs="unbounded" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="VerifyTransformsInfoProfile"> - <xsd:annotation> - <xsd:documentation>Explizite Angabe des Transformationswegs - </xsd:documentation> - </xsd:annotation> - <xsd:complexType> - <xsd:sequence> - <xsd:element ref="MoaTransforms" minOccurs="0" /> - <xsd:element name="TransformParameter" type="TransformParameterType" - minOccurs="0" maxOccurs="unbounded"> - <xsd:annotation> - <xsd:documentation>Alle impliziten Transformationsparameter, die - zum Durchlaufen der oben angeführten Transformationskette - bekannt sein müssen, müssen hier angeführt werden. Das - Attribut "URI" bezeichnet den Transformationsparameter in exakt - jener Weise, wie er in der zu überprüfenden Signatur gebraucht - wird.</xsd:documentation> - </xsd:annotation> - </xsd:element> - </xsd:sequence> - </xsd:complexType> - </xsd:element> - <xsd:element name="Supplement" type="XMLDataObjectAssociationType" /> - <xsd:element name="SupplementProfile" type="XMLDataObjectAssociationType" /> - <xsd:element name="CreateTransformsInfoProfile"> - <xsd:complexType> - <xsd:sequence> - <xsd:element name="CreateTransformsInfo" type="TransformsInfoType" /> - <xsd:element ref="Supplement" minOccurs="0" maxOccurs="unbounded" /> - </xsd:sequence> - </xsd:complexType> - </xsd:element> -</xsd:schema>
\ No newline at end of file diff --git a/moaSig/moa-sig/src/main/resources/resources/schemas/MOA-SPSS-2.0.0.wsdl b/moaSig/moa-sig/src/main/resources/resources/schemas/MOA-SPSS-2.0.0.wsdl index 00bf4c5..c1ba365 100644 --- a/moaSig/moa-sig/src/main/resources/resources/schemas/MOA-SPSS-2.0.0.wsdl +++ b/moaSig/moa-sig/src/main/resources/resources/schemas/MOA-SPSS-2.0.0.wsdl @@ -34,6 +34,12 @@ <message name="VerifyPDFSignatureOutput">
<part name="body" element="moa:VerifyPDFSignatureResponse"/>
</message>
+ <message name="VerifyASICSignatureInput">
+ <part name="body" element="moa:VerifyASICSignatureRequest"/>
+ </message>
+ <message name="VerifyASICSignatureOutput">
+ <part name="body" element="moa:VerifyASICSignatureResponse"/>
+ </message>
<message name="VerifyXMLSignatureInput">
<part name="body" element="moa:VerifyXMLSignatureRequest"/>
</message>
@@ -76,6 +82,11 @@ <output message="tns:VerifyPDFSignatureOutput"/>
<fault name="MOAFault" message="tns:MOAFault"/>
</operation>
+ <operation name="verifyASICSignature">
+ <input message="tns:VerifyASICSignatureInput"/>
+ <output message="tns:VerifyASICSignatureOutput"/>
+ <fault name="MOAFault" message="tns:MOAFault"/>
+ </operation>
</portType>
<binding name="SignatureCreationBinding" type="tns:SignatureCreationPortType">
<soap:binding style="document" transport="http://schemas.xmlsoap.org/soap/http"/>
@@ -154,6 +165,18 @@ <!-- soap:fault name="" use="literal" namespace="http://reference.e-government.gv.at/namespace/moa/20020822#"/-->
</fault>
</operation>
+ <operation name="verifyASICSignature">
+ <soap:operation soapAction="urn:VerifyASICSignatureAction"/>
+ <input>
+ <soap:body use="literal" namespace="http://reference.e-government.gv.at/namespace/moa/20020822#"/>
+ </input>
+ <output>
+ <soap:body use="literal" namespace="http://reference.e-government.gv.at/namespace/moa/20020822#"/>
+ </output>
+ <fault name="MOAFault">
+ <!-- soap:fault name="" use="literal" namespace="http://reference.e-government.gv.at/namespace/moa/20020822#"/-->
+ </fault>
+ </operation>
</binding>
<service name="SignatureCreationService">
<port name="SignatureCreationPort" binding="tns:SignatureCreationBinding">
diff --git a/moaSig/moa-sig/src/main/resources/resources/schemas/MOA-SPSS-2.0.0.xsd b/moaSig/moa-sig/src/main/resources/resources/schemas/MOA-SPSS-2.0.0.xsd index edd82cb..b786659 100644 --- a/moaSig/moa-sig/src/main/resources/resources/schemas/MOA-SPSS-2.0.0.xsd +++ b/moaSig/moa-sig/src/main/resources/resources/schemas/MOA-SPSS-2.0.0.xsd @@ -214,6 +214,47 @@ </xsd:element> </xsd:sequence> </xsd:complexType> + <!--########## Verify PDF Signature ###--> + <!--### Verifiy ASIC Signature Request ###--> + <xsd:element name="VerifyASICSignatureRequest"> + <xsd:complexType> + <xsd:complexContent> + <xsd:extension base="VerifyASICSignatureRequestType"> + </xsd:extension> + </xsd:complexContent> + </xsd:complexType> + </xsd:element> + <xsd:complexType name="VerifyASICSignatureRequestType"> + <xsd:sequence> + <xsd:element name="DateTime" type="xsd:dateTime" minOccurs="0"/> + <xsd:element name="ExtendedValidation" type="xsd:boolean" minOccurs="0" default="false"/> + <xsd:element name="ASICSignature" type="xsd:base64Binary"/> + <xsd:element name="ASICExtension" type="xsd:string"> + <xsd:annotation> + <xsd:documentation>asics or asice</xsd:documentation> + </xsd:annotation> + </xsd:element> + <xsd:element name="TrustProfileID" type="xsd:token"> + <xsd:annotation> + <xsd:documentation>mit diesem Profil wird eine Menge von vertrauenswürdigen Wurzelzertifikaten spezifiziert</xsd:documentation> + </xsd:annotation> + </xsd:element> + </xsd:sequence> + </xsd:complexType> + <!--### Verify ASIC Signature Response ###--> + <xsd:element name="VerifyASICSignatureResponse" type="VerifyASICSignatureResponseType"/> + <xsd:complexType name="VerifyASICSignatureResponseType"> + <xsd:sequence> + <xsd:element name="ASiCSignatureResult" type="ASICResultType" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> + <xsd:complexType name="ASICResultType"> + <xsd:sequence> + <xsd:element name="signedFiles" type="xsd:string" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="XMLSignatureResult" type="VerifyXMLSignatureResponseType" minOccurs="0" maxOccurs="unbounded"/> + <xsd:element name="CMSSignatureResult" type="VerifyCMSSignatureResponseType" minOccurs="0" maxOccurs="unbounded"/> + </xsd:sequence> + </xsd:complexType> <!--### Verify CMS Signature Response ###--> <xsd:element name="VerifyPDFSignatureResponse" type="VerifyPDFSignatureResponseType"/> <xsd:complexType name="VerifyPDFSignatureResponseType"> |