@Override
public void importCAFromKeys(Admin admin, String caname, String keystorepass, Certificate[] signatureCertChain, PublicKey p12PublicSignatureKey,
PrivateKey p12PrivateSignatureKey, PrivateKey p12PrivateEncryptionKey, PublicKey p12PublicEncryptionKey) throws Exception,
CATokenAuthenticationFailedException, CATokenOfflineException, IllegalKeyStoreException, CreateException {
// Transform into token
SoftCATokenInfo sinfo = new SoftCATokenInfo();
CATokenContainer catoken = new CATokenContainerImpl(sinfo, CertTools.stringToBCDNString(
StringTools.strip(CertTools.getSubjectDN(signatureCertChain[0]))).hashCode());
catoken.importKeys(keystorepass, p12PrivateSignatureKey, p12PublicSignatureKey, p12PrivateEncryptionKey, p12PublicEncryptionKey, signatureCertChain);
log.debug("CA-Info: " + catoken.getCATokenInfo().getSignatureAlgorithm() + " " + catoken.getCATokenInfo().getEncryptionAlgorithm());
// Identify the key algorithms for extended CA services, OCSP, XKMS, CMS