private String signAndCreateAuthzHeader(String endpointUrl, Map<String, String> parameters) {

        String signature = computeSignature(requestMethod, endpointUrl, parameters);
        parameters.put(TwitterConstants.PARAM_OAUTH_SIGNATURE, signature);

        String authzHeaderString = createAuthorizationHeaderString(parameters);
        return authzHeaderString;
    }
private String signAndCreateAuthzHeader ( String endpointUrl , Map < String , String > parameters ) { String signature = computeSignature ( requestMethod , endpointUrl , parameters ) ; parameters . put ( TwitterConstants . PARAM_OAUTH_SIGNATURE , signature ) ; String authzHeaderString = createAuthorizationHeaderString ( parameters ) ; return authzHeaderString ; }
Generates the Authorization header with all the requisite content for the specified endpoint request by computing the
signature, adding it to the parameters, and generating the Authorization header string.

@param endpointUrl
@param parameters
@return