private String buildAuthHeaderString(String httpsURL,String requestMethod,OAuthParameters params){
  generateAndSignSignature(httpsURL,requestMethod,params);
  StringBuffer buffer=new StringBuffer();
  buffer.append(OAUTH_START_STRING);
  Map<String,SortedSet<String>> paramMap=params.getBaseParameters();
  buffer=parseParameters(buffer,paramMap);
  this.authHeader=buffer.toString();
  return buffer.toString();
}

private String buildAuthHeaderString ( String httpsURL , String requestMethod , OAuthParameters params ) { generateAndSignSignature ( httpsURL , requestMethod , params ) ; StringBuffer buffer = new StringBuffer ( ) ; buffer . append ( OAUTH_START_STRING ) ; Map < String , SortedSet < String > > paramMap = params . getBaseParameters ( ) ; buffer = parseParameters ( buffer , paramMap ) ; this . authHeader = buffer . toString ( ) ; return buffer . toString ( ) ; }
takes a oauthparameters object and returns a formatted string for appending to a url
