org.tynamo.security.services
Class SecurityModule
java.lang.Object
org.tynamo.security.services.SecurityModule
@SubModule(value=org.tynamo.exceptionpage.services.ExceptionPageModule.class)
@Marker(value=Security.class)
public class SecurityModule
- extends java.lang.Object
The main entry point for Security integration.
|
Method Summary |
static void |
adviseSecurityAssert(org.apache.tapestry5.ioc.MethodAdviceReceiver receiver)
Secure all service methods that are marked with authorization annotations. |
static void |
bind(org.apache.tapestry5.ioc.ServiceBinder binder)
|
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 |
contributeClasspathAssetAliasManager(org.apache.tapestry5.ioc.MappedConfiguration<java.lang.String,java.lang.String> configuration)
|
static void |
contributeComponentClassResolver(org.apache.tapestry5.ioc.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration)
|
static void |
contributeComponentClassTransformWorker(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.ComponentClassTransformWorker> configuration)
|
static void |
contributeComponentRequestHandler(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.ComponentRequestFilter> configuration,
org.apache.tapestry5.services.ComponentRequestFilter filter)
|
void |
contributeExceptionHandler(org.apache.tapestry5.ioc.MappedConfiguration<java.lang.Class,java.lang.Object> configuration,
SecurityExceptionHandlerAssistant assistant)
|
static void |
contributeFactoryDefaults(org.apache.tapestry5.ioc.MappedConfiguration<java.lang.String,java.lang.String> configuration)
|
static void |
contributeHttpServletRequestHandler(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.HttpServletRequestFilter> configuration,
org.apache.tapestry5.services.HttpServletRequestFilter securityConfiguration)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SecurityModule
public SecurityModule()
bind
public static void bind(org.apache.tapestry5.ioc.ServiceBinder binder)
contributeFactoryDefaults
public static void contributeFactoryDefaults(org.apache.tapestry5.ioc.MappedConfiguration<java.lang.String,java.lang.String> configuration)
contributeApplicationInitializer
public 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.
contributeComponentRequestHandler
public static void contributeComponentRequestHandler(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.ComponentRequestFilter> configuration,
@Local
org.apache.tapestry5.services.ComponentRequestFilter filter)
contributeComponentClassTransformWorker
public static void contributeComponentClassTransformWorker(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.ComponentClassTransformWorker> configuration)
contributeComponentClassResolver
public static void contributeComponentClassResolver(org.apache.tapestry5.ioc.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration)
contributeClasspathAssetAliasManager
public static void contributeClasspathAssetAliasManager(org.apache.tapestry5.ioc.MappedConfiguration<java.lang.String,java.lang.String> configuration)
adviseSecurityAssert
@Match(value="*")
@Order(value="before:*")
public static void adviseSecurityAssert(org.apache.tapestry5.ioc.MethodAdviceReceiver receiver)
- Secure all service methods that are marked with authorization annotations.
Restriction: Only service interfaces can be annotated.
contributeExceptionHandler
public void contributeExceptionHandler(org.apache.tapestry5.ioc.MappedConfiguration<java.lang.Class,java.lang.Object> configuration,
@Autobuild
SecurityExceptionHandlerAssistant assistant)
contributeHttpServletRequestHandler
public static void contributeHttpServletRequestHandler(org.apache.tapestry5.ioc.OrderedConfiguration<org.apache.tapestry5.services.HttpServletRequestFilter> configuration,
@InjectService(value="SecurityConfiguration")
org.apache.tapestry5.services.HttpServletRequestFilter securityConfiguration)
Copyright © 2004-2012. All Rights Reserved.