Package org.bouncycastle.cert.jcajce
Class JcaX509CertificateConverter
java.lang.Object
org.bouncycastle.cert.jcajce.JcaX509CertificateConverter
Converter for producing X509Certificate objects tied to a specific provider from X509CertificateHolder objects.
-
Constructor Summary
ConstructorDescriptionBase constructor, configure with the default provider. -
Method Summary
Modifier and TypeMethodDescriptiongetCertificate
(X509CertificateHolder certHolder) Use the configured converter to produce a X509Certificate object from a X509CertificateHolder object.setProvider
(String providerName) Set the provider to use by name.setProvider
(Provider provider) Set the provider to use from a Provider object.
-
Constructor Details
-
JcaX509CertificateConverter
public JcaX509CertificateConverter()Base constructor, configure with the default provider.
-
-
Method Details
-
setProvider
Set the provider to use from a Provider object.- Parameters:
provider
- the provider to use.- Returns:
- the converter instance.
-
setProvider
Set the provider to use by name.- Parameters:
providerName
- name of the provider to use.- Returns:
- the converter instance.
-
getCertificate
Use the configured converter to produce a X509Certificate object from a X509CertificateHolder object.- Parameters:
certHolder
- the holder to be converted- Returns:
- a X509Certificate object
- Throws:
CertificateException
- if the conversion is unable to be made.
-