|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectome.logic.HardWiredInterceptor
ome.security.basic.BasicSecurityWiring
public final class BasicSecurityWiring
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
.
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 |
---|
protected PrincipalHolder principalHolder
protected MethodSecurity methodSecurity
Constructor Detail |
---|
public BasicSecurityWiring()
Method Detail |
---|
public String getName()
getName
in class HardWiredInterceptor
public void setPrincipalHolder(PrincipalHolder principalHolder)
public void setMethodSecurity(MethodSecurity security)
public Object invoke(MethodInvocation mi) throws Throwable
Throwable
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
Version: Beta-4.2.0-r7571-b29
Copyright © 2009 The University of Dundee. All Rights Reserved.