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 #getSessionId()
and
#setSessionId(String)
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.1.4-ice35-b55
Copyright © 2015 The University of Dundee & Open Microscopy Environment. All Rights Reserved.