public static TBSCertificateStructure getTBSCertificateStructure ( X509Certificate cert ) throws CertificateEncodingException , IOException { ASN1Primitive obj = toASN1Primitive ( cert . getTBSCertificate ( ) ) ; return TBSCertificateStructure . getInstance ( obj ) ; }
Extracts the TBS certificate from the given certificate .