org.springframework.security.oauth2.provider.expression
Class OAuth2ExpressionUtils

java.lang.Object
  extended by org.springframework.security.oauth2.provider.expression.OAuth2ExpressionUtils

public abstract class OAuth2ExpressionUtils
extends Object

Author:
Dave Syer

Constructor Summary
OAuth2ExpressionUtils()
           
 
Method Summary
static boolean clientHasAnyRole(org.springframework.security.core.Authentication authentication, String... roles)
           
static boolean hasAnyScope(org.springframework.security.core.Authentication authentication, String[] scopes)
           
static boolean isOAuth(org.springframework.security.core.Authentication authentication)
           
static boolean isOAuthClientAuth(org.springframework.security.core.Authentication authentication)
           
static boolean isOAuthUserAuth(org.springframework.security.core.Authentication authentication)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

OAuth2ExpressionUtils

public OAuth2ExpressionUtils()
Method Detail

clientHasAnyRole

public static boolean clientHasAnyRole(org.springframework.security.core.Authentication authentication,
                                       String... roles)

isOAuth

public static boolean isOAuth(org.springframework.security.core.Authentication authentication)

isOAuthClientAuth

public static boolean isOAuthClientAuth(org.springframework.security.core.Authentication authentication)

isOAuthUserAuth

public static boolean isOAuthUserAuth(org.springframework.security.core.Authentication authentication)

hasAnyScope

public static boolean hasAnyScope(org.springframework.security.core.Authentication authentication,
                                  String[] scopes)


Copyright © 2012. All Rights Reserved.