Add SPF4Peppol support for sender authorization policies#427
Open
stevenn wants to merge 2 commits into
Open
Conversation
Owner
|
Thx Steven - good starting point. However, we need to do a little refinement on the original repo first. So please have a little patience on this PR :) |
753898e to
7f07f49
Compare
Author
|
Hey @phax I amended the PR with the suggested endpoint structure. At your leisure! |
Implement SPF4Peppol (Sender Policy Framework for Peppol) to allow
participants to declare which Access Points are authorized to send
documents on their behalf.
New features:
- Domain model: ESPF4PeppolQualifier, ESPF4PeppolMechanism, SPF4PeppolTerm,
ISMPSPF4PeppolPolicy, SMPSPF4PeppolPolicy, ISMPSPF4PeppolPolicyManager
- XML backend: SMPSPF4PeppolPolicyManagerXML for file-based storage
- REST API: GET /ext/spf/{participantId} endpoint
The implementation follows the SPF4Peppol specification v1.0 and uses
the namespace urn:peppol:spf4peppol:1.0 for XML responses.
7f07f49 to
30c8fc6
Compare
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
GET /security/{participantId}/spfDetails
New classes in
com.helger.phoss.smp.domain.spf:ESPF4PeppolQualifier- Enum: pass, fail, softfail, neutralESPF4PeppolMechanism- Enum: seatid, certfp, smp, reference, allSPF4PeppolTerm- Single policy termISMPSPF4PeppolPolicy/SMPSPF4PeppolPolicy- Policy interface and implementationISMPSPF4PeppolPolicyManager- Manager interfaceSMPSPF4PeppolPolicyMicroTypeConverter- XML serializationXML Backend:
SMPSPF4PeppolPolicyManagerXML- File-based storageREST API:
APIExecutorSPF4PeppolGet- Returns XML per SPF4Peppol 1.0 specExample Response
Test plan
mvn clean install -DskipTests)