private Map < String , String > populateCommonAuthzHeaderParams ( ) { Map < String , String > parameters = new HashMap < String , String > ( ) ; parameters . put ( TwitterConstants . PARAM_OAUTH_CONSUMER_KEY , consumerKey ) ; parameters . put ( TwitterConstants . PARAM_OAUTH_NONCE , Utils . generateNonce ( ) ) ; parameters . put ( TwitterConstants . PARAM_OAUTH_SIGNATURE_METHOD , DEFAULT_SIGNATURE_ALGORITHM ) ; parameters . put ( TwitterConstants . PARAM_OAUTH_TIMESTAMP , Utils . getCurrentTimestamp ( ) ) ; parameters . put ( TwitterConstants . PARAM_OAUTH_VERSION , DEFAULT_OAUTH_VERSION ) ; return parameters ; }
Creates a map of parameters and values that are common to all requests that require an Authorization header .