Creating a Policy String

This RESTful web service request can be used to return a Base64- encoded policy string representing the Effective Policy based on an XML document, which lists the privileges that are permitted or denied.

HTTP Method: POST

REST URL Format:

http://host:port/ibi_apps/rs/utils

where:

host

Is the name of the system where WebFOCUS is installed.

port

Is the port number used by WebFOCUS.

Body Format:

IBIRS_action=compactPolicy&IBIRS_policy=Policy

where:

Policy

Is the XML object defining the Effective Policy.

Example:

In the following example, a Base64-encoded policy string will be created based on the XML document containing the Effective Policy.

POST Request:

http://localhost:8080/ibi_apps/rs/utils

Body:

IBIRS_action=compactPolicy&IBIRS_policy=<rootObject _jt="IBSSPolicy" derivedTime="1368095042526"><policy _jt="EnumMap" _keyJT="IBSSOperation" size="185"><entry><key _jt="IBSSOperation" name="opLibrary"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opViewPortal"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opList"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opViewProps"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opDisplayVersionInfo"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opFavorites"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opMagnify"/><value _jt="IBSSVerb" name="PERMIT"/></entry><entry><key _jt="IBSSOperation" name="opMobileFavorites"/><value _jt="IBSSVerb" 
.
.
.
name="opCustom01"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom02"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom03"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom04"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom05"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom06"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom07"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom08"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom09"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom10"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom11"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom12"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom13"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom14"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom15"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom16"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom17"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom18"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom19"/><value _jt="IBSSVerb" name="DENY"/></entry><entry><key _jt="IBSSOperation" name="opCustom20"/><value _jt="IBSSVerb" name="DENY"/></entry></policy></rootObject>

Response:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<ibfsrpc _jt="IBFSResponseObject" language="EN" name="compactPolicy" returncode="10000" returndesc="SUCCESS" subreturncode="0" subsystem="SSYS" type="simple">
	<ibfsparams size="1">
		<entry key="IBIRS_policy" value="&lt;rootObject _jt=&quot;IBSSPolicy&quot; derivedTime=&quot;1368095042526&quot;&gt;&lt;policy _jt=&quot;EnumMap&quot; _keyJT=&quot;IBSSOperation&quot; size=&quot;185&quot;&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opLibrary&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;PERMIT&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opViewPortal&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;PERMIT&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opList&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;PERMIT&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opViewProps&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;PERMIT&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opDisplayVersionInfo&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;PERMIT&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opFavorites&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;PERMIT&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opMagnify&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;PERMIT&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opMobileFavorites&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot;
.
.
.
_jt=&quot;IBSSOperation&quot; name=&quot;opCustom01&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom02&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom03&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key
_jt=&quot;IBSSOperation&quot; name=&quot;opCustom04&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom05&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom06&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom07&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom08&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom09&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom10&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom11&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom12&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom13&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom14&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom15&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom16&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom17&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom18&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom19&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;entry&gt;&lt;key _jt=&quot;IBSSOperation&quot; name=&quot;opCustom20&quot;/&gt;&lt;value _jt=&quot;IBSSVerb&quot; name=&quot;DENY&quot;/&gt;&lt;/entry&gt;&lt;/policy&gt;&lt;/rootObject&gt;"/>
	</ibfsparams>
	<rootObject _jt="string">////D////fx/////+//////////4AAAA</rootObject>
</ibfsrpc>

WebFOCUS