Class BasicSecurityWiring

  • All Implemented Interfaces:
    org.aopalliance.aop.Advice, org.aopalliance.intercept.Interceptor, org.aopalliance.intercept.MethodInterceptor

    public final class BasicSecurityWiring
    extends HardWiredInterceptor
    Responsible for logging users in and out via the Principal before and after the actual invocation of OMERO methods. This class is the only HardWiredInterceptor which is hard-wired by default into OMERO classes. This permits simple start-up without the need for the ant build, which may replace the hard-wired value with a more extensive list of HardWiredInterceptor instances. Note: any internal "client" will have to handle logging in and out with an appropriate Principal.
    Since:
    3.0-Beta2
    • Constructor Detail

      • BasicSecurityWiring

        public BasicSecurityWiring()
    • Method Detail

      • setPrincipalHolder

        public void setPrincipalHolder​(PrincipalHolder principalHolder)
        Setter injection.
      • setMethodSecurity

        public void setMethodSecurity​(MethodSecurity security)
        Setter injection.
      • invoke

        public java.lang.Object invoke​(org.aopalliance.intercept.MethodInvocation mi)
                                throws java.lang.Throwable
        Wraps all OMERO invocations with login/logout semantics.
        Throws:
        java.lang.Throwable