public class CAService extends Object
Certificates generated by this service have empty passwords and protected by the keystore. For that reason a certificate managed by this service should never be published and used for internal digital signatures only
The service is implemented as a singleton to avoid concurrent access from different clients.
X509CertificateGenerator| Constructor and Description |
|---|
CAService() |
| Modifier and Type | Method and Description |
|---|---|
void |
createCertificate(String alias,
org.imixs.workflow.ItemCollection profile)
This method generates a new X509 signed certificate based on an optional
given profile ItemCollection.
|
boolean |
existsCertificate(String alias)
Test if a certificate chain for a given alias exists in the keyStore.
|
public boolean existsCertificate(String alias)
alias - public void createCertificate(String alias, org.imixs.workflow.ItemCollection profile) throws UnrecoverableKeyException, KeyStoreException, NoSuchAlgorithmException, NoSuchProviderException, InvalidKeyException, org.bouncycastle.operator.OperatorCreationException, CertificateException, SignatureException, IOException
The generated certificate will be signed with the root certificated referred by the SIGNATURE_ROOTCERT_ALIAS
alias - - the alias the new certificate will be stored into the
keystoreprofile - - optional itemCollection containing X509 attributesNoSuchProviderExceptionNoSuchAlgorithmExceptionKeyStoreExceptionUnrecoverableKeyExceptionSignatureExceptionCertificateExceptionorg.bouncycastle.operator.OperatorCreationExceptionInvalidKeyExceptionIOExceptionExceptionCopyright © 2016–2021 Imixs Software Solutions GmbH. All rights reserved.