Package ome.security.basic
Class BasicSecurityWiring
- java.lang.Object
-
- ome.logic.HardWiredInterceptor
-
- ome.security.basic.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 thePrincipal
before and after the actual invocation of OMERO methods. This class is the onlyHardWiredInterceptor
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 ofHardWiredInterceptor
instances. Note: any internal "client" will have to handle logging in and out with an appropriatePrincipal
.- Since:
- 3.0-Beta2
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
BasicSecurityWiring.CloseOnNoSessionContext
-
Field Summary
Fields Modifier and Type Field Description protected MethodSecurity
methodSecurity
protected PrincipalHolder
principalHolder
-
Constructor Summary
Constructors Constructor Description BasicSecurityWiring()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getName()
Lookup name.java.lang.Object
invoke(org.aopalliance.intercept.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
-
-
-
-
Field Detail
-
principalHolder
protected PrincipalHolder principalHolder
-
methodSecurity
protected MethodSecurity methodSecurity
-
-
Method Detail
-
getName
public java.lang.String getName()
Lookup name.- Overrides:
getName
in classHardWiredInterceptor
-
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
-
-