Class JcaC509CertificateConverter
- java.lang.Object
-
- org.bouncycastle.cert.c509.jcajce.JcaC509CertificateConverter
-
public class JcaC509CertificateConverter extends java.lang.ObjectConverter for producing a JCAX509Certificatefrom 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
Constructors Constructor Description JcaC509CertificateConverter()Base constructor - the default JCA provider will be used to produce the certificate factory.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.security.cert.X509CertificategetCertificate(C509CertificateHolder certificateHolder)Return the JCA certificate for the X.509 certificate a type 3 holder stands for.JcaC509CertificateConvertersetProvider(java.lang.String providerName)Set the name of the provider to use.JcaC509CertificateConvertersetProvider(java.security.Provider provider)Set the provider to use.
-
-
-
Method Detail
-
setProvider
public JcaC509CertificateConverter setProvider(java.security.Provider provider)
Set the provider to use.
-
setProvider
public JcaC509CertificateConverter setProvider(java.lang.String providerName)
Set the name of the provider to use.
-
getCertificate
public java.security.cert.X509Certificate getCertificate(C509CertificateHolder certificateHolder) throws java.security.cert.CertificateException
Return the JCA certificate for the X.509 certificate a type 3 holder stands for.- Throws:
java.lang.IllegalStateException- if the holder wraps a natively signed certificate.java.security.cert.CertificateException
-
-