ome.security.basic
Class BasicSecurityWiring

java.lang.Object
  extended by ome.logic.HardWiredInterceptor
      extended by ome.security.basic.BasicSecurityWiring
All Implemented Interfaces:
Advice, Interceptor, 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
Author:
Josh Moore, josh at glencoesoftware.com

Field Summary
protected  MethodSecurity methodSecurity
           
protected  PrincipalHolder principalHolder
           
 
Constructor Summary
BasicSecurityWiring()
           
 
Method Summary
 String getName()
          Lookup name.
 Object invoke(MethodInvocation mi)
          Wraps all OMERO invocations with login/logout semantics.
 void setMethodSecurity(MethodSecurity security)
          Setter injection.
 void setPrincipalHolder(PrincipalHolder principalHolder)
          Setter injection.
 
Methods inherited from class ome.logic.HardWiredInterceptor
configure, getPrincipal, getServiceFactory, hasPassword, initializeUserAttributes, parse, selfConfigure
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

principalHolder

protected PrincipalHolder principalHolder

methodSecurity

protected MethodSecurity methodSecurity
Constructor Detail

BasicSecurityWiring

public BasicSecurityWiring()
Method Detail

getName

public String getName()
Lookup name.

Overrides:
getName in class HardWiredInterceptor
To do:
This should be replaced by a components concept

setPrincipalHolder

public void setPrincipalHolder(PrincipalHolder principalHolder)
Setter injection.


setMethodSecurity

public void setMethodSecurity(MethodSecurity security)
Setter injection.


invoke

public Object invoke(MethodInvocation mi)
              throws Throwable
Wraps all OMERO invocations with login/logout semantics.

Throws:
Throwable


OmeroJava Api

Version: 4.3.4-dbcbce5a-b4

Copyright © 2009 The University of Dundee. All Rights Reserved.