<?xml version="1.0"?>
<?xml-stylesheet type="text/xsl" href="rfc2629.xslt" ?>
<!DOCTYPE rfc SYSTEM "rfc2629.dtd" [
<!ENTITY RFC2119   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2119.xml">
<!ENTITY RFC2616   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2616.xml">
<!ENTITY RFC2617   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2617.xml">
<!ENTITY RFC2818   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.2818.xml">
<!ENTITY RFC3261   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3261.xml">
<!ENTITY RFC3693   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3693.xml">
<!ENTITY RFC3851   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3851.xml">
<!ENTITY RFC3986   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.3986.xml">
<!ENTITY RFC4119   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4119.xml">
<!ENTITY RFC4395   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4395.xml">
<!ENTITY RFC4745   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4745.xml">
<!ENTITY RFC4825   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.4825.xml">
<!ENTITY RFC5246   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5246.xml">
<!ENTITY RFC5234   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5234.xml">
<!ENTITY RFC5491   PUBLIC "" "http://xml.resource.org/public/rfc/bibxml/reference.RFC.5491.xml">
<!ENTITY I-D.ietf-geopriv-http-location-delivery PUBLIC "" "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.ietf-geopriv-http-location-delivery.xml">
<!ENTITY I-D.ietf-geopriv-l7-lcp-ps      PUBLIC "" "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.ietf-geopriv-l7-lcp-ps.xml">
<!ENTITY I-D.ietf-geopriv-lbyr-requirements PUBLIC "" "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.ietf-geopriv-lbyr-requirements.xml">
<!ENTITY I-D.ietf-sip-location-conveyance PUBLIC "" "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.ietf-sip-location-conveyance.xml">
<!ENTITY I-D.ietf-geopriv-policy      PUBLIC "" "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.ietf-geopriv-policy.xml">
<!ENTITY I-D.winterbottom-geopriv-held-context PUBLIC "" "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.winterbottom-geopriv-held-context.xml">
<!ENTITY I-D.winterbottom-geopriv-held-identity-extensions PUBLIC "" "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.winterbottom-geopriv-held-identity-extensions.xml">
<!ENTITY I-D.ietf-geopriv-lis-discovery PUBLIC "" "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.ietf-geopriv-lis-discovery.xml">
<!ENTITY I-D.barnes-geopriv-lo-sec PUBLIC "" "http://xml.resource.org/public/rfc/bibxml3/reference.I-D.barnes-geopriv-lo-sec.xml">
]>


<?rfc rfcedstyle="yes"?>
<?rfc toc="yes" ?>
<?rfc symrefs="yes" ?>
<?rfc iprnotified="yes" ?>
<?rfc strict="yes" ?>
<?rfc sortrefs="yes" ?>
<?rfc colonspace='yes' ?>

<rfc category="std" ipr="trust200902">
  <front>
    <title abbrev="HELD Dereferencing Protocol">A Location Dereferencing Protocol Using HELD</title>
    <author initials="J." surname="Winterbottom" fullname="James Winterbottom">
      <organization>Andrew Corporation</organization>
      <address>
        <postal>
          <street>PO Box U40</street>
          <city>University of Wollongong</city>
          <region>NSW</region>
          <code>2500</code>
          <country>AU</country>
        </postal>
        <phone>+61 242 212938</phone>
        <email>james.winterbottom@andrew.com</email>
        <uri>http://www.andrew.com/products/geometrix</uri>
      </address>
    </author>
    <author initials="H." surname="Tschofenig" fullname="Hannes Tschofenig">
      <organization>Nokia Siemens Networks</organization>
      <address>
        <postal>
          <street>Linnoitustie 6</street>
          <city>Espoo</city>
          <code>02600</code>
          <country>Finland</country>
        </postal>
        <phone>+358 (50) 4871445</phone>
        <email>Hannes.Tschofenig@gmx.net</email>
        <uri>http://www.tschofenig.priv.at</uri>
      </address>
    </author>
    <author initials="H." surname="Schulzrinne" fullname="Henning Schulzrinne">
      <organization>Columbia University</organization>
      <address>
        <postal>
          <street>Department of Computer Science</street>
          <city>450 Computer Science Building</city>
          <region>New York, NY</region>
          <code>10027</code>
          <country>US</country>
        </postal>
        <phone>+1 212 939 7004</phone>
        <email>hgs@cs.columbia.edu</email>
        <uri>http://www.cs.columbia.edu</uri>
      </address>
    </author>
    <author initials="M." surname="Thomson" fullname="Martin Thomson">
      <organization>Andrew Corporation</organization>
      <address>
        <postal>
          <street>PO Box U40</street>
          <city>University of Wollongong</city>
          <region>NSW</region>
          <code>2500</code>
          <country>AU</country>
        </postal>
        <email>martin.thomson@andrew.com</email>
      </address>
    </author>
    <author initials="M." surname="Dawson" fullname="Martin Dawson">
      <organization>Andrew Corporation</organization>
      <address>
        <postal>
          <street>PO Box U40</street>
          <city>University of Wollongong</city>
          <region>NSW</region>
          <code>2500</code>
          <country>AU</country>
        </postal>
        <email>martin.dawson@andrew.com</email>
      </address>
    </author>
    <date month="July" year="2009"/>
    <area>RAI</area>
    <workgroup>GEOPRIV</workgroup>
    <keyword>Internet-Draft</keyword>
    <keyword>HELD</keyword>
    <keyword>Dereference</keyword>
    <keyword>lbyr</keyword>
    <keyword>HTTP</keyword>
    <keyword>Location</keyword>
    <keyword>GEOPRIV</keyword>

    <abstract>
      <t>This document describes how to use the Hypertext Transfer Protocol (HTTP) over Transport Layer Security (TLS) as a dereferencing protocol to resolve a reference to a Presence Information Data Format Location Object (PIDF-LO). The document assumes that a Location Recipient possesses a secure HELD URI that can be used in conjunction with the HELD protocol to request the location of the Target. </t>

    </abstract>
  </front>
  <middle>

    <section anchor="intro" title="Introduction">
      <t>Provision of <xref target="I-D.ietf-geopriv-lbyr-requirements">location information by reference</xref> involves the creation of a resource that is identified by a "location URI".  A "location URI" identifies resource that contains the location of an entity.  A location URI might be a temporary resource, created in response to a <xref target="I-D.ietf-geopriv-http-location-delivery">HTTP-Enabled Location Delivery (HELD)</xref> request.  A location URI does not intrinsically include location information, instead the URI is "dereferenced" by a Location Recipient to acquire location information.  This document specifies how a holder of a location URI uses that URI to retrieve location information.
      </t>

      <t>The HELD protocol, as described in <xref target="I-D.ietf-geopriv-http-location-delivery"/>, defines a use of HTTP that enables location configuration - the process where a Device acquires location information about itself.  A part of location configuration is the provision of a location URI.  However, HELD does not describe how such a URI is used; this document provides that definition.
      </t>

      <t>This document defines how HELD is used by a Location Recipient to dereference a location URI and acquire location information.  The result of this process is location object in the form of a <xref target="RFC4119">Presence Information Data Format - Location Object (PIDF-LO) document</xref>.  A constrained set of HELD features are defined such that it is suitable for use as a <xref target="I-D.ietf-geopriv-lbyr-requirements">location dereference protocol</xref>.  Use as a location dereference protocol requires use of the <xref target="RFC2818">Transport Layer Security (TLS) binding for HTTP</xref> in order to provide confidentiality, authentication and protection from modification.
      </t>

      <t>Use of HELD as a dereferencing protocol has the advantage that the Location Recipient can indicate the type of location information it would like to receive. This functionality is already available with the HELD base specification, described in <xref target="I-D.ietf-geopriv-http-location-delivery"/>. Furthermore, the HELD response from the LIS towards the Location Recipient not only provides the PIDF-LO but also encapsulates supplementary information, such as error messages, back to the Location Recipient.
      </t>

      <t>Location URIs created for use with HELD dereferencing use the <spanx style="verb">https:</spanx> or <spanx style="verb">http:</spanx> scheme for the HTTP binding of HELD.  The behaviour described in this document can be used by Location Recipients that are aware of the fact that the URI is a location URI.
      </t>

      <t>An example scenario envisioned by this document is shown in <xref target="fig1"/>.  This diagram shows how a location dereference protocol fits with location configuration and conveyance.  <xref target="I-D.ietf-geopriv-lbyr-requirements"/> contains more information on this scenario and others like it.
      </t>

      <figure anchor="fig1" title="Example of Dereference Protocol Exchange">
        <artwork><![CDATA[
                         +-------------+
+------------+           |  Location   |            +-----------+
| End Device |           | Information |            | Location  |
|  (Target)  |           |   Server    |            | Recipient |
+-----+------+           +------+------+            +-----+-----+
      |                         |                         |
   .- + - - - - - - - - - - - - + -.                      |
   :  |     locationRequest     |  :                      |
   .  |------(location URI)---->|  .                      |
   :  |                         |  : Location             |
   .  |     locationResponse    |  . Configuration        |
   :  |<-----(location URI)-----|  : Protocol             |
   .  |                         |  .                      |
   `- + - - - - - - - - - - - - + -'                      |
      |                         |                         |
      |                Location Conveyance                |
      |~ ~ ~ ~ ~ ~ ~ ~ ~ ~(location URI)~ ~ ~ ~ ~ ~ ~ ~ ~>|
      |                         |                         |
      |                      .- + - - - - - - - - - - - - + -.
      |                      :  |     locationRequest     |  :
      |                      .  |<--------(civic)---------|  .
      |        Dereferencing :  |                         |  :
      |        Protocol      .  |     locationResponse    |  .
      |                      :  |--------(PIDF-LO)------->|  :
      |                      .  |                         |  .
      |                      `- + - - - - - - - - - - - - + -'
      |                         |                         |
]]></artwork>
        </figure>
    </section>

    <section anchor="terminology" title="Terminology">
      <t>The key words "MUST", "MUST NOT", "REQUIRED", "SHALL", "SHALL NOT", "SHOULD", "SHOULD NOT", "RECOMMENDED", "MAY", and "OPTIONAL" in this document are to be interpreted as described in <xref target="RFC2119"/>.
      </t>

      <t>This document uses key terminology from several sources:
      <list style="symbols">
        <t>terms for the GEOPRIV reference model defined in <xref target="RFC3693"/> and <xref target="I-D.barnes-geopriv-lo-sec"/>;
        </t>
        <t>the term Location Information Server (LIS), from <xref target="I-D.ietf-geopriv-l7-lcp-ps"/>, is a node in the access network that provides location information to an end point; a LIS provides location URIs;
        </t>
        <t>the term Location Server (LS), from <xref target="RFC3693"/>, is used to identify the server that responds to a location dereference request; this might be the same entity as the LIS, but the model in <xref target="I-D.ietf-geopriv-lbyr-requirements"/> allows for the existence of separate - but related - entities; and
        </t>
        <t>the term location URI is coined in <xref target="I-D.ietf-geopriv-lbyr-requirements"/>.
        </t>
      </list>
      </t>

    </section>

    <section anchor="authorization" title="Authorization Models">

      <t>This section discusses two extreme types of authorization models for dereferencing with HELD URIs, namely "Authorization by Possession" and "Authorization by Access Control".  In the subsequent subsections we discuss the properties of these two models.  These two models can, however, be used in combination in a real deployment. <xref target="communication-model"/>, from <xref target="I-D.ietf-geopriv-lbyr-requirements"/>, shows the model applicable to location configuration, conveyance and dereference.
      </t>

      <t>
        <figure anchor="communication-model" title="Communication Model">
          <artwork><![CDATA[
          +---------+--------+   Location    +-----------+
          |         |        |  Dereference  | Location  |
          |   LIS   -   LS   +---------------+ Recipient |
          |         |        |   Protocol    |           |
          +----+----+--------+      (3)      +-----+-----+
               |         `.                        |
               |    Policy `.                      |
 Location      |    Exchange `.                    |
 Configuration |      (*)      |                   |
 Protocol      |          +----+----+              |
   (1)         |          |  Rule   |   Location   |
               |          |  Maker  |   Conveyance |
         +-----+----+     +---------+   Protocol   |
         |          |                      (2)     |
         |  Target  +------------------------------+
         |          |
         +----------+
              ]]></artwork>
        </figure>
      </t>

      <t>It is important to note that this document does not mandate a specific authorization model, nor does it constrain the usage with regard to these models in any way.  Additionally, it is possible to combine certain parts of both models.
      </t>

      <t>For either authorization model, the overall process is similar.  The following steps are followed, with minor alterations:
      <list style="numbers">
        <t>The Target acquires a location URI from the LIS.  This might use HELD as a location configuration protocol (LCP).</t>

        <t>The Target then conveys the location URI to a third party, the Location Recipient (for example using SIP as described in <xref target="I-D.ietf-sip-location-conveyance"/>). This step is shown in (2) of <xref target="communication-model"/>. </t>

        <t>The Location Recipient then needs to dereference the location URI in order to obtain the Location Object (3).  Depending on the URI scheme of the location URI dereferencing might, as is the case for <spanx style="verb">https:</spanx> or <spanx style="verb">http:</spanx> URIs, be performed as described in this document.</t>
      </list>
      </t>

      <t>In this final step, the Location Server (LS) or LIS makes an authorization decision.  How this decision is reached depends on the authorization model.
      </t>

      <section anchor="pawn" title="Authorization by Possession">
        <t>In this model, possession - or knowledge - of the location URI is used to control access to location information.  A location URI is constructed such that it is hard to guess (see C9 of <xref target="I-D.ietf-geopriv-lbyr-requirements"/>) and the set of entities that it is disclosed to is limited.  The only authentication required by the LS is evidence of possession of the URI.  The LS is able to immediately authorize any request that indicates this URI.
        </t>

        <t>Authorization by possession uses a very simple policy that does not typically require direct interaction with a Rule Maker; it is assumed that the Rule Maker is able to exert control over the distribution of the location URI.  Therefore, the LIS can operate with limited policy input from a Rule Maker.
        </t>

        <t>Limited disclosure is an important aspect of this authorization model.  The location URI is a secret; therefore, ensuring that adversaries are not able to acquire this information is paramount.  Encryption, such as might be offered by <xref target="RFC5246">TLS</xref> or <xref target="RFC3851">S/MIME</xref>, protects the information from eavesdroppers.
        </t>

        <t>Use of authorization by possession location URIs in a hop-by-hop protocol such as <xref target="RFC3261">SIP</xref> adds the possibility of on-path adversaries.  Depending on the usage of the location URI for certain location based applications (e.g., emergency services, location based routing) specific treatment is important, as discussed in <xref target="I-D.ietf-sip-location-conveyance"/>.
        </t>

        <t>Using possession as a basis for authorization means that, once granted, authorization cannot be easily revoked.  Cancellation of a location URI ensures that legitimate users are also affected; application of additional policy is theoretically possible, but could be technically infeasible.  Therefore, other measures are provided to prevent an adversary from gaining access to location information indefinitely.
        </t>

        <t>A very simple policy is established at the time that the location URI is created.  This policy specifies that the location URI expires after a certain time, which limits any inadvertent exposure of location information to adversaries.  The expiration time of the location URI might be negotiated at the time of its creation, as is the case with <xref target="I-D.winterbottom-geopriv-held-context"/>.
        </t>
      </section>

      <section title="Authorization via Access Control">
        <t>Use of explicit access control provides a Rule Maker greater control over the behaviour of an LS.  In contrast to authorization by possession, possession of a this form of location URI does not imply authorization.  Since an explicit policy is used to authorize access to location information, the location URI can be distributed to many potential Location Recipients.
        </t>

        <t>Either before creation or dissemination of the location URI, the Rule Maker establishes an authorization policy with the LS.  In reference to <xref target="communication-model"/>, authorization policies might be established at creation (Step 1), and need to be established before before the location URI is published (Step 2) to ensure that the policy grants access to the desired Location Recipients.  Depending on the mechanism used, it might also be possible to change authorization policies at any time.
        </t>

        <t>A possible format for these authorization policies is available with GEOPRIV Common Policy <xref target="RFC4745"/> and Geolocation Policy <xref target="I-D.ietf-geopriv-policy"/>.  Additional constraints might be established by other means.
        </t>

        <t>The LS enforces the authorization policy when a Location Recipient dereferences the URI.  Explicit authorization policies allow a Rule Maker to specify the identity of Location Recipients, constrain the accuracy and form of location information, and to control other aspects of the authorization process.
        </t>
      </section>

    </section>

    <section anchor="details" title="HELD Dereference Protocol">

      <t>This section describes how HELD can be used to dereference a location URI.  This process can be applied when a Location Recipient is in possession of a location URI with a <spanx style="verb">https:</spanx> or <spanx style="verb">http:</spanx> URI scheme.
      </t>

        <t>A Location Recipient that wishes to dereference an <spanx style="verb">https:</spanx> or <spanx style="verb">http:</spanx> URI performs a HELD request on HTTP to the identified resource.
        <list style="hanging">
          <t hangText="Note:">In many cases, an <spanx style="verb">http:</spanx> URI does not provide sufficient security for location URIs.  The absence of the security mechanisms provided by TLS means that the Rule Maker has no control over who receives location information and the Location Recipient has no assurance that the information is correct.
          </t>
        </list></t>

        <t>The Location Recipient establishes a connection to the LS, as described in <xref target="RFC2818"/>.  The TLS ciphersuite TLS_NULL_WITH_NULL_NULL MUST NOT be used.  The LS MUST be authenticated to ensure that the correct server is contacted.  Given that a location URI does not indicate the authorization model used, the Location Recipient MUST be prepared to provide authentication information unless it has external information on the authorization model used by the URI.  This document does not specify how the LS authenticates the Location Recipient; however, a Location Recipient MUST support provision of a client certificate during TLS session creation and <xref target="RFC2617">HTTP digest authentication</xref>, unless these authentication methods are known to be inapplicable.
        </t>

      <section anchor="held-profile" title="HELD Usage Profile">
        <t>Use of HELD as a location dereference protocol is largely the same as its use as a location configuration protocol.  Aside from the restrictions noted in this document, HELD semantics do not differ from those established in <xref target="I-D.ietf-geopriv-http-location-delivery"/>.
        </t>

        <t>The HELD <spanx style="verb">locationRequest</spanx> is the only request permitted by this specification.  Similarly, request parameters other than the following MUST NOT be accepted by the LS: <spanx style="verb">responseTime</spanx>, <spanx style="verb">locationType</spanx> (including the associated <spanx style="verb">exact</spanx> attribute).  Other specifications MUST explicitly describe whether other requests or parameters apply to dereference requests and how they are to be interpreted if they are permitted.  The LS MUST ignore any parameters that it does not understand unless it knows the parameters to be invalid, such as those defined in <xref target="I-D.winterbottom-geopriv-held-identity-extensions"/>.  If parameters are known to be invalid, the LS MAY generate a HELD error response.
        </t>

        <t>The LS MUST NOT generate any location URIs or provide a <spanx style="verb">locationUriSet</spanx> in response to a dereference request.  If the location request contains a <spanx style="verb">locationType</spanx> element that includes <spanx style="verb">locationURI</spanx>, this parameter is either ignored or rejected as appropriate, based on the associated <spanx style="verb">exact</spanx> attribute.
        </t>

        <t>This document requires additional HTTP features from Location Recipients that are not required of Devices in HELD.  <xref target="RFC2617">HTTP digest authentication</xref> MUST be supported by Location Recipients, unless there is no means to provide such authentication information.
        </t>
      </section>

    </section>

    <section anchor="examples" title="Examples">

      <t>The example in <xref target="ex-request"/> shows the simplest form of dereferencing request using HELD to the location URI <spanx style="verb">https://ls.example.com:49152/uri/w3g61nf5n66p0</spanx>.  The only way that this differs from the example in Section 10.1 of <xref target="I-D.ietf-geopriv-http-location-delivery"/> is in the request URI and the source of the URI.
      </t>

        <figure anchor="ex-request" title="Minimal Dereferencing Request">
          <artwork><![CDATA[
POST /uri/w3g61nf5n66p0 HTTP/1.1
Host: ls.example.com:49152
Content-Type: application/held+xml
Content-Length: 87

<?xml version="1.0"?>
<locationRequest xmlns="urn:ietf:params:xml:ns:geopriv:held"/>
    ]]></artwork>
        </figure>

      <t><xref target="ex-response"/> shows the response to the previous request listing both civic and geodetic location information of the Target's location.  If this looks similar to the response in Section 10.1 of <xref target="I-D.ietf-geopriv-http-location-delivery"/>, that is no coincidence - unless policy specfies otherwise, the Location Recipient receives the same information as the Device.
      </t>
        <figure anchor="ex-response" title="Response with Location Information">
          <artwork><![CDATA[
HTTP/1.1 200 OK
Server: Example LIS
Date: Tue, 10 Jan 2009 03:42:29 GMT
Expires: Tue, 10 Jan 2009 03:42:29 GMT
Cache-control: private
Content-Type: application/held+xml
Content-Length: 594

<?xml version="1.0"?>
<locationResponse xmlns="urn:ietf:params:xml:ns:geopriv:held">
<presence xmlns="urn:ietf:params:xml:ns:pidf"
          entity="pres:3650n87934c@ls.example.com">
  <tuple id="b650sf789nd">
  <status>
   <geopriv xmlns="urn:ietf:params:xml:ns:pidf:geopriv10">
    <location-info>
       <Point xmlns="http://www.opengis.net/gml"
              srsName="urn:ogc:def:crs:EPSG::4326">
         <pos>-34.407 150.88001</pos>
       </Point>
     </location-info>
     <usage-rules>
       <retention-expiry>
         2006-01-11T03:42:28+00:00</retention-expiry>
     </usage-rules>
     <method>Wiremap</method>
   </geopriv>
  </status>
  <timestamp>2006-01-10T03:42:28+00:00</timestamp>
  </tuple>
</presence>
</locationResponse>
          ]]></artwork>
        </figure>

    </section>

    <section anchor="security" title="Security Considerations">
      <t>Privacy of location information is the most important security consideration for this document.  Two measures in particular are used to protect privacy: TLS and authorization policies.  TLS provides a means of ensuring confidentiality of location information through encryption and mutual authentication.  An authorization policy allows a Rule Maker to explicitly control how location information is provided to Location Recipients.  The process by which a Rule Maker establishes an authorization policy is not covered by this document; several methods are possible, for instance: <xref target="I-D.winterbottom-geopriv-held-context"/>, <xref target="RFC4825"/>.
      </t>

      <t>Use of TLS for the dereferencing of location URIs is strongly RECOMMENDED, as discussed in <xref target="held-profile"/>.  Location Recipients MUST authenticate the host identity using the domain name included in the location URI, using the procedure described in Section 3.1 of <xref target="RFC2818"/>.  Local policy determines what a Location Recipient does is authentication fails, or is not attempted.
      </t>

      <t>The <xref target="pawn">authorization by possession model</xref> further relies on TLS when transmitting the location URI to protect the secrecy of the URI.  Possession of such a URI implies the same privacy considerations as possession of the PIDF-LO document that the URI references.  This is necessary, since the policy attached to such a location URI permits any who have the URI to view it.  This aspect of security is covered in more detail in the specification of location conveyance protocols, such as <xref target="I-D.ietf-sip-location-conveyance"/>.
      </t>

      <t>The Location Recipient MUST be prepared to provide authentication credentials when making a dereference request.
      </t>

      <t>To comply with identity protection requirements in <xref target="RFC3693"/>, the LS MUST NOT include any information that could be used to identify a Target, unless policy is provided that allows this.  To this end, an unlinked pseudonym MUST be provided in the <spanx style="verb">entity</spanx> attribute of the PIDF-LO document.
      </t>

      <t>Further security considerations and requirements relating to the use of location URIs are described in <xref target="I-D.ietf-geopriv-lbyr-requirements"/>.
      </t>

    </section>
    <section anchor="iana" title="IANA Considerations">
      <t>This document makes no request of IANA.
      </t>

      <t>[[IANA/RFC-EDITOR: Please remove this section before publication.]]
      </t>
    </section>

    <section title="Acknowledgements">
      <t>Thanks to Barbara Stark and Guy Caron for providing early comments. Thanks to Rohan Mahy for constructive comments on the scope and format of the document. Thanks to Ted Hardie for his strawman proposal that provided assistance with the security section of this document. </t>

      <t>The authors would like to thank the participants of the GEOPRIV interim meeting 2008 for their feedback.</t>

      <t>James Polk provided comments on a security aspects in June 2008.</t>
    </section>
  </middle>
  <back>
    <references title="Normative References">
      &RFC2119;
      &RFC2616;
      &RFC2617;
      &RFC2818;
      &RFC3986;
      &RFC4119;
      &RFC4395;
      &RFC5234;
      &RFC5491;
      &I-D.ietf-geopriv-http-location-delivery;
    </references>
    <references title="Informative references">
      &RFC3261;
      &RFC3693;
      &RFC3851;
      &RFC4745;
      &RFC4825;
      &RFC5246;
      &I-D.ietf-geopriv-lbyr-requirements;
      &I-D.ietf-geopriv-l7-lcp-ps;
      &I-D.ietf-geopriv-policy;
      &I-D.ietf-geopriv-lis-discovery;
      &I-D.ietf-sip-location-conveyance;
      &I-D.winterbottom-geopriv-held-context;
      &I-D.winterbottom-geopriv-held-identity-extensions;
      &I-D.barnes-geopriv-lo-sec;
    </references>

    <section title="GEOPRIV Using Protocol Compliance">
      <t>This section describes how use of HELD as a location dereference protocol complies with the GEOPRIV requirements described in <xref target="RFC3693"/>.

      <list style="format Req. %d." counter="Requirements">
        <t>(Location Object generalities):
        <vspace blankLines="1"/>
        This section relates to the <xref target="RFC4119">PIDF-LO</xref> document, which is used by HELD.  These requirements are addressed by <xref target="RFC4119"/> and <xref target="RFC5491"/>.
        </t>

        <t>(Location Object fields):
        <vspace blankLines="1"/>
        This section relates to the <xref target="RFC4119">PIDF-LO</xref> document, which is used by HELD.  These requirements are addressed by <xref target="RFC4119"/> and <xref target="RFC5491"/>.
        </t>

        <t>(Location Data Types):
        <vspace blankLines="1"/>
        This section relates to the <xref target="RFC4119">PIDF-LO</xref> document, which is used by HELD.  These requirements are addressed by <xref target="RFC4119"/> and <xref target="RFC5491"/>.
        </t>
      </list>
      </t>

      <t>Section 7.2 of <xref target="RFC3693"/> details the requirements of
      a &quot;Using Protocol&quot;. These requirements are repeated here for reference, followed by a statement of compliance:

      <list style="format Req. %d." counter="Requirements">
        <t>"The using protocol has to obey the privacy and security instructions coded in the Location Object and in the corresponding Rules regarding the transmission and storage of the LO."
        <vspace blankLines="1"/>
        Compliant: This document carries the PIDF-LO as is via HTTPS from the LIS to the Location Recipient.  The sending and receiving parties must obey the instructions carried inside the object.
        </t>

        <t>"The using protocol will typically facilitate that the keys associated with the credentials are transported to the respective parties, that is, key establishment is the responsibility of the using protocol."
        <vspace blankLines="1"/>
        Compliant: This document specifies that authentication of the LS uses the established public key infrastructure used by <xref target="RFC2818">HTTP over TLS</xref>.  Location Recipient is accomplished using certificates exchanged using TLS, or through <xref target="RFC2617">HTTP digest authentication</xref>.  Authentication of Location Recipients as specified in this document requires pre-arrangement; further key establishment methods are left to later work.
        </t>

        <t>"(Single Message Transfer) In particular, for tracking of small target devices, the design should allow a single message/packet transmission of location as a complete transaction."
        <vspace blankLines="1"/>
        Not Compliant: The XML encoding specified in <xref target="RFC4119"/> is not suited to single packet transfers.  It is not the goal of this document to define a new Location Object format.
        </t>
      </list>
      </t>

      <t>Section 7.3 of <xref target="RFC3693"/> details the requirements of a &quot;Rule based Location Data Transfer&quot;.  These requirements are repeated where they are applicable to this document:
      <list style="format Req. %d." counter="Requirements">
        <t>"(LS Rules) The decision of a Location Server to provide a Location Recipient access to Location Information MUST be based on Rule Maker-defined Privacy Rules."
        <vspace blankLines="1"/>
        Compliance or Not Applicable: This document describes two alternative methods by which a Rule Maker is able to control access to location information.  Rule Maker policy is enforced by the LS when a location URI is dereferenced.  However, this document does not describe how a location URI is created, or how a Rule Maker associates policy with a location URI.  These are outside the scope of this document.
        </t>

        <t>(LG Rules) Not Applicable: This relationship between LS and the source of its information (be that Location Generator (LG) or LIS) is out of scope for this document.
        </t>

        <t>"(Viewer Rules) A Viewer does not need to be aware of the full Rules defined by the Rule Maker (because a Viewer SHOULD NOT retransmit Location Information), and thus a Viewer SHOULD receive only the subset of Privacy Rules necessary for the Viewer to handle the LO in compliance with the full Privacy Rules (such as, instruction on the time period for which the LO can be retained)."
        <vspace blankLines="1"/>
        Compliant: The Rule Maker might define (via mechanisms outside the scope of this document) which policy rules are disclosed to other entities.  For instance, if <xref target="RFC4745"/> is used to convey authorization policies from Rule Maker to LS, this is possible using the parameters specified in <xref target="I-D.ietf-geopriv-policy"/>.
        </t>

          <t>(Full Rule language) Not Applicable: Note however that Geopriv has defined a rule language capable of expressing a wide range of privacy rules (see <xref target="RFC4745"/> and <xref target="I-D.ietf-geopriv-policy"/>.
          </t>

          <t>(Limited Rule language) Not Applicable: This requirement applies to (and is addressed by) <xref target="RFC4119">PIDF-LO</xref>. </t>
        </list>
      </t>

      <t>Section 7.4 of <xref target="RFC3693"/> details the requirements of &quot;Location Object Privacy and Security&quot;.  These requirements are repeated where they are applicable to this document:
        <list style="format Req. %d." counter="Requirements">
          <t>(Identity Protection) Potentially Compliant: Identity protection of the Target is provided as long as both of the following conditions are true:
            <list style="format (%c)" counter="subbullets">
              <t>the location URI is not associated with the identity of the Target in any context, and
              </t>
              <t>if the PIDF-LO does not contain information about the identity about the Target.
              </t>
            </list>
            For instance, this requirement is complied with if the protocol that conveys the location URI does not link the identity of the Target to the location URI and the LS doesn't include meaningful identification information in the PIDF-LO document.  <xref target="security"/> recommends that an unlinked pseudonym is used by the LS.
          </t>

          <t>(Credential Requirements) Compliant: The primary security mechanism specified in this document is Transport Layer Security.  TLS offers the ability to use different types of credentials, including symmetric, asymmetric credentials or a combination of them.</t>

          <t>(Security Features) Compliant: Geopriv defines a few security requirements for the protection of Location Objects such as mutual end-point authentication, data object integrity, data object confidentiality and replay protection.  The ability to use Transport Layer security fulfills these requirements. </t>

          <t>(Minimal Crypto) Compliant: The mandatory to implement ciphersuite is provided in the TLS layer security specification.</t>
        </list>
      </t>
    </section>

    <section title="Compliance to Location Reference Requirements">
      <t>This section describes how HELD complies to the location reference requirements stipulated
      in <xref target="I-D.ietf-geopriv-lbyr-requirements"/>.  Compliance to the Location Configuration Protocol are included in this document.
      <list style="empty"><t>Note that use of HELD as a location dereference protocol does not necessarily imply that HELD is the corresponding LCP.  This document is still applicable to <spanx style="verb">held:</spanx> location URIs that are acquired by other means.
</t>
      </list>
      </t>

      <section title="Requirements for a Location Configuration Protocol">
        <t>
          <list style="format C%d." counter="lbyr-lcp">
            <t>"location URI support: The configuration protocol MUST support a location reference in URI form."
            <vspace blankLines="1"/>
            Compliant: HELD only provides location references in URI form.
            </t>

            <t>"location URI expiration:  When a location URI has a limited validity interval, its lifetime MUST be indicated."
            <vspace blankLines="1"/>
            Compliant: HELD indicates the expiry time of location URIs using the <spanx style="verb">expires</spanx> attribute.  <xref target="I-D.winterbottom-geopriv-held-context">HELD contexts</xref> also expire, and an explicit indication is included in the context response; a Device is able to specify limits on the life time of a HELD context.
            </t>

            <t>"location URI cancellation: The location configuration protocol MUST support the ability to request a cancellation of a specific location URI."
            <vspace blankLines="1"/>
            Compliant conditional on on the source of the location URI: <xref target="I-D.winterbottom-geopriv-held-context">HELD contexts</xref> can be explicitly removed.  HELD does not provide a method for cancelling location URIs.
            </t>

            <t>"Location Information Masking: The location URI form MUST, through randomization and uniqueness, ensure that any location specific information embedded within the location URI itself is kept obscure during location configuration."

            <vspace blankLines="1"/>
            Compliant: The HELD specification explicitly references this requirement in providing guidance on the format of the location URI.
            </t>

            <t>"User Identity Protection: The location URI MUST NOT contain any user identifying information that identifies the user, device or address of record, (e.g., which includes phone extensions, badge numbers, first or last names, etc.), within the URI form."
            <vspace blankLines="1"/>
            Compliant: The HELD specification provides specific guidance on the anonymity of the Target with regards to the generation of location URIs.  <xref target="security"/> expands on this guidance.
            </t>

            <t>"Reuse indicator: There SHOULD be a way to allow a client to control whether a location URI can be resolved once only, or multiple times."
            <vspace blankLines="1"/>
            Compliant: The default semantics of location URIs in HELD place no limits on the number of times that a location URI can be dereferenced.
            </t>

            <t>"Validity Interval Indication: A location configuration protocol MUST provide an indication of the location URI validity interval (i.e., expiry time) when present."
            <vspace blankLines="1"/>
            Duplicate Requirement: As above.
            </t>

            <t>"Location only: The location URI MUST NOT point to any information about the Target other than it's location."
            <vspace blankLines="1"/>
            Compliance depends on implementation: A PIDF-LO document can contain information other than location, but no protocol semantics exist that allow for or encourage inclusion of other information.
            </t>

            <t>"Location URI Not guessable: Where location URIs are used publicly, any location URI MUST be constructed using properties of uniqueness and cryptographically random sequences so that it is not guessable."
            <vspace blankLines="1"/>
            Compliant: HELD specifies that location URIs conform to this requirement.
            </t>

            <t>"Location URI Optional: In the case of user-provided authorization policies, where anonymous or non-guessable location URIs are not warranted, the location configuration protocol MAY support optional location URI forms."
            <vspace blankLines="1"/>
            Not Compliant: HELD does not support Device-specified location URI forms.
            </t>

            <t>"Location URI Authorization Model: The location configuration protocol SHOULD indicate whether the requested location URI conforms to the access control authorization model or the possession authorization model."
            <vspace blankLines="1"/>
            Compliant: HELD explicitly indicates that the possession model applies to all URIs.
            </t>

            <t>"Location URI Lifetime: A location URI SHOULD have an associated expiration lifetime (i.e., validity interval), and MUST have an validity interval if used with the possession authorization model."
            <vspace blankLines="1"/>
            Duplicate Requirement: As above.
            </t>

          </list>
        </t>
      </section>
      <section title="Requirements for a Location Dereference Protocol">
        <t>
          <list style="format D%d." counter="lbyr-ldp">
            <t>"Location URI support: The location dereference protocol MUST support a location reference in URI form."
            <vspace blankLines="1"/>
            Compliant: HELD only provides location references in URI form.
            </t>

            <t>"Validity Interval Indication: A location dereference protocol MUST provide an indication of the location URI validity interval (i.e., expiry time) when present."
            <vspace blankLines="1"/>
            Invalid Requirement: not applicable to location dereference protocols.
            </t>

            <t>"Authentication: The location dereference protocol MUST include mechanisms to authenticate both the client and the server."
            <vspace blankLines="1"/>
            Compliant: TLS provides means for mutual authentication.  This document only specifies the required mechanism for server authentication.
            </t>

            <t>"Dereferenced Location Form: The value returned by the dereference protocol MUST contain a well-formed PIDF-LO document."
            <vspace blankLines="1"/>
            Compliant: HELD requires that location objects are in the form of a PIDF-LO that complies with <xref target="RFC5491"/>.
            </t>

            <t>"Location URI Repeated Use: The location dereference protocol MUST support the ability for the same location URI to be resolved more than once, based on dereference server configuration."
            <vspace blankLines="1"/>
            Compliant: A Location Recipient may access and use a location URI as many times as desired until URI expiration results in the URI being invalidated.  Authorization policies might include rules that modify this behavior.
            </t>

            <t>"Validity Interval Indication: A dereference protocol MUST provide an indication of the location URI validity interval (i.e., expiry time) when present."
            <vspace blankLines="1"/>
            Not Compliant: This document does not provide this indication - this information is arguably useful to a Location Recipient, but it also reveals something about the policy associated with the location URI.  Without also providing a mechanism to suppress this capability and hide the expiry time, this might reveal more information than a Rule Maker is willing to share.
            </t>

            <t>"Location URI anonymized: Any location URI whose dereference will not be subject to authentication and access control MUST be anonymized."
            <vspace blankLines="1"/>
            Not applicable to location dereference protocols - applies to the creation of the URI.
            </t>

            <t>"Location Information Masking: The location URI form MUST, through randomization and uniqueness, ensure that any location specific information embedded within the location URI itself is kept obscure during location URI dereferencing."
            <vspace blankLines="1"/>
            Not applicable to location dereference protocols - applies to the creation of the URI.
            </t>

            <t>"Location Privacy: The location dereference protocol MUST support the application of privacy rules to the dissemination of a requested location object."
            <vspace blankLines="1"/>
            Compliant: Authorization policy must be applied by the LS for all attempts at dereferencing.  Note that in the case of authorization by possession, this authorization policy grants access to location information based on proof of knowledge of the location URI.
            </t>

            <t>"Location Confidentiality: The dereference protocol MUST support encryption of messages sent between the location dereference client and the location dereference server, and MAY alternatively provide messaging unencrypted."
            <vspace blankLines="1"/>
            Compliant: This document strongly recommends the use of TLS for confidentiality.  Unsecured HTTP is permitted, and some of the associated risks are described in <xref target="held-profile"/>.
            </t>

            <t>"Location URI Authorization Model: The location dereference protocol SHOULD indicate whether the requested location URI conforms to the access control authorization model or the possession authorization model."
            <vspace blankLines="1"/>
            Not Compliant: The basis of an authorization decision is potentially private information; this document does not provide this indication.  Note that the recipient of a location URI is expected to respect the confidentiality of a location URI as if it were secret, even if it is not.
            </t>

          </list>
        </t>
      </section>
    </section>
  </back>
</rfc>
