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 Type
    Method
    Description
     
     
    void
    init(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 be null.
      aProcID - Process ID. May not be null.
      aReceiverID - Participant ID of the receiver. May not be null.
      Throws:
      com.helger.phase4.util.Phase4Exception - in case of error
    • getReceiverAPCertificate

      @Nullable X509Certificate getReceiverAPCertificate() throws com.helger.phase4.util.Phase4Exception
      Returns:
      The X509 AP Certificate of the receiver. May be null if it could not be acquired.
      Throws:
      com.helger.phase4.util.Phase4Exception - In case of an error in determining the certificate.
    • getReceiverAPEndpointURL

      @Nonnull @Nonempty String getReceiverAPEndpointURL() throws com.helger.phase4.util.Phase4Exception
      Returns:
      The AS4 endpoint URL of the receiver. May neither be null nor empty.
      Throws:
      com.helger.phase4.util.Phase4Exception - In case of an error in determining the endpoint URL.