public void encode ( DerOutputStream out ) throws IOException { DerOutputStream tmp = new DerOutputStream ( ) ; policyIdentifier . encode ( tmp ) ; if ( ! policyQualifiers . isEmpty ( ) ) { DerOutputStream tmp2 = new DerOutputStream ( ) ; for ( PolicyQualifierInfo pq : policyQualifiers ) { tmp2 . write ( pq . getEncoded ( ) ) ; } tmp . write ( DerValue . tag_Sequence , tmp2 ) ; } out . write ( DerValue . tag_Sequence , tmp ) ; }
Write the PolicyInformation to the DerOutputStream .