public static byte[] createSignatureAlgorithmsExtension(Vector supportedSignatureAlgorithms) throws IOException {
  ByteArrayOutputStream buf=new ByteArrayOutputStream();
  encodeSupportedSignatureAlgorithms(supportedSignatureAlgorithms,false,buf);
  return buf.toByteArray();
}

public static byte [ ] createSignatureAlgorithmsExtension ( Vector supportedSignatureAlgorithms ) throws IOException { ByteArrayOutputStream buf = new ByteArrayOutputStream ( ) ; encodeSupportedSignatureAlgorithms ( supportedSignatureAlgorithms , false , buf ) ; return buf . toByteArray ( ) ; }
create a ' signature_algorithms ' extension value .
