Package com.helger.as2lib.cert
Interface IAliasedCertificateFactory
-
- All Superinterfaces:
ICertificateFactory
,IDynamicComponent
- All Known Implementing Classes:
AbstractCertificateFactory
,CertificateFactory
,PredefinedCertificateFactory
public interface IAliasedCertificateFactory extends ICertificateFactory
Certificate factory with support for alias handling- Author:
- unknown
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description void
addCertificate(String sAlias, X509Certificate aCert, boolean bOverwrite)
void
addPrivateKey(String sAlias, Key aKey, String sPassword)
void
clearCertificates()
X509Certificate
getCertificate(String sAlias)
com.helger.commons.collection.impl.ICommonsOrderedMap<String,X509Certificate>
getCertificates()
void
removeCertificate(String sAlias)
void
removeCertificate(X509Certificate aCert)
-
Methods inherited from interface com.helger.as2lib.cert.ICertificateFactory
getCertificate, getCertificateOrNull, getPrivateKey
-
Methods inherited from interface com.helger.as2lib.IDynamicComponent
attrs, getName, getSession, initDynamicComponent
-
-
-
-
Method Detail
-
getCertificate
X509Certificate getCertificate(String sAlias) throws AS2Exception
- Throws:
AS2Exception
-
getCertificates
com.helger.commons.collection.impl.ICommonsOrderedMap<String,X509Certificate> getCertificates() throws AS2Exception
- Throws:
AS2Exception
-
addCertificate
void addCertificate(@Nonnull @Nonempty String sAlias, @Nonnull X509Certificate aCert, boolean bOverwrite) throws AS2Exception
- Throws:
AS2Exception
-
addPrivateKey
void addPrivateKey(@Nonnull @Nonempty String sAlias, @Nonnull Key aKey, @Nonnull String sPassword) throws AS2Exception
- Throws:
AS2Exception
-
clearCertificates
void clearCertificates() throws AS2Exception
- Throws:
AS2Exception
-
removeCertificate
void removeCertificate(@Nonnull X509Certificate aCert) throws AS2Exception
- Throws:
AS2Exception
-
removeCertificate
void removeCertificate(String sAlias) throws AS2Exception
- Throws:
AS2Exception
-
-