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 |
getAction()
Get the Action String currently in use
|
String |
getResource(Message message)
Return the Resource that has been inserted into the Request
|
boolean |
isSendDateTime() |
boolean |
isSendFullRequestURL() |
void |
setAction(String newAction)
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 void setAction(String newAction)
public String getAction()
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 boolean isSendDateTime()
public void setSendDateTime(boolean sendDateTime)
public boolean isSendFullRequestURL()
public void setSendFullRequestURL(boolean sendFullRequestURL)
public String getResource(Message message)
getResource
in interface XACMLRequestBuilder
message
- The Message from which to retrieve the resourceApache CXF