Skip to content
Permalink
Browse files

Merge pull request #153 from digipost/xsd-forslag

Ta inn flyttet digital post i eksempler og XSD
  • Loading branch information...
aberner committed Oct 21, 2014
2 parents 66fb14c + e729d36 commit d50d5ff81baf1a65ec4e9c8b615dc42bb69a9c3f
Showing with 146 additions and 2 deletions.
  1. +101 −0 eksempler/sdpMelding-flytte.xml
  2. +8 −2 xsd/sdp-kvittering.xsd
  3. +37 −0 xsd/sdp-melding.xsd
@@ -0,0 +1,101 @@
<?xml version="1.0" encoding="UTF-8"?>
<flyttetDigitalPost
xmlns="http://begrep.difi.no/sdp/schema_v10"
xmlns:ds="http://www.w3.org/2000/09/xmldsig#"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://begrep.difi.no/sdp/schema_v10 ../xsd/sdp-melding.xsd ">


<Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
<SignedInfo>
<CanonicalizationMethod Algorithm="http://www.w3.org/2001/10/xml-exc-c14n#"/>
<SignatureMethod Algorithm="http://www.w3.org/2001/04/xmldsig-more#rsa-sha256"/>
<Reference URI="">
<Transforms>
<Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature"/>
</Transforms>
<DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256"/>
<DigestValue>uooqbWYa5VCqcJCbuymBKqm17vY=</DigestValue>
</Reference>
</SignedInfo>
<SignatureValue xmlns="http://www.w3.org/2000/09/xmldsig#">KedJuTob5gtvYx9qM3k3gm7kbLBwVbEQRl26S2tmXjqNND7MRGtoew==</SignatureValue>
<KeyInfo xmlns="http://www.w3.org/2000/09/xmldsig#">
<X509Data>
<X509Certificate>
MIIElTCCA32gAwIBAgIDDUL8MA0GCSqGSIb3DQEBBQUAMEsxCzAJBgNVBAYTAk5P
MR0wGwYDVQQKDBRCdXlwYXNzIEFTLTk4MzE2MzMyNzEdMBsGA1UEAwwUQnV5cGFz
cyBDbGFzcyAzIENBIDEwHhcNMTEwNTEzMTI0MjU3W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NzM0NBMTANBgkqhkiG9w0B
AQUFAAOCAQEAivJd3hg5+16QOv638JlKixMivlZjbtAj8TGDKhnB6sXBw4bNbHQS
GDVdO07JKzBeYcohiYKPSn6+6NAEhJaetwVrhZgMQxNluUSOj+KSxzVVD6NLC3ga
wswK6i3OruBvpynXViNVCTjlmQzi/4pp5NjRNFcbJrfeONZwzClmIqhJorDqhw2T
/55OBEC+FxtQ9bEFBwHT0Qrx4L+HHJP7Vkk0CLWY5Ib89PZHFke/X/ad/HEla8F3
UjKB02xxs2OKEmE0gQrn3SYjOtONfQDK377RiQPiY3eKV4CBVUcidbfqPyjY/rbZ
TaPOXIYao3VFv6RCTO80zn1qw1JqGvDgNg==
</X509Certificate>
</X509Data>
</KeyInfo>
</Signature>

<avsender>
<organisasjon>9908:123456789</organisasjon>
<avsenderidentifikator>123456789-A</avsenderidentifikator>
<fakturaReferanse>ØK1</fakturaReferanse>
</avsender>

<mottaker>
<person>
<personidentifikator>17051400000</personidentifikator>
<postkasseadresse>ola.nordmann#0ABC</postkasseadresse>
</person>
</mottaker>

<digitalPostInfo>
<virkningsdato>2014-05-17</virkningsdato>
<aapningskvittering>false</aapningskvittering>
<sikkerhetsnivaa>3</sikkerhetsnivaa>
<ikkeSensitivTittel lang="no">Hurra for 17. mai</ikkeSensitivTittel>
<varsler>
<epostVarsel>
<epostadresse>ola@example.com</epostadresse>
<varslingsTekst lang="no">Viktig melding fra Staten i din digitale postkasse</varslingsTekst>
<repetisjoner>
<dagerEtter>0</dagerEtter>
<dagerEtter>7</dagerEtter>
</repetisjoner>
</epostVarsel>
<smsVarsel>
<mobiltelefonnummer>12345678</mobiltelefonnummer>
<varslingsTekst lang="no">Viktig melding fra Staten</varslingsTekst>
<repetisjoner>
<dagerEtter>1</dagerEtter>
</repetisjoner>
</smsVarsel>
</varsler>
</digitalPostInfo>

<dokumentpakkefingeravtrykk>
<ds:DigestMethod Algorithm="http://www.w3.org/2001/04/xmlenc#sha256" />
<ds:DigestValue></ds:DigestValue>
</dokumentpakkefingeravtrykk>

<mottaksdato>2014-05-16</mottaksdato>

<aapnet>true</aapnet>

</flyttetDigitalPost>
@@ -7,6 +7,7 @@
<xsd:include schemaLocation="sdp-felles.xsd"/>
<xsd:import namespace="http://www.w3.org/2000/09/xmldsig#" schemaLocation="w3/xmldsig-core-schema.xsd"/>


<xsd:element name="kvittering" type="Kvittering"/>
<xsd:complexType name="Kvittering">
<xsd:complexContent>
@@ -22,14 +23,18 @@
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>


<xsd:complexType name="Levering">
<xsd:annotation>
<xsd:documentation>
Postkasseleverandøren garanterer at brevet har eller vil bli levert
Postkasseleverandøren garanterer at brevet er eller vil bli levert
til mottakers digitale postkasse.
</xsd:documentation>
</xsd:annotation>
</xsd:complexType>


<xsd:complexType name="Aapning">
<xsd:annotation>
<xsd:documentation>
@@ -39,6 +44,7 @@
</xsd:annotation>
</xsd:complexType>


<xsd:complexType name="Varslingfeilet">
<xsd:annotation>
<xsd:documentation>
@@ -56,10 +62,10 @@
<xsd:enumeration value="EPOST"/>
</xsd:restriction>
</xsd:simpleType>

<xsd:simpleType name="Beskrivelse">
<xsd:restriction base="xsd:string">
<xsd:maxLength value="1000"/>
</xsd:restriction>
</xsd:simpleType>

</xsd:schema>
@@ -46,6 +46,43 @@
</xsd:complexContent>
</xsd:complexType>

<xsd:element name="flyttetDigitalPost" type="FlyttetDigitalPost" />

<xsd:complexType name="FlyttetDigitalPost">
<xsd:complexContent>
<xsd:extension base="Melding">
<xsd:sequence>
<xsd:element name="avsender" type="Avsender" minOccurs="1" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
Den reelle avsenderen av dokument(ene)
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="mottaker" type="Mottaker" minOccurs="1" maxOccurs="1">
<xsd:annotation>
<xsd:documentation>
Mottakeren av meldingen.
</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="digitalPostInfo" type="DigitalPostInfo" minOccurs="1" maxOccurs="1"/>
<xsd:element name="dokumentpakkefingeravtrykk" type="ds:ReferenceType" minOccurs="1" maxOccurs="1" />
<xsd:element name="mottaksdato" type="xsd:date" minOccurs="1" maxOccurs="1" >
<xsd:annotation>
<xsd:documentation>Dato brevet ble mottatt i opprinnelig postkasse.</xsd:documentation>
</xsd:annotation>
</xsd:element>
<xsd:element name="aapnet" type="xsd:boolean" minOccurs="1" maxOccurs="1" >
<xsd:annotation>
<xsd:documentation>Indikerer om mottakeren har aapnet brevet eller ikke.</xsd:documentation>
</xsd:annotation>
</xsd:element>
</xsd:sequence>
</xsd:extension>
</xsd:complexContent>
</xsd:complexType>

<xsd:complexType name="DigitalPostInfo">
<xsd:sequence>
<xsd:element name="virkningsdato" type="xsd:date" minOccurs="0" maxOccurs="1"/>

0 comments on commit d50d5ff

Please sign in to comment.
You can’t perform that action at this time.