/**
  * Validates input parameters
  *
  * @param scope
  * @param clientIdAut
  * @param clientSecretAut
  * @return
  */
 private boolean validateClientCredentials(
     String scope, String clientIdAut, String clientSecretAut) {
   if (scope == null || clientIdAut == null || clientSecretAut == null) {
     oauthResponse.setStatus(false);
     oauthResponse.setStatusCode(-1);
     oauthResponse.setErrorResponse("Can not get access token, empty client credentials...");
     return false;
   }
   if (scope.length() == 0 || clientIdAut.length() == 0 || clientSecretAut.length() == 0) {
     oauthResponse.setStatus(false);
     oauthResponse.setStatusCode(-1);
     oauthResponse.setErrorResponse("Can not get access token, empty client credentials...");
     return false;
   }
   return true;
 }
 /**
  * Set error response variables in session
  *
  * @param statusCode
  * @param ex
  */
 private void setErrorResponse(int statusCode, String msg) {
   oauthResponse.setStatusCode(statusCode);
   oauthResponse.setStatus(false);
   oauthResponse.setErrorResponse(msg);
 }