001/**
002 * Copyright 2015 Tampere University of Technology, Pori Department
003 * 
004 * Licensed under the Apache License, Version 2.0 (the "License");
005 * you may not use this file except in compliance with the License.
006 * You may obtain a copy of the License at
007 * 
008 *   http://www.apache.org/licenses/LICENSE-2.0
009 * 
010 * Unless required by applicable law or agreed to in writing, software
011 * distributed under the License is distributed on an "AS IS" BASIS,
012 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
013 * See the License for the specific language governing permissions and
014 * limitations under the License.
015 */
016package service.tut.pori.users.facebook;
017
018/**
019 * Definitions for users/facebook package.
020 *
021 */
022public final class Definitions {
023  
024  /* local methods */
025  /** local service method declaration */
026  public static final String METHOD_OAUTH2_AUTHORIZATION_REDIRECT = "authorize";
027  /** local service method declaration */
028  public static final String METHOD_OAUTH2_CALLBACK = "oAuth2callback";
029  /** local service method declaration */
030  public static final String METHOD_LOGIN = "login";
031  /** local service method declaration */
032  public static final String METHOD_UNAUTHORIZE = "unauthorize";
033  
034  /* remote methods */
035  /** remote service method declaration */
036  public static final String METHOD_FACEBOOK_ACCESS_TOKEN = "access_token";
037  /** remote service method declaration */
038  public static final String METHOD_FACEBOOK_AUTH = "oauth";
039  
040  /* parameters */
041  /** method parameter declaration */
042  public static final String PARAMETER_FACEBOOK_EXCHANGE_TOKEN = "fb_exchange_token";
043  /** method parameter declaration */
044  public static final String PARAMETER_FACEBOOK_HACK_REDIRECT_URI = "fb_redirect_uri";
045  /** method parameter declaration */
046  public static final String PARAMETER_OAUTH2_ACCESS_TOKEN = "access_token";
047  /** method parameter declaration */
048  public static final String PARAMETER_OAUTH2_AUTHORIZATION_CODE = "code";
049  /** method parameter declaration */
050  public static final String PARAMETER_OAUTH2_CLIENT_ID = "client_id";
051  /** method parameter declaration */
052  public static final String PARAMETER_OAUTH2_CLIENT_SECRET = "client_secret";
053  /** method parameter declaration */
054  public static final String PARAMETER_OAUTH2_GRANT_TYPE = "grant_type";
055  /** method parameter declaration */
056  public static final String PARAMETER_OAUTH2_ERROR_CODE = "error";
057  /** method parameter declaration */
058  public static final String PARAMETER_OAUTH2_REDIRECT_URI = "redirect_uri";
059  /** method parameter declaration */
060  public static final String PARAMETER_OAUTH2_RESPONSE_TYPE = "response_type";
061  /** method parameter declaration */
062  public static final String PARAMETER_OAUTH2_SCOPE = "scope";
063  /** method parameter declaration */
064  public static final String PARAMETER_OAUTH2_STATE = "state";
065  
066  /* services */
067  /** service name declaration */
068  public static final String SERVICE_USERS_FACEBOOK = "facebook";
069
070  /**
071   * 
072   */
073  private Definitions(){
074    // nothing needed
075  }
076}