| Constructor and Description |
|---|
SecurityModule() |
| Modifier and Type | Method and Description |
|---|---|
static void |
addPermissionBinding(org.apache.tapestry5.ioc.MappedConfiguration<String,org.apache.tapestry5.services.BindingFactory> configuration) |
static void |
addSafePrincipalTypes(org.apache.tapestry5.ioc.Configuration<Class> configuration) |
static void |
addTransformWorkers(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.transform.ComponentClassTransformWorker2> configuration) |
static void |
adviseSecurityAssert(org.apache.tapestry5.ioc.MethodAdviceReceiver receiver,
org.apache.tapestry5.services.Environment environment)
Secure all service methods that are marked with authorization annotations.
|
static void |
bind(org.apache.tapestry5.ioc.ServiceBinder binder) |
static org.apache.shiro.mgt.RememberMeManager |
buildRememberMeManager(org.apache.shiro.io.Serializer serializer,
org.slf4j.Logger logger,
String hmacPassphrase,
String rememberMeCipherKey) |
void |
contributeApplicationInitializer(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.ApplicationInitializerFilter> configuration,
org.apache.tapestry5.services.ComponentClassResolver componentClassResolver,
ClassInterceptorsCache classInterceptorsCache)
Create ClassInterceptorsCache through annotations on the class page,
which then will use SecurityFilter.
|
static void |
contributeComponentClassResolver(org.apache.tapestry5.ioc.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration) |
static void |
contributeComponentRequestHandler(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.ComponentRequestFilter> configuration,
org.apache.tapestry5.services.ComponentRequestFilter filter) |
static void |
contributeFactoryDefaults(org.apache.tapestry5.ioc.MappedConfiguration<String,String> configuration) |
static void |
contributeHttpServletRequestHandler(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.HttpServletRequestFilter> configuration,
org.apache.tapestry5.services.HttpServletRequestFilter securityConfiguration) |
void |
contributeRequestExceptionHandler(org.apache.tapestry5.ioc.MappedConfiguration<Class,Object> configuration) |
static void |
defaultSecurity(org.apache.tapestry5.ioc.OrderedConfiguration<SecurityFilterChain> configuration,
SecurityFilterChainFactory factory) |
public static void bind(org.apache.tapestry5.ioc.ServiceBinder binder)
public static org.apache.shiro.mgt.RememberMeManager buildRememberMeManager(org.apache.shiro.io.Serializer serializer,
org.slf4j.Logger logger,
@Symbol(value="tapestry.hmac-passphrase")
String hmacPassphrase,
@Symbol(value="security.remembermecipherkey")
String rememberMeCipherKey)
throws UnsupportedEncodingException
UnsupportedEncodingExceptionpublic static void contributeFactoryDefaults(org.apache.tapestry5.ioc.MappedConfiguration<String,String> configuration)
public void contributeApplicationInitializer(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.ApplicationInitializerFilter> configuration,
org.apache.tapestry5.services.ComponentClassResolver componentClassResolver,
ClassInterceptorsCache classInterceptorsCache)
public static void contributeComponentRequestHandler(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.ComponentRequestFilter> configuration,
@Local
org.apache.tapestry5.services.ComponentRequestFilter filter)
@Contribute(value=org.apache.shiro.io.Serializer.class) public static void addSafePrincipalTypes(org.apache.tapestry5.ioc.Configuration<Class> configuration)
@Contribute(value=org.apache.tapestry5.services.transform.ComponentClassTransformWorker2.class) public static void addTransformWorkers(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.transform.ComponentClassTransformWorker2> configuration)
public static void contributeComponentClassResolver(org.apache.tapestry5.ioc.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration)
@Match(value="*")
@Order(value="before:*")
public static void adviseSecurityAssert(org.apache.tapestry5.ioc.MethodAdviceReceiver receiver,
@Core
org.apache.tapestry5.services.Environment environment)
Restriction: Only service interfaces can be annotated.
public void contributeRequestExceptionHandler(org.apache.tapestry5.ioc.MappedConfiguration<Class,Object> configuration)
public static void contributeHttpServletRequestHandler(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.HttpServletRequestFilter> configuration,
@InjectService(value="SecurityConfiguration")
org.apache.tapestry5.services.HttpServletRequestFilter securityConfiguration)
@Contribute(value=org.apache.tapestry5.services.HttpServletRequestFilter.class) @Security public static void defaultSecurity(org.apache.tapestry5.ioc.OrderedConfiguration<SecurityFilterChain> configuration, SecurityFilterChainFactory factory)
@Contribute(value=org.apache.tapestry5.services.BindingSource.class) public static void addPermissionBinding(org.apache.tapestry5.ioc.MappedConfiguration<String,org.apache.tapestry5.services.BindingFactory> configuration)
Copyright © 2004–2018. All rights reserved.