public class SecurityManager extends Object
| Constructor and Description |
|---|
SecurityManager() |
| Modifier and Type | Method and Description |
|---|---|
void |
authenticate() |
AgentProxy |
authenticate(String agentName,
String agentPassword,
String resource) |
boolean |
checkPermissions(AgentPath agent,
Activity act,
ItemPath itemPath) |
org.apache.shiro.subject.Subject |
getSubject(AgentPath agent) |
org.apache.shiro.subject.Subject |
getSubject(String principal) |
void |
setupShiro() |
boolean |
shiroAuthenticate(String agentName,
String agentPassword) |
public SecurityManager()
throws InvalidDataException
InvalidDataExceptionpublic void authenticate()
throws InvalidDataException,
ObjectNotFoundException
public AgentProxy authenticate(String agentName, String agentPassword, String resource) throws InvalidDataException, ObjectNotFoundException
agentName - agentPassword - resource - InvalidDataExceptionObjectNotFoundExceptionpublic org.apache.shiro.subject.Subject getSubject(AgentPath agent)
agent - public org.apache.shiro.subject.Subject getSubject(String principal)
principal - public void setupShiro()
public boolean shiroAuthenticate(String agentName, String agentPassword)
agentName - agentPassword - public boolean checkPermissions(AgentPath agent, Activity act, ItemPath itemPath) throws AccessRightsException, ObjectNotFoundException
agent - stepPath - itemPath - AccessRightsExceptionObjectNotFoundException - Item was not foundCopyright © 1997–2019 CRISTAL-iSE. All rights reserved.