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