Class DefaultWebSecurityExpressionHandler
- java.lang.Object
- 
- org.springframework.security.access.expression.AbstractSecurityExpressionHandler<FilterInvocation>
- 
- org.springframework.security.web.access.expression.DefaultWebSecurityExpressionHandler
 
 
- 
- All Implemented Interfaces:
- org.springframework.aop.framework.AopInfrastructureBean,- org.springframework.beans.factory.Aware,- org.springframework.context.ApplicationContextAware,- SecurityExpressionHandler<FilterInvocation>
 
 public class DefaultWebSecurityExpressionHandler extends AbstractSecurityExpressionHandler<FilterInvocation> implements SecurityExpressionHandler<FilterInvocation> - Since:
- 3.0
 
- 
- 
Constructor SummaryConstructors Constructor Description DefaultWebSecurityExpressionHandler()
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description protected SecurityExpressionOperationscreateSecurityExpressionRoot(Authentication authentication, FilterInvocation fi)Implement in order to create a root object of the correct type for the supported invocation type.voidsetDefaultRolePrefix(java.lang.String defaultRolePrefix)Sets the default prefix to be added toSecurityExpressionRoot.hasAnyRole(String...)orSecurityExpressionRoot.hasRole(String).voidsetTrustResolver(AuthenticationTrustResolver trustResolver)Sets theAuthenticationTrustResolverto be used.- 
Methods inherited from class org.springframework.security.access.expression.AbstractSecurityExpressionHandlercreateEvaluationContext, createEvaluationContextInternal, getExpressionParser, getPermissionEvaluator, getRoleHierarchy, setApplicationContext, setExpressionParser, setPermissionEvaluator, setRoleHierarchy
 - 
Methods inherited from class java.lang.Objectclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 - 
Methods inherited from interface org.springframework.security.access.expression.SecurityExpressionHandlercreateEvaluationContext, getExpressionParser
 
- 
 
- 
- 
- 
Method Detail- 
createSecurityExpressionRootprotected SecurityExpressionOperations createSecurityExpressionRoot(Authentication authentication, FilterInvocation fi) Description copied from class:AbstractSecurityExpressionHandlerImplement in order to create a root object of the correct type for the supported invocation type.- Specified by:
- createSecurityExpressionRootin class- AbstractSecurityExpressionHandler<FilterInvocation>
- Parameters:
- authentication- the current authentication object
- fi- the invocation (filter, method, channel)
- Returns:
- the object
 
 - 
setTrustResolverpublic void setTrustResolver(AuthenticationTrustResolver trustResolver) Sets theAuthenticationTrustResolverto be used. The default isAuthenticationTrustResolverImpl.- Parameters:
- trustResolver- the- AuthenticationTrustResolverto use. Cannot be null.
 
 - 
setDefaultRolePrefixpublic void setDefaultRolePrefix(java.lang.String defaultRolePrefix) Sets the default prefix to be added to SecurityExpressionRoot.hasAnyRole(String...)orSecurityExpressionRoot.hasRole(String). For example, if hasRole("ADMIN") or hasRole("ROLE_ADMIN") is passed in, then the role ROLE_ADMIN will be used when the defaultRolePrefix is "ROLE_" (default).If null or empty, then no default role prefix is used. - Parameters:
- defaultRolePrefix- the default prefix to add to roles. Default "ROLE_".
 
 
- 
 
-