Apache CXF API

org.apache.cxf.rs.security.oauth2.utils
Class OAuthUtils

java.lang.Object
  extended by org.apache.cxf.rs.security.oauth2.utils.OAuthUtils

public final class OAuthUtils
extends Object

Various utility methods


Method Summary
static boolean checkRequestURI(String servletPath, String uri)
           
static String generateRandomTokenKey()
           
static boolean isExpired(Long issuedAt, Long lifetime)
           
static boolean isGrantSupportedForClient(Client client, boolean isConfidential, String grantType)
           
static List<String> parseScope(String requestedScope)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

isGrantSupportedForClient

public static boolean isGrantSupportedForClient(Client client,
                                                boolean isConfidential,
                                                String grantType)

parseScope

public static List<String> parseScope(String requestedScope)

generateRandomTokenKey

public static String generateRandomTokenKey()
                                     throws OAuthServiceException
Throws:
OAuthServiceException

isExpired

public static boolean isExpired(Long issuedAt,
                                Long lifetime)

checkRequestURI

public static boolean checkRequestURI(String servletPath,
                                      String uri)

Apache CXF API

Apache CXF