|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectorg.apache.cxf.rt.security.xacml.DefaultXACMLRequestBuilder
public class DefaultXACMLRequestBuilder
This class constructs an XACML Request given a Principal, list of roles and MessageContext, following the SAML 2.0 profile of XACML 2.0. The principal name is inserted as the Subject ID, and the list of roles associated with that principal are inserted as Subject roles. The action to send defaults to "execute". The resource is the WSDL Operation for a SOAP service, and the request URI for a REST service. You can also configure the ability to send the full request URL instead for a SOAP or REST service. The current DateTime is also sent in an Environment, however this can be disabled via configuration.
| Constructor Summary | |
|---|---|
DefaultXACMLRequestBuilder()
|
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DefaultXACMLRequestBuilder()
| Method Detail |
|---|
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 XACMLRequestBuilderprincipal - 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 resource
Exceptionpublic boolean isSendDateTime()
public void setSendDateTime(boolean sendDateTime)
public boolean isSendFullRequestURL()
public void setSendFullRequestURL(boolean sendFullRequestURL)
public String getResource(Message message)
getResource in interface XACMLRequestBuildermessage - The Message from which to retrieve the resource
|
Apache CXF API | |||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||