public boolean getBoolean ( ) throws IOException { if ( tag != tag_Boolean ) { throw new IOException ( "DerValue.getBoolean, not a BOOLEAN " + tag ) ; } if ( length != 1 ) { throw new IOException ( "DerValue.getBoolean, invalid length " + length ) ; } if ( buffer . read ( ) != 0 ) { return true ; } return false ; }
Returns an ASN . 1 BOOLEAN