public class KeystoreHandler extends Object
| Constructor and Description |
|---|
KeystoreHandler(PKIConfiguration pkiConfiguration) |
| Modifier and Type | Method and Description |
|---|---|
Certificate |
getMCCertificate(String alias)
Returns a MCP certificate from the truststore
|
PublicKey |
getPubKey(String alias)
Returns the public key of the sub CA certificate with the given alias
|
PublicKey |
getRootPubKey()
Returns the public key of the root certificate
|
KeyStore.PrivateKeyEntry |
getSigningCertEntry(String alias)
Loads the MCP certificate used for signing from the (jks) keystore
|
KeyStore |
getTrustStore()
Returns the truststore defined in PKIConfiguration.
|
public KeystoreHandler(PKIConfiguration pkiConfiguration)
public KeyStore.PrivateKeyEntry getSigningCertEntry(String alias)
alias - Alias of the signing certificatepublic Certificate getMCCertificate(String alias)
alias - Either ROOT_CERT_ALIAS or INTERMEDIATE_CERT_ALIASpublic KeyStore getTrustStore()
public PublicKey getRootPubKey()
Copyright © 2012–2019 Danish Maritime Authority. All rights reserved.