public static String packCipherSuites(String[] ciphers){
  String cipherSet=null;
  if (ciphers != null) {
    StringBuffer buf=new StringBuffer();
    for (int i=0; i < ciphers.length; i++) {
      buf.append(ciphers[i]);
      if (i < ciphers.length - 1) {
        buf.append(',');
      }
    }
    cipherSet=buf.toString();
  }
  return cipherSet;
}

public static String packCipherSuites ( String [ ] ciphers ) { String cipherSet = null ; if ( ciphers != null ) { StringBuffer buf = new StringBuffer ( ) ; for ( int i = 0 ; i < ciphers . length ; i ++ ) { buf . append ( ciphers [ i ] ) ; if ( i < ciphers . length - 1 ) { buf . append ( ',' ) ; } } cipherSet = buf . toString ( ) ; } return cipherSet ; }
converts an array of ciphers into a single string .
