public static X509CertificateHolder getX509CertificateHolder ( TBSCertificate tbsCert , byte [ ] signature ) { ASN1EncodableVector v = new ASN1EncodableVector ( ) ; v . add ( tbsCert ) ; v . add ( tbsCert . getSignature ( ) ) ; v . add ( new DERBitString ( signature ) ) ; return new X509CertificateHolder ( Certificate . getInstance ( new DERSequence ( v ) ) ) ; }
Build the structure of an X . 509 certificate .