com.fitbur.bouncycastle.cert.crmf.jcajce.JcaEncryptedValueBuilder Maven / Gradle / Ivy
package com.fitbur.bouncycastle.cert.crmf.jcajce;
import java.security.cert.CertificateEncodingException;
import java.security.cert.X509Certificate;
import com.fitbur.bouncycastle.asn1.crmf.EncryptedValue;
import com.fitbur.bouncycastle.cert.crmf.CRMFException;
import com.fitbur.bouncycastle.cert.crmf.EncryptedValueBuilder;
import com.fitbur.bouncycastle.cert.jcajce.JcaX509CertificateHolder;
import com.fitbur.bouncycastle.operator.KeyWrapper;
import com.fitbur.bouncycastle.operator.OutputEncryptor;
public class JcaEncryptedValueBuilder
extends EncryptedValueBuilder
{
public JcaEncryptedValueBuilder(KeyWrapper wrapper, OutputEncryptor encryptor)
{
super(wrapper, encryptor);
}
public EncryptedValue build(X509Certificate certificate)
throws CertificateEncodingException, CRMFException
{
return build(new JcaX509CertificateHolder(certificate));
}
}
© 2015 - 2024 Weber Informatics LLC | Privacy Policy