public class CAHandler extends Object
| Constructor and Description |
|---|
CAHandler(CertificateBuilder certificateBuilder,
PKIConfiguration pkiConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
void |
createSubCa(String subCaCertDN)
Creates a sub Certificate Authority for the MC PKI.
|
void |
generateRootCRL(String outputCaCrlPath,
String revocationFile)
Generates a CRL for the root CA.
|
void |
initRootCA(String rootCertX500Name,
String crlUrl)
Generates a self-signed certificate and saves it in the keystore and truststore.
|
List<RevocationInfo> |
loadRevocationFile(String revocationFile)
Loads a CSV file with information about revoked certificates into a RevocationInfo list.
|
public CAHandler(CertificateBuilder certificateBuilder, PKIConfiguration pkiConfiguration)
public void createSubCa(String subCaCertDN)
subCaCertDN - The DN of the new sub CA certificate.public void initRootCA(String rootCertX500Name, String crlUrl)
rootCertX500Name - The DN of the new root CA CertificatecrlUrl - CRL endpointpublic List<RevocationInfo> loadRevocationFile(String revocationFile)
revocationFile - Path to the file that should be loaded.public void generateRootCRL(String outputCaCrlPath, String revocationFile)
outputCaCrlPath - Output path where to place the CRL.revocationFile - Path to the CSV file which contains revocation info.Copyright © 2012–2019 Danish Maritime Authority. All rights reserved.