public class ServiceMethodRestrictionUtil extends Object
| Constructor and Description |
|---|
ServiceMethodRestrictionUtil() |
| Modifier and Type | Method and Description |
|---|---|
static List<String> |
getCnAdministrativeList(List<Node> nodeList,
String serviceName,
String methodName)
Returns an array of subjects listed as CN's in the nodelist or in a properties file.
|
static boolean |
isMethodAllowed(Subject subject,
List<Node> nodeList,
String serviceName,
String methodName)
Interprets the CN's ServiceMethodRestriction for a given Subject+serviceName+methodName
|
public static boolean isMethodAllowed(Subject subject, List<Node> nodeList, String serviceName, String methodName)
subject - the subject that may be allowed to invoke the service methodnodeList - the nodelist to use as reference for the restrictionsserviceName - the name of the CN servicemethodName - the name of the method having the restriction rulespublic static List<String> getCnAdministrativeList(List<Node> nodeList, String serviceName, String methodName)
nodeList - serviceName - methodName - Copyright © 2014. All Rights Reserved.