Redaction ゲートウェイ

storeCallPDP.xsl スタイル・シートの詳細。

storeCallPDP.xsl スタイル・シートを調べ、以下の点に注目してください。
  1. storeSendToPDP.xsl スタイル・シートが組み込まれています。このスタイル・シートには storeXAMLFW を呼び出すロジックが含まれています。
  2. storeSendToPDP 内のテンプレート call_PDP inside の呼び出し
  3. 呼び出しの応答からの決定の抽出 (例えば、「Permit」)。
  4. var:/context/response/displayfilter 値が allData.xsl または noPriceInfo.xsl のいずれかのスタイル・シートに設定されています。
  5. Reaction の XACML の構造である storePrivateDataXACML.xml は、StoreWSP シナリオで使用される構造とほぼ同じです。 違いは、マネージャーの役割にアクセス権限がある点だけです。

storeCallPDP.xsl

<xsl:stylesheet version="1.0" xmlns:xsl="http://www.w3.org/1999/XSL/Transform" 
xmlns:dp="http://www.datapower.com/extensions"
extension-element-prefixes="dp" exclude-result-prefixes="dp">
  <xsl:include href="storeSendToPDP.xsl" />
    <xsl:template match="/">
      <xsl:call-template name="call_PDP">
        <xsl:with-param name="resource" select="'StorePrivateData'" />
      </xsl:call-template>
      <xsl:variable name="decision">
        <xsl:copy-of select="dp:variable('var://context/snip/xacml/BacksideXacmlResponse')/
    *[local-name()='url-open']/*[localname()='response']/*[local-name()='Envelope']/*[local-name()='Body']/
    *[local-name()='Response']/*[local-name()='Result']/*[localname()='Decision']" />
      </xsl:variable>
      <xsl:message dp:priority="debug">
        <DECISION-FROM-RTSS>
          <xsl:value-of select="$decision" />
        </DECISION-FROM-RTSS>
      </xsl:message>
      <xsl:choose>
      <xsl:when test="$decision = 'Permit'">
        <xsl:message dp:priority="debug">****** SETTING THE PRIVATE FILTER ********</xsl:message>
        <dp:set-variable name="'var://context/response/displayFilter'" value="'local:///allData.xsl'" />
      </xsl:when>
      <xsl:otherwise>
        I<dp:set-variable name="'var://context/response/displayFilter'" value="'local:///noPriceInfo.xsl'" />
      </xsl:otherwise>
    </xsl:choose>
  </xsl:template>
</xsl:stylesheet>

概念 概念

フィードバック


タイム・スタンプ・アイコン 最終更新: 2014 年 3 月 6 日


http://publib.boulder.ibm.com/infocenter/prodconn/v1r0m0/topic/com.ibm.scenarios.soawdpwsrr25.doc/topics/csoa2_sample_redaction_policy.htm