public class SessionInitializer
extends java.lang.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 java.lang.String |
credentials |
protected java.lang.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(java.lang.String securityCredentials) |
void |
setPrincipal(Principal principal) |
void |
setSession(Session s) |
void |
setSessionService(ISession service) |
protected java.lang.Object mutex
protected Principal principal
protected java.lang.String credentials
protected Session session
protected ISession sessions
public void setSessionService(ISession service)
public void setPrincipal(Principal principal)
public void setCredentials(java.lang.String securityCredentials)
public boolean hasSession()
public Session getSession()
public void setSession(Session s)
public Principal createPrincipal()
Version: 5.4.10-ice35-b105
Copyright © 2019 The University of Dundee & Open Microscopy Environment. All Rights Reserved.