Class JcaC509CertificateConverter
java.lang.Object
org.bouncycastle.cert.c509.jcajce.JcaC509CertificateConverter
Converter for producing a JCA
X509Certificate from the X.509 view of a CBOR
re-encoded (type 3) C509 certificate, mirroring the X.509 holder converter. A
natively signed certificate has no X.509 form and cannot be converted.-
Constructor Summary
ConstructorsConstructorDescriptionBase constructor - the default JCA provider will be used to produce the certificate factory. -
Method Summary
Modifier and TypeMethodDescriptiongetCertificate(C509CertificateHolder certificateHolder) Return the JCA certificate for the X.509 certificate a type 3 holder stands for.setProvider(String providerName) Set the name of the provider to use.setProvider(Provider provider) Set the provider to use.
-
Constructor Details
-
JcaC509CertificateConverter
public JcaC509CertificateConverter()Base constructor - the default JCA provider will be used to produce the certificate factory.
-
-
Method Details
-
setProvider
Set the provider to use. -
setProvider
Set the name of the provider to use. -
getCertificate
public X509Certificate getCertificate(C509CertificateHolder certificateHolder) throws CertificateException Return the JCA certificate for the X.509 certificate a type 3 holder stands for.- Throws:
IllegalStateException- if the holder wraps a natively signed certificate.CertificateException
-