@Throws(IOException::class) fun encode(out: OutputStream) { val tmp: sun.security.util.DerOutputStream = sun.security.util.DerOutputStream() if (extensionValue == null) { extensionId = sun.security.x509.PKIXExtensions.PolicyConstraints_Id critical = false encodeThis() } super.encode(tmp) out.write(tmp.toByteArray()) }
Write the extension to the DerOutputStream .