public interface CertificateContainerIfc
Modifier and Type | Field and Description |
---|---|
static String |
CERTIFICATE_CONTAINER_CLASS_KEY |
static String |
CERTIFICATE_CONTAINER_CLASS_VAL |
Modifier and Type | Method and Description |
---|---|
void |
addCertificates(Map<String,String> params)
Method
addCertificates allows to add more certificates at run time after the container has bee
already initialized. |
KeyManager[] |
createCertificate(String domain)
Method
createCertificate allows to generate self-signed certificate for passed domain name.s |
CertificateEntry |
getCertificateEntry(String hostname) |
String |
getDefCertAlias()
Method to retrieve default alias of certificate to use when domain is
null |
KeyManager[] |
getKeyManagers(String domain)
Method returns array of
KeyManager with certificate for domain or null if there is no
certificate for domain |
TrustManager[] |
getTrustManagers() |
KeyStore |
getTrustStore() |
void |
init(Map<String,Object> params)
Method used to pass parameters to initialize instance of class
|
static final String CERTIFICATE_CONTAINER_CLASS_KEY
static final String CERTIFICATE_CONTAINER_CLASS_VAL
void addCertificates(Map<String,String> params) throws CertificateParsingException
addCertificates
allows to add more certificates at run time after the container has bee
already initialized. This is to avoid server restart if there are certificates updates or new certificates for
new virtual domain. The method should add new certificates or replace existing one if there is already a
certificate for a domain.params
- a Map
value with configuration parameters.CertificateParsingException
KeyManager[] createCertificate(String domain) throws NoSuchAlgorithmException, CertificateException, SignatureException, NoSuchProviderException, InvalidKeyException, IOException, UnrecoverableKeyException, KeyStoreException
createCertificate
allows to generate self-signed certificate for passed domain name.sdomain
- domain for which certificate should be generatedKeyManager
containing generated certificateNoSuchAlgorithmException
CertificateException
SignatureException
NoSuchProviderException
InvalidKeyException
IOException
UnrecoverableKeyException
KeyStoreException
String getDefCertAlias()
null
CertificateEntry getCertificateEntry(String hostname)
KeyManager[] getKeyManagers(String domain)
KeyManager
with certificate for domain or null
if there is no
certificate for domainTrustManager[] getTrustManagers()
KeyStore getTrustStore()
Copyright © 2004–2020 "Tigase, Inc.". All rights reserved.