OxalisCommunity / oxalis

Oxalis - PEPPOL Access Point open source implementation - Core component
Other
124 stars 90 forks source link

Where to find which AP sent a document #467

Closed amaters-easy closed 4 years ago

amaters-easy commented 4 years ago

Is there any way to see which AP sent a document? It seems the receipt.dat file does not provide it and differs from different sending AP's

artjomsk commented 4 years ago

What you mean by which AP? Is certificate's CN like PNO000xxx OK?

no.difi.oxalis.api.inbound.InboundMetadata contains certificate of sender AP.

no.difi.oxalis.commons.security.CertificateUtils.extractCommonName(inboundMetadata.getCertificate())
klakegg commented 4 years ago

The correct answer is provided. No need to keep this issue open.

amaters-easy commented 4 years ago

The correct answer is provided. No need to keep this issue open.

For you the answer might seem as sufficient. For me it's harder to understand. I am looking at a xml file wondering how to discover where the no.difi.oxalis.commons.security.CertificateUtils.extract part is. I assume I have to dig into the oxalis code to figure it out. My question however was if the sending Peppol Access Point Identifier is in the XML file and if so, how to obtain it.