public class PolicyRequest extends Object
PolicyRequest
class represents a PolicyRequest
XML document. The PolicyRequest DTD is defined as the following:
Modifier and Type | Field and Description |
---|---|
static int |
POLICY_REQUEST_ADD_POLICY_LISTENER
Policy Request - Add Policy Listener ID.
|
static int |
POLICY_REQUEST_ADVICES_HANDLEABLE_BY_AM_REQUEST
Policy Request - Advices handleable by OpenAM ID.
|
static int |
POLICY_REQUEST_GET_RESOURCE_RESULTS
Policy Request - Get Resource Results ID.
|
static int |
POLICY_REQUEST_REMOVE_POLICY_LISTENER
Policy Request - Remove Policy Listener ID.
|
Constructor and Description |
---|
PolicyRequest()
Default constructor for
PolicyRequest . |
Modifier and Type | Method and Description |
---|---|
String |
getAppSSOToken()
Returns the single sign on token of the application who sends the
request.
|
int |
getMethodID()
Returns the method ID of the Policy Request.
|
String |
getMethodName()
Retrieves the string representation of the method Id.
|
PolicyListenerRequest |
getPolicyListenerRequest()
Returns the
PolicyListenerRequest object. |
RemoveListenerRequest |
getRemoveListenerRequest()
Returns the
RemoveListenerRequest object. |
String |
getRequestId()
Returns the request ID.
|
ResourceResultRequest |
getResourceResultRequest()
Returns the resource result request object.
|
static PolicyRequest |
parseXML(Node pNode)
Returns a
PolicyRequest object constructed from a XML. |
void |
setAdvicesHandleableByAMRequest(AdvicesHandleableByAMRequest advicesHandleableByAMRequest)
Sets the
AdvicesHandleableByAMRequest sub element of
PolicyRequest . |
void |
setAppSSOToken(String ssoToken)
Sets the single sign on token of the application who sends the request.
|
void |
setMethodID(int id)
Sets the method ID of the Policy Request.
|
void |
setPolicyListenerRequest(PolicyListenerRequest req)
Sets the
PolicyListenerRequest of the Policy Service. |
void |
setRemoveListenerRequest(RemoveListenerRequest req)
Sets the
RemoveListenerRequest of the Policy Service. |
void |
setRequestId(String reqId)
Sets the request ID.
|
void |
setResourceResultRequest(ResourceResultRequest req)
Sets the resource result request object.
|
String |
toXMLString()
Returns a string representation of this object.
|
public static final int POLICY_REQUEST_GET_RESOURCE_RESULTS
public static final int POLICY_REQUEST_ADD_POLICY_LISTENER
public static final int POLICY_REQUEST_REMOVE_POLICY_LISTENER
public static final int POLICY_REQUEST_ADVICES_HANDLEABLE_BY_AM_REQUEST
public int getMethodID()
public String getMethodName()
IllegalStateException
- should the method Id become unknownpublic void setMethodID(int id)
id
- the method ID.public String getAppSSOToken()
public void setAppSSOToken(String ssoToken)
ssoToken
- the single sign on token of the application.public String getRequestId()
public void setRequestId(String reqId)
reqId
- the ID of the request.public ResourceResultRequest getResourceResultRequest()
public void setResourceResultRequest(ResourceResultRequest req)
req
- the resource result request.public PolicyListenerRequest getPolicyListenerRequest()
PolicyListenerRequest
object.PolicyListenerRequest
object.public void setPolicyListenerRequest(PolicyListenerRequest req)
PolicyListenerRequest
of the Policy Service.req
- the PolicyListenerRequest
of this Policy Servicepublic RemoveListenerRequest getRemoveListenerRequest()
RemoveListenerRequest
object.RemoveListenerRequest
objectpublic void setRemoveListenerRequest(RemoveListenerRequest req)
RemoveListenerRequest
of the Policy Service.req
- the RemoveListenerRequest
of this Policy Servicepublic void setAdvicesHandleableByAMRequest(AdvicesHandleableByAMRequest advicesHandleableByAMRequest)
AdvicesHandleableByAMRequest
sub element of
PolicyRequest
.advicesHandleableByAMRequest
- the
AdvicesHandleableByAMRequest
sub element of
PolicyRequest
.public static PolicyRequest parseXML(Node pNode) throws PolicyEvaluationException
PolicyRequest
object constructed from a XML.pNode
- the XML DOM node for the PolicyRequest
object.PolicyRequest
objectPolicyEvaluationException
public String toXMLString()
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.