Class AS4EndpointDetailProviderConstant

java.lang.Object
com.helger.phase4.dynamicdiscovery.AS4EndpointDetailProviderConstant
All Implemented Interfaces:
IAS4EndpointDetailProvider

public class AS4EndpointDetailProviderConstant extends Object implements IAS4EndpointDetailProvider
Implementation of IAS4EndpointDetailProvider that uses constant values.
Since:
0.10.6
Author:
Philip Helger
  • Constructor Details

  • Method Details

    • init

      public void init(@Nonnull com.helger.peppolid.IDocumentTypeIdentifier aDocTypeID, @Nonnull com.helger.peppolid.IProcessIdentifier aProcID, @Nonnull com.helger.peppolid.IParticipantIdentifier aReceiverID)
      Description copied from interface: IAS4EndpointDetailProvider
      The initialization method is always called, before the details are queried. This method may be called multiple times, so you may cache internally.
      Specified by:
      init in interface IAS4EndpointDetailProvider
      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.
    • getReceiverAPCertificate

      @Nullable public X509Certificate getReceiverAPCertificate()
      Specified by:
      getReceiverAPCertificate in interface IAS4EndpointDetailProvider
      Returns:
      The X509 AP Certificate of the receiver. May be null if it could not be acquired.
    • getReceiverAPEndpointURL

      @Nonnull @Nonempty public String getReceiverAPEndpointURL()
      Specified by:
      getReceiverAPEndpointURL in interface IAS4EndpointDetailProvider
      Returns:
      The AS4 endpoint URL of the receiver. May neither be null nor empty.