Skip to main content

The most recent patch for this version is 6.2.3.  Learn more  

Version: 6.2

Mapping configuration

This is the second part of the configuration, where the attribute-specific configuration is managed.

XML element or attributeDescriptionSupported format
xacmlAttributeThe XACML attribute to be fetched from this attribute source.A valid XACML-format attribute contains XML attributes for AttributeId, Category, DataType, and Issuer.
sqlTypeThe integer value of the SQL datatype used for the attribute or key.See the "SQL datatypes" table below for a reference listing of the constants and values.
queryThe SQL query or stored procedure needed to fetch the attribute value from the database.See the sections on SQL queries and stored procedures below.
keyOther XACML attributes and their corresponding column names in the specified table that act as keys to the target attribute.Any valid JDBC database column name. The exact format may depend on the database used.
uIdAn identifier used to distinguish otherwise identical mappings for the purpose of caching.The element is required, but can contain an arbitrary value.

note

The attribute allowMultiple is deprecated and does not have any functionality. It remains in the XML configuration for reasons of compatibility.

The illustration shows an example of how the XML elements can be implemented. It is an extract from the sample XML-format configuration file supplied in the appendix XML Configuration.

  <!-- mapping for allergy test -->
<cfg:mapping>
<cfg:xacmlAttribute AttributeId="food-group-name" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" DataType="http://www.w3.org/2001/XMLSchema#string" Issuer=""/>
<cfg:nativeAttribute>
<cfg:sqlType>2004</cfg:sqlType>
<cfg:query>SELECT fddrp_desc FROM fd_group WHERE fdgrp_cd=?</cfg:query>
<cfg:key allowMultiple="false" sqlType="12">
<cfg:xacmlAttribute AttributeId="food-id" Category="urn:oasis:names:tc:xacml:3.0:attribute-category:resource" DataType="http://www.w3.org/2001/XMLSchema#string" Issuer=""/>
</cfg:key>
</cfg:nativeAttribute>
<cfg:uId>1</cfg:uId>
</cfg:mapping>

Mapping configuration example

SQL datatypes

ConstantValueConstantValueConstantValue
ARRAY2003FLOAT6REF2006
BIGINT-5INTEGER4REF_CURSOR2012
BINARY-2JAVA_OBJECT2000ROWID-8
BIT-7LONGNVARCHAR-4SMALLINT5
BLOB2004LONGVARBINARY-4SQLXML2009
BOOLEAN16LONGVARCHAR-1STRUCT2002
CHAR1NCHAR-15TIME92
CLOB2005NCLOB2011TIME_WITH_TIMEZONE2013
DATALINK70NULL0TIMESTAMP93
DATE91NUMERIC2TIMESTAMP_WITH_TIMEZONE2014
DECIMAL3NVARCHAR-9TINYINT-6
DISTINCT2001OTHER1111VARBINARY-3
DOUBLE8REAL7VARCHAR12