Skip to content

Commit

Permalink
Merge pull request #11 from difi/AktiverKjedevalideringISertifikatVal…
Browse files Browse the repository at this point in the history
…idering

Aktiver kjedevalidering i sertifikatvalidator
  • Loading branch information
asjafjell authored Sep 27, 2016
2 parents 56e7223 + 34b0e5d commit ae8fad2
Show file tree
Hide file tree
Showing 67 changed files with 932 additions and 652 deletions.
104 changes: 104 additions & 0 deletions Difi.Felles.Utility.Resources/Certificate/CertificateResource.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,104 @@
using System.Collections.Generic;
using System.Security.Cryptography.X509Certificates;
using ApiClientShared;

namespace Difi.Felles.Utility.Resources.Certificate
{
internal class CertificateResource
{
private static readonly ResourceUtility ResourceUtility = new ResourceUtility("Difi.Felles.Utility.Resources.Certificate.Data");

internal static X509Certificate2 GetCertificate(params string[] path)
{
return new X509Certificate2(ResourceUtility.ReadAllBytes(true, path), "", X509KeyStorageFlags.Exportable);
}

public static class UnitTests
{
public static X509Certificate2 GetProduksjonsMottakerSertifikatOppslagstjenesten()
{
return GetCertificate("UnitTests", "produksjonsmottakersertifikatFraOppslagstjenesten.pem");
}

public static X509Certificate2 GetFunksjoneltTestmiljøMottakerSertifikatOppslagstjenesten()
{
return GetCertificate("UnitTests", "testmottakersertifikatFraOppslagstjenesten.pem");
}

public static X509Certificate2 NotActivatedSelfSignedTestCertificate()
{
return GetCertificate("UnitTests", "NotActivatedSelfSignedBringAs.cer");
}

public static X509Certificate2 GetExpiredSelfSignedTestCertificate()
{
return GetCertificate("UnitTests", "ExpiredSelfSignedBringAs.cer");
}

public static X509Certificate2 GetValidSelfSignedTestCertificate()
{
return GetCertificate("UnitTests", "ValidSelfSignedBringAs.cer");
}

public static X509Certificate2 TestIntegrasjonssertifikat()
{
return GetPostenCertificate();
}

public static X509Certificate2 GetEnhetstesterSelvsignertSertifikat()
{
return GetCertificate("UnitTests", "difi-enhetstester.cer");
}

public static X509Certificate2 GetPostenCertificate()
{
return GetCertificate("UnitTests", "PostenNorgeAs.cer");
}

internal static X509Certificate2 GetAvsenderEnhetstesterSertifikat()
{
return EvigTestSertifikatMedPrivatnøkkel();
}

internal static X509Certificate2 GetMottakerEnhetstesterSertifikat()
{
return EvigTestSertifikatUtenPrivatnøkkel();
}

private static X509Certificate2 EvigTestSertifikatUtenPrivatnøkkel()
{
return GetCertificate("UnitTests", "difi-enhetstester.cer");
}

private static X509Certificate2 EvigTestSertifikatMedPrivatnøkkel()
{
return GetCertificate("UnitTests", "difi-enhetstester.p12");
}
}

public static class Chain
{
public static List<X509Certificate2> GetDifiTestChain()
{
return new List<X509Certificate2>
{
new X509Certificate2(GetCertificate("TestChain", "Buypass_Class_3_Test4_CA_3.cer")),
new X509Certificate2(GetCertificate("TestChain", "Buypass_Class_3_Test4_Root_CA.cer")),
new X509Certificate2(GetCertificate("TestChain", "intermediate - commfides cpn enterprise-norwegian sha256 ca - test2.crt")),
new X509Certificate2(GetCertificate("TestChain", "root - cpn root sha256 ca - test.crt"))
};
}

public static List<X509Certificate2> GetDifiProductionChain()
{
return new List<X509Certificate2>
{
new X509Certificate2(GetCertificate("ProdChain", "BPClass3CA3.cer")),
new X509Certificate2(GetCertificate("ProdChain", "BPClass3RootCA.cer")),
new X509Certificate2(GetCertificate("ProdChain", "cpn enterprise sha256 class 3.crt")),
new X509Certificate2(GetCertificate("ProdChain", "cpn rootca sha256 class 3.crt"))
};
}
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file not shown.
Binary file not shown.
Binary file not shown.
116 changes: 116 additions & 0 deletions Difi.Felles.Utility.Resources/Difi.Felles.Utility.Resources.csproj
Original file line number Diff line number Diff line change
@@ -0,0 +1,116 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<Import Project="$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props" Condition="Exists('$(MSBuildExtensionsPath)\$(MSBuildToolsVersion)\Microsoft.Common.props')" />
<PropertyGroup>
<Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
<Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
<ProjectGuid>{C737EA02-E687-45C4-95DB-72B5083246F2}</ProjectGuid>
<OutputType>Library</OutputType>
<AppDesignerFolder>Properties</AppDesignerFolder>
<RootNamespace>Difi.Felles.Utility.Resources</RootNamespace>
<AssemblyName>Difi.Felles.Utility.Resources</AssemblyName>
<TargetFrameworkVersion>v4.5</TargetFrameworkVersion>
<FileAlignment>512</FileAlignment>
<TargetFrameworkProfile />
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
<DebugSymbols>true</DebugSymbols>
<DebugType>full</DebugType>
<Optimize>false</Optimize>
<OutputPath>bin\Debug\</OutputPath>
<DefineConstants>DEBUG;TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
<DebugType>pdbonly</DebugType>
<Optimize>true</Optimize>
<OutputPath>bin\Release\</OutputPath>
<DefineConstants>TRACE</DefineConstants>
<ErrorReport>prompt</ErrorReport>
<WarningLevel>4</WarningLevel>
</PropertyGroup>
<PropertyGroup>
<SignAssembly>true</SignAssembly>
</PropertyGroup>
<PropertyGroup>
<AssemblyOriginatorKeyFile>C:\Keys\digipost.pfx</AssemblyOriginatorKeyFile>
</PropertyGroup>
<ItemGroup>
<Reference Include="ApiClientShared, Version=1.0.5968.19413, Culture=neutral, PublicKeyToken=683b8efceae684a6, processorArchitecture=MSIL">
<HintPath>..\packages\api-client-shared.1.0.5968.19413\lib\net45\ApiClientShared.dll</HintPath>
<Private>True</Private>
</Reference>
<Reference Include="System" />
<Reference Include="System.Core" />
<Reference Include="System.Xml.Linq" />
<Reference Include="System.Data.DataSetExtensions" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.Data" />
<Reference Include="System.Net.Http" />
<Reference Include="System.Xml" />
</ItemGroup>
<ItemGroup>
<Compile Include="..\SharedAssemblyInfo.cs">
<Link>Properties\SharedAssemblyInfo.cs</Link>
</Compile>
<Compile Include="Certificate\CertificateResource.cs" />
<Compile Include="Properties\AssemblyInfo.cs" />
<Compile Include="Xml\Data\Transportkvittering.cs" />
<Compile Include="Xml\XmlUtility.cs" />
<Compile Include="Xml\XmlResource.cs" />
<Compile Include="Xsd\XsdResource.cs" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Certificate\Data\UnitTests\difi-enhetstester.cer" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Certificate\Data\UnitTests\difi-enhetstester.p12" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Certificate\Data\UnitTests\ExpiredSelfSignedBringAs.cer" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Certificate\Data\UnitTests\NotActivatedSelfSignedBringAs.cer" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Certificate\Data\UnitTests\PostenNorgeAs.cer" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Certificate\Data\UnitTests\ValidSelfSignedBringAs.cer" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Certificate\Data\UnitTests\produksjonsmottakersertifikatFraOppslagstjenesten.pem" />
<EmbeddedResource Include="Certificate\Data\UnitTests\testmottakersertifikatFraOppslagstjenesten.pem" />
<EmbeddedResource Include="Certificate\Data\ProdChain\BPClass3CA3.cer" />
<EmbeddedResource Include="Certificate\Data\ProdChain\BPClass3RootCA.cer" />
<EmbeddedResource Include="Certificate\Data\ProdChain\cpn enterprise sha256 class 3.crt" />
<EmbeddedResource Include="Certificate\Data\ProdChain\cpn rootca sha256 class 3.crt" />
<EmbeddedResource Include="Certificate\Data\TestChain\Buypass_Class_3_Test4_CA_3.cer" />
<EmbeddedResource Include="Certificate\Data\TestChain\Buypass_Class_3_Test4_Root_CA.cer" />
<EmbeddedResource Include="Certificate\Data\TestChain\intermediate - commfides cpn enterprise-norwegian sha256 ca - test2.crt" />
<EmbeddedResource Include="Certificate\Data\TestChain\root - cpn root sha256 ca - test.crt" />
<None Include="packages.config" />
<EmbeddedResource Include="Xsd\Data\Sample.xsd">
<SubType>Designer</SubType>
</EmbeddedResource>
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Xml\Data\InvalidIdentifikatorContent.xml" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Xml\Data\UnknownElement.xml" />
</ItemGroup>
<ItemGroup>
<EmbeddedResource Include="Xml\Data\Valid.xml" />
</ItemGroup>
<ItemGroup />
<Import Project="$(MSBuildToolsPath)\Microsoft.CSharp.targets" />
<!-- To modify your build process, add your task inside one of the targets below and uncomment it.
Other similar extension points exist, see Microsoft.Common.targets.
<Target Name="BeforeBuild">
</Target>
<Target Name="AfterBuild">
</Target>
-->
</Project>
7 changes: 7 additions & 0 deletions Difi.Felles.Utility.Resources/Properties/AssemblyInfo.cs
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
using System.Reflection;
using System.Runtime.CompilerServices;
using System.Runtime.InteropServices;

[assembly: AssemblyTitle("Difi.Felles.Utility.Resources")]
[assembly: ComVisible(false)]
[assembly: InternalsVisibleTo("Difi.Felles.Utility,PublicKey=00240000048000009400000006020000002400005253413100040000010001008b3388f9c416425f0145bbcf26e66b9a87c4e08b4cd41563e4bc8846df38ba4d997c5408cc77da26d79b03c39874a6af9df0aff3e7bdb3c0e53a91f6d19c50e160f5bf67986a04f0f985eca0252f557ed9ae520dd51e3107d6168d073d4ec5ada28d34e492ad9fb7af29c82309c5c0124211e679caea38d5463d2af9042dafda")]
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
<?xml version="1.0"?>
<Envelope xmlns="http://tempuri.org/po.xsd" >
<Header>
<Security>
<InclusiveNamespaces PrefixList="" />
</Security>
</Header>
<Body>
<Forespoersel>
<Identifikator>invalidContent</Identifikator>
</Forespoersel>
</Body>
</Envelope>
<?xml version="1.0"?>
<Envelope xmlns="http://tempuri.org/po.xsd" >
<Header>
<Security>
<InclusiveNamespaces PrefixList="" />
</Security>
</Header>
<Body>
<Forespoersel>
<Identifikator>invalidContent</Identifikator>
</Forespoersel>
</Body>
</Envelope>
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ internal class TransportKvittering
public static string TransportOkKvittertingFunksjoneltTestmiljøMedInput(
string dokumentPakkeId = "4fa27c07-8a0f-45a9-954e-c658f6c480af@meldingsformidler.sdp.difi.no",
string securityBinary = "MIIE7jCCA9agAwIBAgIKGBj1bv99Jpi+EzANBgkqhkiG9w0BAQsFADBRMQswCQYDVQQGEwJOTzEdMBsGA1UECgwUQnV5cGFzcyBBUy05ODMxNjMzMjcxIzAhBgNVBAMMGkJ1eXBhc3MgQ2xhc3MgMyBUZXN0NCBDQSAzMB4XDTE0MDQyNDEyMzExMVoXDTE3MDQyNDIxNTkwMFowVTELMAkGA1UEBhMCTk8xGDAWBgNVBAoMD1BPU1RFTiBOT1JHRSBBUzEYMBYGA1UEAwwPUE9TVEVOIE5PUkdFIEFTMRIwEAYDVQQFEwk5ODQ2NjExODUwggEiMA0GCSqGSIb3DQEBAQUAA4IBDwAwggEKAoIBAQDLTnQryf2bmiyQ9q3ylQ6xMl7EhGIbjuziXkRTfL+M94m3ceAiko+r2piefKCiquLMK4j+UDcOapUtLC4dT4c6GhRH4FIOEn5aNS2I/njTenBypWka/VEhQUj7zvIh5G4UXIDIXYvLd7gideeMtkX24KUh2XVlh+PcqLGHirqBwVfFiTn5SKhr/ojhYYEb2xxTk3AY9nLd1MMffKQwUWmfoTos4scREYGI2R2vWxKWPcDqk+jig2DISWSJSuerz3HMYAAmp+Gjt0oFJNiyOFaFyGwT3DvqwOMQWwWXdmLh1NxMgTpghXAaXae76ucm9GDQ9E7ytf+JA096RWoi+5GtAgMBAAGjggHCMIIBvjAJBgNVHRMEAjAAMB8GA1UdIwQYMBaAFD+u9XgLkqNwIDVfWvr3JKBSAfBBMB0GA1UdDgQWBBTVyVLqcjWf1Qd0gsmCTrhXiWeqVDAOBgNVHQ8BAf8EBAMCBLAwFgYDVR0gBA8wDTALBglghEIBGgEAAwIwgbsGA1UdHwSBszCBsDA3oDWgM4YxaHR0cDovL2NybC50ZXN0NC5idXlwYXNzLm5vL2NybC9CUENsYXNzM1Q0Q0EzLmNybDB1oHOgcYZvbGRhcDovL2xkYXAudGVzdDQuYnV5cGFzcy5uby9kYz1CdXlwYXNzLGRjPU5PLENOPUJ1eXBhc3MlMjBDbGFzcyUyMDMlMjBUZXN0NCUyMENBJTIwMz9jZXJ0aWZpY2F0ZVJldm9jYXRpb25MaXN0MIGKBggrBgEFBQcBAQR+MHwwOwYIKwYBBQUHMAGGL2h0dHA6Ly9vY3NwLnRlc3Q0LmJ1eXBhc3Mubm8vb2NzcC9CUENsYXNzM1Q0Q0EzMD0GCCsGAQUFBzAChjFodHRwOi8vY3J0LnRlc3Q0LmJ1eXBhc3Mubm8vY3J0L0JQQ2xhc3MzVDRDQTMuY2VyMA0GCSqGSIb3DQEBCwUAA4IBAQCmMpAGaNplOgx3b4Qq6FLEcpnMOnPlSWBC7pQEDWx6OtNUHDm56fBoyVQYKR6LuGfalnnOKuB/sGSmO3eYlh7uDK9WA7bsNU/W8ZiwYwF6PBRui2rrqYk3kj4NLTNlyh/AOO1a2FDFHu369W0zcjj5ns7qs0K3peXtLX8pVxA8RmjwdGe69P/2r6s2A5CBj7oXZJD0Yo2dJFdsZzonT900sUi+MWzlhj3LxU5/684NWc2NI6ZPof/dyYpy3K/AFzpDLWGSmaDO66hPl7EfoJxEiX0DNBaQzNIyRFPh0ir0jM+32ZQ4goR8bAtyhKeTyA/4+Qx1WQXS3wURCC0lsbMh"
)
)
{
return $"<env:Envelope xmlns:env=\"http://www.w3.org/2003/05/soap-envelope\"><env:Header><wsse:Security xmlns:wsse=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-secext-1.0.xsd\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\" env:mustUnderstand=\"true\"><wsse:BinarySecurityToken EncodingType=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-soap-message-security-1.0#Base64Binary\" ValueType=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3\" wsu:Id=\"X509-aeb92311-5546-469e-b5e4-43e6ab95f3cb\">{securityBinary}</wsse:BinarySecurityToken><wsu:Timestamp wsu:Id=\"TS-a6855fa9-caef-4e05-bf70-6e1c64f8af30\"><wsu:Created>2015-10-22T14:27:47.188Z</wsu:Created><wsu:Expires>2015-10-22T14:32:47.188Z</wsu:Expires></wsu:Timestamp><ds:Signature xmlns:ds=\"http://www.w3.org/2000/09/xmldsig#\" Id=\"SIG-30bbc323-3557-4c21-afb1-b491839039de\"><ds:SignedInfo><ds:CanonicalizationMethod Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\"><ec:InclusiveNamespaces xmlns:ec=\"http://www.w3.org/2001/10/xml-exc-c14n#\" PrefixList=\"env\" /></ds:CanonicalizationMethod><ds:SignatureMethod Algorithm=\"http://www.w3.org/2001/04/xmldsig-more#rsa-sha256\" /><ds:Reference URI=\"#id-364cf5cf-c218-4f9f-b8a1-508ff8d44be6\"><ds:Transforms><ds:Transform Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\"><ec:InclusiveNamespaces xmlns:ec=\"http://www.w3.org/2001/10/xml-exc-c14n#\" PrefixList=\"\" /></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm=\"http://www.w3.org/2001/04/xmlenc#sha256\" /><ds:DigestValue>XryysQP3I8XTSL9icB3WCy17JxqqZIvNchNVzr9/rbc=</ds:DigestValue></ds:Reference><ds:Reference URI=\"#TS-a6855fa9-caef-4e05-bf70-6e1c64f8af30\"><ds:Transforms><ds:Transform Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\"><ec:InclusiveNamespaces xmlns:ec=\"http://www.w3.org/2001/10/xml-exc-c14n#\" PrefixList=\"wsse env\" /></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm=\"http://www.w3.org/2001/04/xmlenc#sha256\" /><ds:DigestValue>PuFI7dA66+N5d4Cov7GAdXYQq3wKBe8FwGknZtH/s4E=</ds:DigestValue></ds:Reference><ds:Reference URI=\"#id-32f63b6e-871a-4926-9f39-47ca5428f5dd\"><ds:Transforms><ds:Transform Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\"><ec:InclusiveNamespaces xmlns:ec=\"http://www.w3.org/2001/10/xml-exc-c14n#\" PrefixList=\"\" /></ds:Transform></ds:Transforms><ds:DigestMethod Algorithm=\"http://www.w3.org/2001/04/xmlenc#sha256\" /><ds:DigestValue>XI9g0I9fGSf/NVJVxe43kKCgF0OFdTc3F9SXSkE5PxA=</ds:DigestValue></ds:Reference></ds:SignedInfo><ds:SignatureValue>iHhXDHohEm9cFfqz6sLc5JTUULKmhqXqCNKqDA+LoJETaR7mLF6buwlSBX4cDms6BbfY//z1RRxM8g6bEfjZtaPGBoRUUH5ar4+jJX74NDoFa37CPN/YjLNYfx98Ld5Gidx/DljDlXQg3NTwYks8LXj1NyjTWC1bQGVFA4Gw7WC81GrUpRTP8fN/WhiN3hliZB3Q04K6KLFq1DH7aYxEvlYkziXBE7pYjdeFLmFGm+cVkVWG4j2t0GCJ8c75XIXHh1ZXhAUwKUHislP3gJ0z0Jmmvbcn6oLcSdCHJ1WYwGe5sxfPiGIbfKwYR3DsyqTTyOnXsqGP/S9vUndQ/bpQDQ==</ds:SignatureValue><ds:KeyInfo Id=\"KI-f13436c9-4d8f-448a-a1ca-144612196271\"><wsse:SecurityTokenReference wsu:Id=\"STR-89d7395a-24f2-47a7-b79a-95679f4cbc31\"><wsse:Reference URI=\"#X509-aeb92311-5546-469e-b5e4-43e6ab95f3cb\" ValueType=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-x509-token-profile-1.0#X509v3\" /></wsse:SecurityTokenReference></ds:KeyInfo></ds:Signature></wsse:Security><eb:Messaging xmlns:eb=\"http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/\" xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\" env:mustUnderstand=\"true\" wsu:Id=\"id-32f63b6e-871a-4926-9f39-47ca5428f5dd\"><ns6:SignalMessage xmlns:ns10=\"http://uri.etsi.org/2918/v1.2.1#\" xmlns:ns11=\"http://uri.etsi.org/01903/v1.3.2#\" xmlns:ns2=\"http://schemas.xmlsoap.org/soap/envelope/\" xmlns:ns3=\"http://www.unece.org/cefact/namespaces/StandardBusinessDocumentHeader\" xmlns:ns4=\"http://www.w3.org/2003/05/soap-envelope\" xmlns:ns5=\"http://www.w3.org/2000/09/xmldsig#\" xmlns:ns6=\"http://docs.oasis-open.org/ebxml-msg/ebms/v3.0/ns/core/200704/\" xmlns:ns7=\"http://docs.oasis-open.org/ebxml-bp/ebbp-signals-2.0\" xmlns:ns8=\"http://www.w3.org/1999/xlink\" xmlns:ns9=\"http://begrep.difi.no/sdp/schema_v10\"><ns6:MessageInfo><ns6:Timestamp>2015-10-22T16:27:47.187+02:00</ns6:Timestamp><ns6:MessageId>604d8104-d957-435c-a7ec-d5611f97f249</ns6:MessageId><ns6:RefToMessageId>388214db-29cc-43c7-9543-877e017e5bb4</ns6:RefToMessageId></ns6:MessageInfo><ns6:Receipt><ns7:NonRepudiationInformation><ns7:MessagePartNRInformation><ns5:Reference URI=\"cid:{dokumentPakkeId}\"><ns5:Transforms><ns5:Transform Algorithm=\"http://docs.oasis-open.org/wss/oasis-wss-SwAProfile-1.1#Attachment-Content-Signature-Transform\" /></ns5:Transforms><ns5:DigestMethod Algorithm=\"http://www.w3.org/2001/04/xmlenc#sha256\" /><ns5:DigestValue>5jQFrdmBGPCSWj5Sq4bVoYyfrF8vAYqKl1h3m/l1j5o=</ns5:DigestValue></ns5:Reference></ns7:MessagePartNRInformation><ns7:MessagePartNRInformation><ns5:Reference URI=\"#soapBody\"><ns5:Transforms><ns5:Transform Algorithm=\"http://www.w3.org/2001/10/xml-exc-c14n#\" /></ns5:Transforms><ns5:DigestMethod Algorithm=\"http://www.w3.org/2001/04/xmlenc#sha256\" /><ns5:DigestValue>clCREk3SJj5Y+FZ9oD8cnlMg1SDR74d8rXNcZQQIl8A=</ns5:DigestValue></ns5:Reference></ns7:MessagePartNRInformation></ns7:NonRepudiationInformation></ns6:Receipt></ns6:SignalMessage></eb:Messaging></env:Header><env:Body xmlns:wsu=\"http://docs.oasis-open.org/wss/2004/01/oasis-200401-wss-wssecurity-utility-1.0.xsd\" wsu:Id=\"id-364cf5cf-c218-4f9f-b8a1-508ff8d44be6\" /></env:Envelope>";
}
Expand Down
13 changes: 13 additions & 0 deletions Difi.Felles.Utility.Resources/Xml/Data/UnknownElement.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
<?xml version="1.0"?>
<Envelope xmlns="http://tempuri.org/po.xsd">
<Header>
<Security>
<InclusiveNamespaces PrefixList=""/>
</Security>
</Header>
<Body>
<Forespoersel>
<blabla/>
</Forespoersel>
</Body>
</Envelope>
Original file line number Diff line number Diff line change
@@ -1,16 +1,16 @@
<?xml version="1.0"?>
<Envelope xmlns="http://tempuri.org/po.xsd" >
<Header>
<Security>
<InclusiveNamespaces PrefixList="" />
</Security>
</Header>
<Body>
<Forespoersel>
<Identifikator>abc</Identifikator>
</Forespoersel>
<Forespoersel>
<Identifikator>bbb</Identifikator>
</Forespoersel>
</Body>
</Envelope>
<?xml version="1.0"?>
<Envelope xmlns="http://tempuri.org/po.xsd">
<Header>
<Security>
<InclusiveNamespaces PrefixList=""/>
</Security>
</Header>
<Body>
<Forespoersel>
<Identifikator>abc</Identifikator>
</Forespoersel>
<Forespoersel>
<Identifikator>bbb</Identifikator>
</Forespoersel>
</Body>
</Envelope>
Loading

0 comments on commit ae8fad2

Please sign in to comment.