public static boolean isOAuth2FragmentErrorType(Set<String> requestedResponseTypes){
  if (requestedResponseTypes == null) {
    return false;
  }
  return requestedResponseTypes.size() == 1 && requestedResponseTypes.contains(TOKEN);
}

public static boolean isOAuth2FragmentErrorType ( Set < String > requestedResponseTypes ) { if ( requestedResponseTypes == null ) { return false ; } return requestedResponseTypes . size ( ) == 1 && requestedResponseTypes . contains ( TOKEN ) ; }
when using the oauth2 implicit grant the response_type value is " token " .
