Class SecurityModule

java.lang.Object
org.tynamo.security.services.SecurityModule

@Security public class SecurityModule extends Object
The main entry point for Security integration.
  • Constructor Summary

    Constructors
    Constructor
    Description
     
  • Method Summary

    Modifier and Type
    Method
    Description
    static void
    addPermissionBinding(org.apache.tapestry5.commons.MappedConfiguration<String,org.apache.tapestry5.services.BindingFactory> configuration)
     
    static void
    addSafePrincipalTypes(org.apache.tapestry5.commons.Configuration<Class> configuration)
     
    static void
    addTransformWorkers(org.apache.tapestry5.commons.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.lang.io.Serializer serializer, org.slf4j.Logger logger, String hmacPassphrase, String rememberMeCipherKey)
     
    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.
    static void
    contributeComponentClassResolver(org.apache.tapestry5.commons.Configuration<org.apache.tapestry5.services.LibraryMapping> configuration)
     
    static void
    contributeComponentRequestHandler(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.services.ComponentRequestFilter> configuration, org.apache.tapestry5.services.ComponentRequestFilter filter)
     
    static void
    contributeFactoryDefaults(org.apache.tapestry5.commons.MappedConfiguration<String,String> configuration)
     
    static void
    contributeHttpServletRequestHandler(org.apache.tapestry5.commons.OrderedConfiguration<org.apache.tapestry5.http.services.HttpServletRequestFilter> configuration, org.apache.tapestry5.http.services.HttpServletRequestFilter securityConfiguration)
     
    void
    contributeRequestExceptionHandler(org.apache.tapestry5.commons.MappedConfiguration<Class,Object> configuration)
     
    static void
    defaultSecurity(org.apache.tapestry5.commons.OrderedConfiguration<SecurityFilterChain> configuration, SecurityFilterChainFactory factory, String modulesPathPrefix, String assetPathPrefix)
     

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • 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

      public static void contributeFactoryDefaults(org.apache.tapestry5.commons.MappedConfiguration<String,String> configuration)
    • 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

      public void contributeRequestExceptionHandler(org.apache.tapestry5.commons.MappedConfiguration<Class,Object> configuration)
    • 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)