Package org.tynamo.security.services
Class SecurityModule
java.lang.Object
org.tynamo.security.services.SecurityModule
The main entry point for Security integration.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddPermissionBinding(org.apache.tapestry5.commons.MappedConfiguration<String, org.apache.tapestry5.services.BindingFactory> configuration) static voidaddSafePrincipalTypes(org.apache.tapestry5.commons.Configuration<Class> configuration) static voidaddTransformWorkers(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.services.transform.ComponentClassTransformWorker2> configuration) static voidadviseSecurityAssert(org.apache.tapestry5.ioc.MethodAdviceReceiver receiver, org.apache.tapestry5.services.Environment environment) Secure all service methods that are marked with authorization annotations.static voidbind(org.apache.tapestry5.ioc.ServiceBinder binder) static org.apache.shiro.mgt.RememberMeManagerbuildRememberMeManager(org.apache.shiro.lang.io.Serializer serializer, org.slf4j.Logger logger, String hmacPassphrase, String rememberMeCipherKey) voidcontributeApplicationInitializer(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.http.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 voidcontributeComponentClassResolver(org.apache.tapestry5.commons.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration) static voidcontributeComponentRequestHandler(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.services.ComponentRequestFilter> configuration, org.apache.tapestry5.services.ComponentRequestFilter filter) static voidcontributeFactoryDefaults(org.apache.tapestry5.commons.MappedConfiguration<String, String> configuration) static voidcontributeHttpServletRequestHandler(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.http.services.HttpServletRequestFilter> configuration, org.apache.tapestry5.http.services.HttpServletRequestFilter securityConfiguration) voidcontributeRequestExceptionHandler(org.apache.tapestry5.commons.MappedConfiguration<Class, Object> configuration) static voiddefaultSecurity(org.apache.tapestry5.commons.OrderedConfiguration<SecurityFilterChain> configuration, SecurityFilterChainFactory factory, String modulesPathPrefix, String assetPathPrefix)
-
Constructor Details
-
SecurityModule
public SecurityModule()
-
-
Method Details
-
bind
public static void bind(org.apache.tapestry5.ioc.ServiceBinder binder) -
buildRememberMeManager
public static org.apache.shiro.mgt.RememberMeManager buildRememberMeManager(org.apache.shiro.lang.io.Serializer serializer, org.slf4j.Logger logger, @Symbol("tapestry.hmac-passphrase") String hmacPassphrase, @Symbol("security.remembermecipherkey") String rememberMeCipherKey) throws UnsupportedEncodingException - Throws:
UnsupportedEncodingException
-
contributeFactoryDefaults
-
contributeApplicationInitializer
public void contributeApplicationInitializer(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.http.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.commons.OrderedConfiguration<org.apache.tapestry5.services.ComponentRequestFilter> configuration, @Local org.apache.tapestry5.services.ComponentRequestFilter filter) -
addSafePrincipalTypes
@Contribute(org.apache.shiro.lang.io.Serializer.class) public static void addSafePrincipalTypes(org.apache.tapestry5.commons.Configuration<Class> configuration) -
addTransformWorkers
@Contribute(org.apache.tapestry5.services.transform.ComponentClassTransformWorker2.class) public static void addTransformWorkers(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.services.transform.ComponentClassTransformWorker2> configuration) -
contributeComponentClassResolver
public static void contributeComponentClassResolver(org.apache.tapestry5.commons.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration) -
adviseSecurityAssert
@Match("*") @Order("before:*") public static void adviseSecurityAssert(org.apache.tapestry5.ioc.MethodAdviceReceiver receiver, @Core org.apache.tapestry5.services.Environment environment) Secure all service methods that are marked with authorization annotations.Restriction: Only service interfaces can be annotated.
-
contributeRequestExceptionHandler
-
contributeHttpServletRequestHandler
public static void contributeHttpServletRequestHandler(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.http.services.HttpServletRequestFilter> configuration, @InjectService("SecurityConfiguration") org.apache.tapestry5.http.services.HttpServletRequestFilter securityConfiguration) -
defaultSecurity
@Contribute(org.apache.tapestry5.http.services.HttpServletRequestFilter.class) @Security public static void defaultSecurity(org.apache.tapestry5.commons.OrderedConfiguration<SecurityFilterChain> configuration, SecurityFilterChainFactory factory, @Symbol("tapestry.module-path-prefix") String modulesPathPrefix, @Symbol("tapestry.asset-path-prefix") String assetPathPrefix) -
addPermissionBinding
@Contribute(org.apache.tapestry5.services.BindingSource.class) public static void addPermissionBinding(org.apache.tapestry5.commons.MappedConfiguration<String, org.apache.tapestry5.services.BindingFactory> configuration)
-