public class SessionInitializer extends Object
Session
created via the injected
ISession
service. This is used for by the client-side
ServiceFactory
. Each instance synchronizes on an internal mutex
during every call to getSession()
and
setSession(Session)
Modifier and Type | Field and Description |
---|---|
protected String |
credentials |
protected Object |
mutex |
protected Principal |
principal
Principal given by the user
|
protected Session |
session |
protected ISession |
sessions |
Constructor and Description |
---|
SessionInitializer() |
Modifier and Type | Method and Description |
---|---|
Principal |
createPrincipal() |
Session |
getSession() |
boolean |
hasSession() |
void |
setCredentials(String securityCredentials) |
void |
setPrincipal(Principal principal) |
void |
setSession(Session s) |
void |
setSessionService(ISession service) |
protected Object mutex
protected Principal principal
protected String credentials
protected Session session
protected ISession sessions
public void setSessionService(ISession service)
public void setPrincipal(Principal principal)
public void setCredentials(String securityCredentials)
public boolean hasSession()
public Session getSession()
public void setSession(Session s)
public Principal createPrincipal()
Version: 5.3.5-ice35-b73
Copyright © 2017 The University of Dundee & Open Microscopy Environment. All Rights Reserved.