public interface ICertificateFactory extends IDynamicComponent
| Modifier and Type | Method and Description |
|---|---|
X509Certificate |
getCertificate(IBaseMessage aMsg,
ECertificatePartnershipType ePartnershipType)
Get the certificate of the specified type for the partnership defined in
the provided message
|
default X509Certificate |
getCertificateOrNull(IBaseMessage aMsg,
ECertificatePartnershipType ePartnershipType)
Get the certificate of the specified type for the partnership defined in
the provided message
|
PrivateKey |
getPrivateKey(X509Certificate aCert) |
attrs, getName, getSession, initDynamicComponent@Nonnull X509Certificate getCertificate(@Nonnull IBaseMessage aMsg, @Nonnull ECertificatePartnershipType ePartnershipType) throws AS2Exception
aMsg - Message to get the partnership from. May not be null.ePartnershipType - Sender or receiver?null-AS2Exception - In case of errorAS2CertificateNotFoundException - If no certificate is present@Nullable default X509Certificate getCertificateOrNull(@Nonnull IBaseMessage aMsg, @Nonnull ECertificatePartnershipType ePartnershipType) throws AS2Exception
aMsg - Message to get the partnership from. May not be null.ePartnershipType - Sender or receiver?null if no such alias or certificate exists.AS2Exception - In case of error@Nonnull PrivateKey getPrivateKey(@Nullable X509Certificate aCert) throws AS2Exception
AS2ExceptionCopyright © 2013–2022 Philip Helger. All rights reserved.