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 |
---|---|
java.lang.String |
getName()
Lookup name.
|
java.lang.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 java.lang.String getName()
getName
in class HardWiredInterceptor
public void setPrincipalHolder(PrincipalHolder principalHolder)
public void setMethodSecurity(MethodSecurity security)
public java.lang.Object invoke(MethodInvocation mi) throws java.lang.Throwable
java.lang.Throwable
Version: 5.4.4-ice35-b82
Copyright © 2018 The University of Dundee & Open Microscopy Environment. All Rights Reserved.