Interface IAS4EndpointDetailProvider
- All Known Implementing Classes:
AS4EndpointDetailProviderBDXR,AS4EndpointDetailProviderBDXR2,AS4EndpointDetailProviderConstant,AS4EndpointDetailProviderPeppol
public interface IAS4EndpointDetailProvider
An abstraction for receiving the AP certificate and the destination URL of
the receiver. The default case is to use an SMP lookup for this.
- Since:
- 0.10.6
- Author:
- Philip Helger
-
Method Summary
Modifier and TypeMethodDescriptionvoidinit(com.helger.peppolid.IDocumentTypeIdentifier aDocTypeID, com.helger.peppolid.IProcessIdentifier aProcID, com.helger.peppolid.IParticipantIdentifier aReceiverID) The initialization method is always called, before the details are queried.
-
Method Details
-
init
void init(@Nonnull com.helger.peppolid.IDocumentTypeIdentifier aDocTypeID, @Nonnull com.helger.peppolid.IProcessIdentifier aProcID, @Nonnull com.helger.peppolid.IParticipantIdentifier aReceiverID) throws com.helger.phase4.util.Phase4Exception The initialization method is always called, before the details are queried. This method may be called multiple times, so you may cache internally.- Parameters:
aDocTypeID- document type ID. May not benull.aProcID- Process ID. May not benull.aReceiverID- Participant ID of the receiver. May not benull.- Throws:
com.helger.phase4.util.Phase4Exception- in case of error
-
getReceiverAPCertificate
- Returns:
- The X509 AP Certificate of the receiver. May be
nullif it could not be acquired. - Throws:
com.helger.phase4.util.Phase4Exception- In case of an error in determining the certificate.
-
getReceiverAPEndpointURL
- Returns:
- The AS4 endpoint URL of the receiver. May neither be
nullnor empty. - Throws:
com.helger.phase4.util.Phase4Exception- In case of an error in determining the endpoint URL.
-