Code example for X509Certificate

Methods: getEncoded

0
import org.bouncycastle.jcajce.ProviderJcaJceHelper; 
import org.bouncycastle.operator.ContentVerifier; 
import org.bouncycastle.operator.ContentVerifierProvider; 
import org.bouncycastle.operator.OperatorCreationException; 
import org.bouncycastle.operator.OperatorStreamException; 
import org.bouncycastle.operator.RawContentVerifier; 
import org.bouncycastle.operator.RuntimeOperatorException; 
 
public class JcaContentVerifierProviderBuilder 
{ 
    private OperatorHelper helper = new OperatorHelper(new DefaultJcaJceHelper());
 
    public JcaContentVerifierProviderBuilder() 
    { 
    } 
 
    public JcaContentVerifierProviderBuilder setProvider(Provider provider)
    { 
        this.helper = new OperatorHelper(new ProviderJcaJceHelper(provider));
 
        return this;