public class ContextUtil extends Object
| Constructor and Description |
|---|
ContextUtil() |
| Modifier and Type | Method and Description |
|---|---|
RequestCtx |
buildRequest(List<Map<URI,List<org.jboss.security.xacml.sunxacml.attr.AttributeValue>>> subjects,
Map<URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> actions,
Map<URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> resources,
Map<URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> environment,
RelationshipResolver relationshipResolver)
Constructs a RequestCtx object.
|
String |
makeRequestCtx(RequestCtx reqCtx)
Converts a RequestCtx object to its string representation.
|
RequestCtx |
makeRequestCtx(String request)
Converts a string based request to a RequestCtx obejct.
|
String |
makeResponseCtx(org.jboss.security.xacml.sunxacml.ctx.ResponseCtx resCtx)
Converst a ResponseCtx object to its string representation.
|
org.jboss.security.xacml.sunxacml.ctx.ResponseCtx |
makeResponseCtx(String response)
Converts a string based response to a ResponseCtx obejct.
|
Map<String,org.jboss.security.xacml.sunxacml.ctx.Result> |
makeResultMap(org.jboss.security.xacml.sunxacml.ctx.ResponseCtx resCtx)
Returns a map of resource-id, result based on an XACML response.
|
void |
setActionMap(Map<String,String> actions) |
void |
setActionValueMap(Map<String,String> values) |
List<Attribute> |
setupAction(Map<URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> a)
Creates an Action specifying the action-id, an optional attribute.
|
List<Attribute> |
setupEnvironment(Map<URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> e)
Creates the Environment attributes.
|
List<Attribute> |
setupResources(Map<URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> res,
RelationshipResolver relationshipResolver)
Creates a Resource specifying the resource-id, a required attribute.
|
List<org.jboss.security.xacml.sunxacml.ctx.Subject> |
setupSubjects(List<Map<URI,List<org.jboss.security.xacml.sunxacml.attr.AttributeValue>>> subjs)
Sets up the Subject section of the request.
|
public List<org.jboss.security.xacml.sunxacml.ctx.Subject> setupSubjects(List<Map<URI,List<org.jboss.security.xacml.sunxacml.attr.AttributeValue>>> subjs)
public List<Attribute> setupResources(Map<URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> res, RelationshipResolver relationshipResolver) throws MelcoeXacmlException
MelcoeXacmlExceptionpublic List<Attribute> setupAction(Map<URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> a)
public List<Attribute> setupEnvironment(Map<URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> e)
public RequestCtx buildRequest(List<Map<URI,List<org.jboss.security.xacml.sunxacml.attr.AttributeValue>>> subjects, Map<URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> actions, Map<URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> resources, Map<URI,org.jboss.security.xacml.sunxacml.attr.AttributeValue> environment, RelationshipResolver relationshipResolver) throws MelcoeXacmlException
subjects - list of Subjectsactions - list of Action attributesresources - list of resource Attributesenvironment - list of environment AttributesMelcoeXacmlExceptionpublic org.jboss.security.xacml.sunxacml.ctx.ResponseCtx makeResponseCtx(String response) throws MelcoeXacmlException
response - the string responseMelcoeXacmlExceptionpublic RequestCtx makeRequestCtx(String request) throws MelcoeXacmlException
request - the string requestMelcoeXacmlExceptionpublic String makeRequestCtx(RequestCtx reqCtx)
reqCtx - the RequestCtx objectpublic String makeResponseCtx(org.jboss.security.xacml.sunxacml.ctx.ResponseCtx resCtx)
resCtx - the ResponseCtx objectCopyright © 2015 DuraSpace. All Rights Reserved.