org.springframework.security.oauth.provider.expression
Class OAuthMethodSecurityExpressionHandler

java.lang.Object
  extended by org.springframework.security.access.expression.AbstractSecurityExpressionHandler<org.aopalliance.intercept.MethodInvocation>
      extended by org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler
          extended by org.springframework.security.oauth.provider.expression.OAuthMethodSecurityExpressionHandler
All Implemented Interfaces:
AopInfrastructureBean, Aware, ApplicationContextAware, org.springframework.security.access.expression.method.MethodSecurityExpressionHandler, org.springframework.security.access.expression.SecurityExpressionHandler<org.aopalliance.intercept.MethodInvocation>

public class OAuthMethodSecurityExpressionHandler
extends org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler

Author:
Ryan Heaton, Dave Syer

Field Summary
 
Fields inherited from class org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler
logger
 
Constructor Summary
OAuthMethodSecurityExpressionHandler()
           
 
Method Summary
static boolean consumerHasAnyRole(org.springframework.security.access.expression.SecurityExpressionRoot root, String... roles)
           
 org.springframework.expression.spel.support.StandardEvaluationContext createEvaluationContextInternal(org.springframework.security.core.Authentication auth, org.aopalliance.intercept.MethodInvocation mi)
           
static boolean isOAuthConsumerAuth(org.springframework.security.access.expression.SecurityExpressionRoot root)
           
 
Methods inherited from class org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler
createSecurityExpressionRoot, filter, setParameterNameDiscoverer, setPermissionCacheOptimizer, setReturnObject
 
Methods inherited from class org.springframework.security.access.expression.AbstractSecurityExpressionHandler
createEvaluationContext, getExpressionParser, getPermissionEvaluator, getRoleHierarchy, setApplicationContext, setExpressionParser, setPermissionEvaluator, setRoleHierarchy
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.springframework.security.access.expression.SecurityExpressionHandler
createEvaluationContext, getExpressionParser
 

Constructor Detail

OAuthMethodSecurityExpressionHandler

public OAuthMethodSecurityExpressionHandler()
Method Detail

createEvaluationContextInternal

public org.springframework.expression.spel.support.StandardEvaluationContext createEvaluationContextInternal(org.springframework.security.core.Authentication auth,
                                                                                                             org.aopalliance.intercept.MethodInvocation mi)
Overrides:
createEvaluationContextInternal in class org.springframework.security.access.expression.method.DefaultMethodSecurityExpressionHandler

consumerHasAnyRole

public static boolean consumerHasAnyRole(org.springframework.security.access.expression.SecurityExpressionRoot root,
                                         String... roles)

isOAuthConsumerAuth

public static boolean isOAuthConsumerAuth(org.springframework.security.access.expression.SecurityExpressionRoot root)


Copyright © 2012. All Rights Reserved.