public String toString(){
  StringBuilder sb=new StringBuilder();
  sb.append(super.toString());
  sb.append("KeyUsage [\n");
  if (isSet(0)) {
    sb.append("  DigitalSignature\n");
  }
  if (isSet(1)) {
    sb.append("  Non_repudiation\n");
  }
  if (isSet(2)) {
    sb.append("  Key_Encipherment\n");
  }
  if (isSet(3)) {
    sb.append("  Data_Encipherment\n");
  }
  if (isSet(4)) {
    sb.append("  Key_Agreement\n");
  }
  if (isSet(5)) {
    sb.append("  Key_CertSign\n");
  }
  if (isSet(6)) {
    sb.append("  Crl_Sign\n");
  }
  if (isSet(7)) {
    sb.append("  Encipher_Only\n");
  }
  if (isSet(8)) {
    sb.append("  Decipher_Only\n");
  }
  sb.append("]\n");
  return sb.toString();
}

public String toString ( ) { StringBuilder sb = new StringBuilder ( ) ; sb . append ( super . toString ( ) ) ; sb . append ( "KeyUsage [\n" ) ; if ( isSet ( 0 ) ) { sb . append ( "  DigitalSignature\n" ) ; } if ( isSet ( 1 ) ) { sb . append ( "  Non_repudiation\n" ) ; } if ( isSet ( 2 ) ) { sb . append ( "  Key_Encipherment\n" ) ; } if ( isSet ( 3 ) ) { sb . append ( "  Data_Encipherment\n" ) ; } if ( isSet ( 4 ) ) { sb . append ( "  Key_Agreement\n" ) ; } if ( isSet ( 5 ) ) { sb . append ( "  Key_CertSign\n" ) ; } if ( isSet ( 6 ) ) { sb . append ( "  Crl_Sign\n" ) ; } if ( isSet ( 7 ) ) { sb . append ( "  Encipher_Only\n" ) ; } if ( isSet ( 8 ) ) { sb . append ( "  Decipher_Only\n" ) ; } sb . append ( "]\n" ) ; return sb . toString ( ) ; }
returns a printable representation of the keyusage .
