Class: Java::OrgBouncycastleCert::X509CertificateHolder
- Inherits:
-
Object
- Object
- Java::OrgBouncycastleCert::X509CertificateHolder
- Defined in:
- lib/pkernel_jce/utils.rb
Overview
bouncycastle has those annoying intermediary object which translation is PITA
Instance Method Summary collapse
Instance Method Details
#subject_to_x500 ⇒ Object
40 41 42 |
# File 'lib/pkernel_jce/utils.rb', line 40 def subject_to_x500 org.bouncycastle.asn1.x500.X500Name.getInstance(self.subject.encoded) end |
#to_java_cert ⇒ Object
36 37 38 |
# File 'lib/pkernel_jce/utils.rb', line 36 def to_java_cert org.bouncycastle.cert.jcajce.JcaX509CertificateConverter.new.setProvider(PkernelJce::Provider::DefProvider).getCertificate(self) end |