question: public static Map < String , String > convertOAuthResponse ( String responseOauthRequest ) { Map < String , String > responseElements = new HashMap < > ( ) ; String [ ] elements = responseOauthRequest . split ( "&" ) ; for ( String element : elements ) { String [ ] keyValue = element . split ( "=" ) ; responseElements . put ( keyValue [ 0 ] , keyValue [ 1 ] ) ; } return responseElements ; }
target:  Flickr returns response like : oauth_callback_confirmed=true&oauth_token=72157670587824772-23f323e2bbf56f24&oauth_token_secret=b783aaac0d6b54c2 It's not JSON so we split it to get a map with key/value.