public class SpringSecurityAuthorizationPolicy extends IdentifiedType implements AuthorizationPolicy, org.springframework.beans.factory.InitializingBean, org.springframework.context.ApplicationEventPublisherAware
Constructor and Description |
---|
SpringSecurityAuthorizationPolicy() |
Modifier and Type | Method and Description |
---|---|
void |
afterPropertiesSet() |
protected void |
beforeProcess(Exchange exchange) |
void |
beforeWrap(RouteContext routeContext,
ProcessorDefinition<?> definition)
Hook invoked before the wrap.
|
org.springframework.security.access.AccessDecisionManager |
getAccessDecisionManager() |
protected org.springframework.security.core.Authentication |
getAuthentication(Message message) |
AuthenticationAdapter |
getAuthenticationAdapter() |
org.springframework.security.authentication.AuthenticationManager |
getAuthenticationManager() |
SpringSecurityAccessPolicy |
getSpringSecurityAccessPolicy() |
boolean |
isAlwaysReauthenticate() |
boolean |
isUseThreadSecurityContext() |
void |
setAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager) |
void |
setAlwaysReauthenticate(boolean alwaysReauthenticate) |
void |
setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher) |
void |
setAuthenticationAdapter(AuthenticationAdapter adapter) |
void |
setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager newManager) |
void |
setSpringSecurityAccessPolicy(SpringSecurityAccessPolicy policy) |
void |
setUseThreadSecurityContext(boolean useThreadSecurityContext) |
Processor |
wrap(RouteContext routeContext,
Processor processor)
Wraps any applicable interceptors around the given processor.
|
getId, setId
public void beforeWrap(RouteContext routeContext, ProcessorDefinition<?> definition)
Policy
definiton
beforeWrap
in interface Policy
routeContext
- the route contextdefinition
- the processor definitionpublic Processor wrap(RouteContext routeContext, Processor processor)
Policy
protected org.springframework.security.core.Authentication getAuthentication(Message message)
public void afterPropertiesSet() throws Exception
afterPropertiesSet
in interface org.springframework.beans.factory.InitializingBean
Exception
public AuthenticationAdapter getAuthenticationAdapter()
public void setAuthenticationAdapter(AuthenticationAdapter adapter)
public org.springframework.security.access.AccessDecisionManager getAccessDecisionManager()
public org.springframework.security.authentication.AuthenticationManager getAuthenticationManager()
public void setApplicationEventPublisher(org.springframework.context.ApplicationEventPublisher applicationEventPublisher)
setApplicationEventPublisher
in interface org.springframework.context.ApplicationEventPublisherAware
public void setSpringSecurityAccessPolicy(SpringSecurityAccessPolicy policy)
public SpringSecurityAccessPolicy getSpringSecurityAccessPolicy()
public boolean isAlwaysReauthenticate()
public void setAlwaysReauthenticate(boolean alwaysReauthenticate)
public boolean isUseThreadSecurityContext()
public void setUseThreadSecurityContext(boolean useThreadSecurityContext)
public void setAuthenticationManager(org.springframework.security.authentication.AuthenticationManager newManager)
public void setAccessDecisionManager(org.springframework.security.access.AccessDecisionManager accessDecisionManager)
Copyright © 2007–2016 The Apache Software Foundation. All rights reserved.