protected String findValidHeaderValue ( Set < CharSequence > paramValues ) { String selectedValue = null ; if ( paramValues != null && ! paramValues . isEmpty ( ) ) { CharSequence value = paramValues . iterator ( ) . next ( ) ; if ( ! ( value instanceof QueryParameterValue ) ) { selectedValue = value . toString ( ) ; } } return selectedValue ; }
Finds a valid header value that is valid for the OAuth header .