Research Article

Protecting Metadata of Access Indicator and Region of Interests for Image Files

Algorithm 1

<Policy xmlns=“urn:oasis:names:tc:XACML:3.0:core:schema:wd-17”
xmlns:xsi=http://www.w3.org/2001/XMLSchema-instance
PolicyId=“urn:isdcm:policyid:1”
RuleCombiningAlgId=“urn:oasis:names:tc:XACML:1.0:rule-combining-algorithm:first-applicable”
Version=“1.0”
xsi:schemaLocation=“urn:oasis:names:tc:XACML:3.0:core:schema:wd-17
http://docs.oasis-open.org/XACML/3.0/XACML-core-v3-schema-wd-17.xsd”>
<Description> Desert.jpg </Description>
<Rule Effect=Permit” RuleId=“urn:oasis:names:tc:XACML:2.0:ejemplo:Desert”>
<Description> Any user can view urn:mimage:Desert.jpg before the end of the year 2019 </Description>
……
<!--resource-->
<Match MatchId=“urn:oasis:names:tc:XACML:1.0:function:regexp-string-match”>
<AttributeValue
DataType=http://www.w3.org/2001/XMLSchema#string”> urn:mimage:Sample.jpg </AttributeValue>
<AttributeDesignator
AttributeId=“urn:oasis:names:tc:XACML:1.0:resource:resource-id”
Category=“urn:oasis:names:tc:XACML:3.0:attribute-category:resource”
DataType=http://www.w3.org/2001/XMLSchema#string” MustBePresent=“false”/>
</Match>
……
<!--action-->
<Match MatchId=“urn:oasis:names:tc:XACML:1.0:function:string-equal”>
<AttributeValue
DataType=http://www.w3.org/2001/XMLSchema#string”>
View </AttributeValue>
<AttributeDesignator
AttributeId=“urn:oasis:names:tc:XACML:1.0:action:action-id”
Category=“urn:oasis:names:tc:XACML:3.0:attribute-category:action”
DataType=http://www.w3.org/2001/XMLSchema#string
MustBePresent=“false”/>
</Match>
……
<Condition>
<Apply FunctionId=“urn:oasis:names:tc:XACML:1.0:function:date-less-than-or-equal”>
<Apply FunctionId=“urn:oasis:names:tc:XACML:1.0:function:date-one-and-only”>
<AttributeDesignator AttributeId=“accessDate”
Category=“urn:oasis:names:tc:XACML:3.0:date”
DataType=http://www.w3.org/2001/XMLSchema#date” MustBePresent=“false”/> </Apply>
<AttributeValue DataType=http://www.w3.org/2001/XMLSchema#date”> 2019-12-31 </AttributeValue>
</Apply>
</Condition>
……
</policy>