
org.testifyproject.bouncycastle.cert.crmf.jcajce.JcaEncryptedValueBuilder Maven / Gradle / Ivy
package org.testifyproject.bouncycastle.cert.crmf.jcajce;
import java.security.cert.CertificateEncodingException;
import java.security.cert.X509Certificate;
import org.testifyproject.bouncycastle.asn1.crmf.EncryptedValue;
import org.testifyproject.bouncycastle.cert.crmf.CRMFException;
import org.testifyproject.bouncycastle.cert.crmf.EncryptedValueBuilder;
import org.testifyproject.bouncycastle.cert.jcajce.JcaX509CertificateHolder;
import org.testifyproject.bouncycastle.operator.KeyWrapper;
import org.testifyproject.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 - 2025 Weber Informatics LLC | Privacy Policy