public abstract class AbstractCertificateFactory extends AbstractDynamicComponent implements ICertificateFactory
ICertificateFactory.m_aRWLock| Constructor and Description |
|---|
AbstractCertificateFactory() |
| Modifier and Type | Method and Description |
|---|---|
abstract String |
getAlias(Partnership aPartnership,
ECertificatePartnershipType ePartnershipType) |
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
|
protected abstract X509Certificate |
internalGetCertificate(String sAlias,
ECertificatePartnershipType ePartnershipType) |
attrs, equals, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSession, hashCode, initDynamicComponent, toStringclone, finalize, getClass, notify, notifyAll, wait, wait, waitgetPrivateKey, getPrivateKeyattrs, getName, getSession, initDynamicComponent@Nonnull public abstract String getAlias(@Nonnull Partnership aPartnership, @Nonnull ECertificatePartnershipType ePartnershipType) throws OpenAS2Exception
OpenAS2Exception@Nonnull protected abstract X509Certificate internalGetCertificate(@Nullable String sAlias, @Nullable ECertificatePartnershipType ePartnershipType) throws OpenAS2Exception
OpenAS2Exception@Nonnull public X509Certificate getCertificate(@Nonnull IMessage aMsg, @Nonnull ECertificatePartnershipType ePartnershipType) throws OpenAS2Exception
ICertificateFactorygetCertificate in interface ICertificateFactoryaMsg - 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 public X509Certificate getCertificateOrNull(@Nonnull IMessage aMsg, @Nonnull ECertificatePartnershipType ePartnershipType) throws OpenAS2Exception
ICertificateFactorygetCertificateOrNull in interface ICertificateFactoryaMsg - 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 public X509Certificate getCertificate(@Nonnull IMessageMDN aMDN, @Nonnull ECertificatePartnershipType ePartnershipType) throws OpenAS2Exception
ICertificateFactorygetCertificate in interface ICertificateFactoryaMDN - 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 public X509Certificate getCertificateOrNull(@Nonnull IMessageMDN aMDN, @Nonnull ECertificatePartnershipType ePartnershipType) throws OpenAS2Exception
ICertificateFactorygetCertificateOrNull in interface ICertificateFactoryaMDN - 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 errorCopyright © 2013–2019 Philip Helger. All rights reserved.