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