We're running a Custom SDK Agent, and we'd like to know how to make
this SDK Agent to handle http methods differents of GET, POST, PUT
methods in Policy API ? As per the SDK 12.52, we only see the actions
available as :
ACTION_GET
ACTION_POST
ACTION_PUT
How can we get the other actions ?
At first glance, you still can add verbs as per the Delete one you
mentioned. You have to take care not to add those in a current Web
Agent Type, but rather create a new one as per this KD :
How can I enable WebDAV verbs in the Web Agent?
https://knowledge.broadcom.com/external/article?articleId=52367
Note that the latest Policy Server 12.8SP5 brings out of the box the
WebAgent type with the following verbs :
GET PUT POST CONNECT DELETE HEAD OPTIONS TRACE
and the SDK 12.8SP5 the corresponding methods from the class SmRules
(com.netegrity.sdk.policyapi) as :
com.netegrity.sdk.policyapi
Class SmRule
java.lang.Object
com.netegrity.sdk.policyapi.SmObjectImpl
com.netegrity.sdk.policyapi.SmDomainObjectImpl
com.netegrity.sdk.policyapi.SmRule
| Modifier and Type | Field and Description |
|-------------------------+------------------------------------------------------------------------------------------|
| static java.lang.String | ACTION_CONNECT |
| | An action that uses standard HTTP to establish an HTTP tunnel to the requested resource. |
| static java.lang.String | ACTION_DELETE |
| | An action that uses standard HTTP to delete the requested resource. |
| static java.lang.String | ACTION_HEAD |
| | An action that uses standard HTTP to obtain the meta information about the resource. |
| static java.lang.String | ACTION_OPTIONS |
| | An action that uses standard HTTP to fetch information about the communication options |
| | on the request/response chain identified by the Request-URI. |
| static java.lang.String | ACTION_TRACE |
| | An action that uses standard HTTP to see what is being received at the server and use |
| | that data for testing or diagnostic information. |
ref. :
Java SDK API Reference
Follow these steps:
1. Download the SDK zip.
2. Save and extract the zip locally.
The javadoc-sdk folder is created.
3. Open the javadoc-sdk and double-click the index.html to open the
Java API Reference.
https://techdocs.broadcom.com/us/en/symantec-security-software/identity-security/siteminder/12-8/programming/sdks/programming-in-java.html#concept.dita_51c5e79d4dfad7464ca6dc3c12580047342c5857_JavaSDKAPIReference
So said, to have access to those methods, you'll need to upgrade the
Policy Server to 12.8SP5 and use SDK 12.8SP5 for your Custom Agent.
Finally, usually Microsoft SharePoint application need those WebDAV
verbs. As such, we just want to underline that we provide an Agent for
SharePoint which integrate out of the box those type of verbs that
SharePoint Application usually requires :
Web Agent and WebDav.
https://knowledge.broadcom.com/external/article/11321/web-agent-and-webdav.html