public final class BasicSecurityWiring extends HardWiredInterceptor
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
.Modifier and Type | Class and Description |
---|---|
static class |
BasicSecurityWiring.CloseOnNoSessionContext |
Modifier and Type | Field and Description |
---|---|
protected MethodSecurity |
methodSecurity |
protected PrincipalHolder |
principalHolder |
Constructor and Description |
---|
BasicSecurityWiring() |
Modifier and Type | Method and Description |
---|---|
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.
|
configure, getPrincipal, getServiceFactory, hasPassword, initializeUserAttributes, parse, selfConfigure
protected PrincipalHolder principalHolder
protected MethodSecurity methodSecurity
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
Version: 5.1.2-ice35-b45
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.