public class DefaultXACMLRequestBuilder extends Object implements XACMLRequestBuilder
Constructor and Description |
---|
DefaultXACMLRequestBuilder() |
Modifier and Type | Method and Description |
---|---|
org.opensaml.xacml.ctx.RequestType |
createRequest(Principal principal,
List<String> roles,
Message message)
Create an XACML Request given a Principal, list of roles and Message.
|
String |
getResource(Message message)
Return the Resource that has been inserted into the Request.
|
List<String> |
getResources(Message message)
Return the list of Resources that have been inserted into the Request.
|
void |
setAction(String action)
Set a new Action String to use
|
void |
setSendDateTime(boolean sendDateTime) |
void |
setSendFullRequestURL(boolean sendFullRequestURL)
Whether to send the full Request URL as the resource or not.
|
public org.opensaml.xacml.ctx.RequestType createRequest(Principal principal, List<String> roles, Message message) throws Exception
createRequest
in interface XACMLRequestBuilder
principal
- The principal to insert into the Subject of the Requestroles
- The list of roles associated with the principalmessage
- The Message from which to retrieve the resourceException
public void setAction(String action)
public void setSendDateTime(boolean sendDateTime)
public void setSendFullRequestURL(boolean sendFullRequestURL)
public List<String> getResources(Message message)
XACMLRequestBuilder
getResources
in interface XACMLRequestBuilder
message
- The Message from which to retrieve the resourcepublic String getResource(Message message)
XACMLRequestBuilder
getResource
in interface XACMLRequestBuilder
message
- The Message from which to retrieve the resourceApache CXF