Package com.helger.as2lib.cert
Class PredefinedCertificateFactory
java.lang.Object
com.helger.as2lib.AbstractDynamicComponent
com.helger.as2lib.cert.AbstractCertificateFactory
com.helger.as2lib.cert.PredefinedCertificateFactory
- All Implemented Interfaces:
IAliasedCertificateFactory
,ICertificateFactory
,IKeyStoreCertificateFactory
,IDynamicComponent
An example implementation of a Certificate factory that uses an external
KeyStore
. Nevertheless the password to load the key store must be set
via AbstractCertificateFactory.setPassword(String)
.- Since:
- 4.6.4
- Author:
- Philip Helger
-
Field Summary
Fields inherited from class com.helger.as2lib.cert.AbstractCertificateFactory
ATTR_PASSWORD, ATTR_TYPE, DEFAULT_KEY_STORE_TYPE
Fields inherited from class com.helger.as2lib.AbstractDynamicComponent
m_aRWLock
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfinal KeyStore
void
Reload the key store from the configured source.Methods inherited from class com.helger.as2lib.cert.AbstractCertificateFactory
addCertificate, addPrivateKey, clearCertificates, createNewKeyStore, debugLog, equals, getAlias, getCertificate, getCertificate, getCertificates, getKeyStore, getKeyStoreType, getPassword, getPrivateKey, getUnifiedAlias, hashCode, initDynamicComponent, initEmptyKeyStore, internalGetCertificate, isDebugLogEnabled, load, onChange, removeCertificate, removeCertificate, save, setDebugLogEnaled, setKeyStore, setKeyStoreType, setKeyStoreType, setPassword
Methods inherited from class com.helger.as2lib.AbstractDynamicComponent
attrs, getAttributeAsIntRequired, getAttributeAsStringRequired, getName, getSession, toString
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
Methods inherited from interface com.helger.as2lib.cert.ICertificateFactory
getCertificateOrNull
Methods inherited from interface com.helger.as2lib.IDynamicComponent
attrs, getName, getSession
-
Constructor Details
-
PredefinedCertificateFactory
-
-
Method Details
-
getKeyStoreFromCtor
-
reinitKeyStore
Description copied from interface:IKeyStoreCertificateFactory
Reload the key store from the configured source.- Throws:
AS2Exception
- in case of error
-