net.smartam.leeloo
Class Utils

java.lang.Object
  extended by net.smartam.leeloo.Utils

public final class Utils
extends Object

Author:
Maciej Machulak, Lukasz Moren

Field Summary
static String DISCOVERY_URI
           
static String FACEBOOK
           
static String FACEBOOK_AUTHZ
           
static String FACEBOOK_TOKEN
           
static String GITHUB
           
static String GITHUB_AUTHZ
           
static String GITHUB_TOKEN
           
static String GOWALLA
           
static String GOWALLA_AUTHZ
           
static String GOWALLA_TOKEN
           
static String REDIRECT_URI
           
static String REG_TYPE_PULL
           
static String REG_TYPE_PUSH
           
static String SMART_GALLERY
           
static String SMART_GALLERY_AUTHZ
           
static String SMART_GALLERY_REGISTER
           
static String SMART_GALLERY_TOKEN
           
 
Method Summary
static String findCookieValue(javax.servlet.http.HttpServletRequest request, String key)
           
static boolean isEmpty(String value)
           
static String isIssued(String value)
           
static void validateAuthorizationParams(OAuthParams oauthParams)
           
static void validateRegistrationParams(OAuthRegParams oauthParams)
           
static void validateTokenParams(OAuthParams oauthParams)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

REDIRECT_URI

public static final String REDIRECT_URI
See Also:
Constant Field Values

DISCOVERY_URI

public static final String DISCOVERY_URI
See Also:
Constant Field Values

REG_TYPE_PULL

public static final String REG_TYPE_PULL
See Also:
Constant Field Values

REG_TYPE_PUSH

public static final String REG_TYPE_PUSH
See Also:
Constant Field Values

FACEBOOK

public static final String FACEBOOK
See Also:
Constant Field Values

FACEBOOK_AUTHZ

public static final String FACEBOOK_AUTHZ
See Also:
Constant Field Values

FACEBOOK_TOKEN

public static final String FACEBOOK_TOKEN
See Also:
Constant Field Values

GOWALLA

public static final String GOWALLA
See Also:
Constant Field Values

GOWALLA_AUTHZ

public static final String GOWALLA_AUTHZ
See Also:
Constant Field Values

GOWALLA_TOKEN

public static final String GOWALLA_TOKEN
See Also:
Constant Field Values

GITHUB

public static final String GITHUB
See Also:
Constant Field Values

GITHUB_AUTHZ

public static final String GITHUB_AUTHZ
See Also:
Constant Field Values

GITHUB_TOKEN

public static final String GITHUB_TOKEN
See Also:
Constant Field Values

SMART_GALLERY

public static final String SMART_GALLERY
See Also:
Constant Field Values

SMART_GALLERY_AUTHZ

public static final String SMART_GALLERY_AUTHZ
See Also:
Constant Field Values

SMART_GALLERY_TOKEN

public static final String SMART_GALLERY_TOKEN
See Also:
Constant Field Values

SMART_GALLERY_REGISTER

public static final String SMART_GALLERY_REGISTER
See Also:
Constant Field Values
Method Detail

validateRegistrationParams

public static void validateRegistrationParams(OAuthRegParams oauthParams)
                                       throws ApplicationException
Throws:
ApplicationException

validateAuthorizationParams

public static void validateAuthorizationParams(OAuthParams oauthParams)
                                        throws ApplicationException
Throws:
ApplicationException

validateTokenParams

public static void validateTokenParams(OAuthParams oauthParams)
                                throws ApplicationException
Throws:
ApplicationException

isEmpty

public static boolean isEmpty(String value)

findCookieValue

public static String findCookieValue(javax.servlet.http.HttpServletRequest request,
                                     String key)

isIssued

public static String isIssued(String value)


Copyright © 2010. All Rights Reserved.