public interface IAS2Session
IDynamicComponent,
ICertificateFactory,
IPartnershipFactory,
IMessageProcessor| Modifier and Type | Method and Description |
|---|---|
void |
addComponent(String sComponentID,
IDynamicComponent aComponent)
Registers a component to a specified ID.
|
com.helger.commons.collection.impl.ICommonsMap<String,IDynamicComponent> |
getAllComponents()
Return a map of component ID's to
Component objects. |
String |
getAS2VersionID() |
ICertificateFactory |
getCertificateFactory()
Short-cut method to retrieve a certificate factory.
|
IDynamicComponent |
getComponent(String sComponentID)
Gets the
Component currently registered with an ID |
Proxy |
getHttpProxy()
Get the optional HTTP/HTTPS proxy settings to be used for sending AS2
messages and asynchronous MDNs.
|
IMessageProcessor |
getMessageProcessor()
Short-cut method to retrieve a processor.
|
IPartnershipFactory |
getPartnershipFactory()
Short-cut method to retrieve a partner factory.
|
boolean |
isCryptoSignIncludeCertificateInBodyPart() |
boolean |
isCryptoVerifyUseCertificateInBodyPart() |
void |
setAS2VersionID(String sAS2Version) |
void |
setCryptoSignIncludeCertificateInBodyPart(boolean bCryptoSignIncludeCertificateInBodyPart)
Settings flag, whether a the signing certificate should be included in the
signed MIME body part or not.
|
void |
setCryptoVerifyUseCertificateInBodyPart(boolean bCryptoVerifyUseCertificateInBodyPart)
Settings flag, whether a contained certificate is used for message
verification.
|
void |
setHttpProxy(Proxy aHttpProxy)
Set the optional HTTP/HTTPS proxy settings to be used for sending AS2
messages and asynchronous MDNs.
|
void addComponent(@Nonnull @Nonempty String sComponentID, @Nonnull IDynamicComponent aComponent) throws AS2ComponentDuplicateException
sComponentID - registers the component to this IDaComponent - component to registerAS2ComponentDuplicateException - In case a component with the same ID is already presentIDynamicComponent@Nonnull IDynamicComponent getComponent(@Nonnull @Nonempty String sComponentID) throws AS2ComponentNotFoundException
Component currently registered with an IDsComponentID - ID to search fornull.AS2ComponentNotFoundException - If a component is not registered with the ID@Nonnull @ReturnsMutableCopy com.helger.commons.collection.impl.ICommonsMap<String,IDynamicComponent> getAllComponents()
Component objects.@Nonnull ICertificateFactory getCertificateFactory() throws AS2ComponentNotFoundException
CertificateFactory componentAS2ComponentNotFoundException - If a CertificateFactory component has not been
registeredICertificateFactory,
IDynamicComponent@Nonnull IPartnershipFactory getPartnershipFactory() throws AS2ComponentNotFoundException
PartnerFactory componentAS2ComponentNotFoundException - If a PartnerFactory component has not been registeredIPartnershipFactory,
IDynamicComponent@Nonnull IMessageProcessor getMessageProcessor() throws AS2ComponentNotFoundException
Processor componentAS2ComponentNotFoundException - If a Processor component has not been registeredIMessageProcessor,
IDynamicComponentboolean isCryptoSignIncludeCertificateInBodyPart()
true if the certificate used for signing a message
should be included in the signed MIME body part or not. Defaults to
true.setCryptoSignIncludeCertificateInBodyPart(boolean)void setCryptoSignIncludeCertificateInBodyPart(boolean bCryptoSignIncludeCertificateInBodyPart)
bCryptoSignIncludeCertificateInBodyPart - true to include the signing certificate in the signed
MIME body part, false to not do so.isCryptoSignIncludeCertificateInBodyPart()boolean isCryptoVerifyUseCertificateInBodyPart()
true if any certificate passed in a message body is
used for certificate verification or false if only the
certificate present in the partnership factory is to be used.
Defaults to true.setCryptoVerifyUseCertificateInBodyPart(boolean)void setCryptoVerifyUseCertificateInBodyPart(boolean bCryptoVerifyUseCertificateInBodyPart)
bCryptoVerifyUseCertificateInBodyPart - true if any certificate passed in a message body is
used for certificate verification or false if only the
certificate present in the partnership factory is to be used.isCryptoVerifyUseCertificateInBodyPart()@Nullable Proxy getHttpProxy()
null.setHttpProxy(Proxy)void setHttpProxy(@Nullable Proxy aHttpProxy)
aHttpProxy - The HTTP/HTTPS proxy object to be used. May be null.getHttpProxy()@Nonnull @Nonempty String getAS2VersionID()
CAS2Header.DEFAULT_AS2_VERSION.
Neither null nor empty.Copyright © 2013–2022 Philip Helger. All rights reserved.