|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.resoa.node.core.ResoaSecurity
public class ResoaSecurity
ResoaSecurity manages the session and permissions of Resoa nodes.
| Nested Class Summary | |
|---|---|
class |
ResoaSecurity.RestSessionDescriptor
A helper class for caching RestSessions |
| Constructor Summary | |
|---|---|
ResoaSecurity(ResoaBaseGateway gateway)
Constructor sets Protocol Stack and ResoaGateway handlers and instances internal objects |
|
| Method Summary | |
|---|---|
void |
awakeRestSession(org.resoa.topology.RestSession session,
int newTimeOut,
boolean broadCastToController)
Awakes a RestSession. |
ResoaSecurity.RestSessionDescriptor |
cacheRestSession(org.resoa.topology.RestSession session,
int timeOut)
Cache a RestSession handle in local session cache |
void |
disconnectSessions()
Disconnects all base sessions. |
ResoaSecurity.RestSessionDescriptor |
getRestSessionDescriptor(java.lang.String sessionID)
Returns RestSessionDescriptor from local cache or from controller. |
org.resoa.topology.RestSession |
getRestSessionFromCache(java.lang.String sessionID)
Returns a RestSession handle |
javolution.util.FastMap<java.lang.String,org.resoa.topology.Permission> |
getStackPermission(org.resoa.grid.GridSession session)
Returns stack session permission list |
javolution.util.FastMap<java.lang.String,org.resoa.topology.Permission> |
mapPermissions(java.util.List<org.resoa.topology.Permission> perms)
Creates map for domain - permission relationship |
void |
removeIdleSession()
Removes idle REST sessions |
org.resoa.topology.RestSession |
removeRestSession(java.lang.String sessionID)
Removes a Rest session from cahce |
void |
removeStackSession(java.lang.String stackSessionID)
Remove a stack session handle from cache |
void |
stackSessionAuthorized(org.resoa.grid.GridSession session,
java.util.List<org.resoa.topology.Permission> perms)
Set a base session as authorized (registers session and sets permissions) |
void |
updateStackPermission(java.lang.String stackSession,
java.util.List<org.resoa.topology.Permission> newPermission)
Sets/updates permissions for a base session |
org.resoa.topology.NodeState |
updateState(org.resoa.topology.NodeState currState)
Updates nodeState monitoring instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public ResoaSecurity(ResoaBaseGateway gateway)
gateway - the underlying gateway| Method Detail |
|---|
public javolution.util.FastMap<java.lang.String,org.resoa.topology.Permission> mapPermissions(java.util.List<org.resoa.topology.Permission> perms)
perms - a List of permissions
public org.resoa.topology.RestSession getRestSessionFromCache(java.lang.String sessionID)
sessionID - the session ID or null, if a new session should be created
public javolution.util.FastMap<java.lang.String,org.resoa.topology.Permission> getStackPermission(org.resoa.grid.GridSession session)
throws org.resoa.exception.InvalidSessionException
session - the session
org.resoa.exception.InvalidSessionExceptionpublic ResoaSecurity.RestSessionDescriptor getRestSessionDescriptor(java.lang.String sessionID)
sessionID - the rest sessionID
org.resoa.exception.InvalidSessionException
public void updateStackPermission(java.lang.String stackSession,
java.util.List<org.resoa.topology.Permission> newPermission)
stackSession - the stack sessionnewPermission - the new permissionspublic void disconnectSessions()
public ResoaSecurity.RestSessionDescriptor cacheRestSession(org.resoa.topology.RestSession session,
int timeOut)
session - the RestSessiontimeOut - the timeout
public void awakeRestSession(org.resoa.topology.RestSession session,
int newTimeOut,
boolean broadCastToController)
session - the RestSession handlenewTimeOut - the new timeout to setbroadCastToController - true, if the awake should be broadcasted to controllerpublic org.resoa.topology.RestSession removeRestSession(java.lang.String sessionID)
sessionID - the Rest session IDpublic void removeIdleSession()
public void stackSessionAuthorized(org.resoa.grid.GridSession session,
java.util.List<org.resoa.topology.Permission> perms)
session - the stack sessionperms - the permissions for the stack sessionpublic void removeStackSession(java.lang.String stackSessionID)
stackSessionID - public org.resoa.topology.NodeState updateState(org.resoa.topology.NodeState currState)
currState - the state object, where updates should be set
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||