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 convertPermissionsToScope(List<OAuthPermission> perms)
           
static List<String> convertPermissionsToScopeList(List<OAuthPermission> perms)
           
static UserSubject createSubject(SecurityContext securityContext)
           
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

createSubject

public static UserSubject createSubject(SecurityContext securityContext)

convertPermissionsToScope

public static String convertPermissionsToScope(List<OAuthPermission> perms)

convertPermissionsToScopeList

public static List<String> convertPermissionsToScopeList(List<OAuthPermission> perms)

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