<!--
  ~ Copyright (c) 2016, WSO2 Inc. (http://www.wso2.org) All Rights Reserved.
  ~
  ~ WSO2 Inc. licenses this file to you under the Apache License,
  ~ Version 2.0 (the "License"); you may not use this file except
  ~ in compliance with the License.
  ~ You may obtain a copy of the License at
  ~
  ~ http://www.apache.org/licenses/LICENSE-2.0
  ~
  ~ Unless required by applicable law or agreed to in writing,
  ~ software distributed under the License is distributed on an
  ~ "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
  ~ KIND, either express or implied. See the License for the
  ~ specific language governing permissions and limitations
  ~ under the License.
  -->
<wap-provisioningdoc version="1.1">
    <characteristic type="CertificateStore">
        <characteristic type="Root">
            <characteristic type="System">
                <characteristic type="">
                    <parm name="EncodedCertificate" value=""/>
                </characteristic>
            </characteristic>
        </characteristic>
        <characteristic type="My">
            <characteristic type="User">
                <characteristic type="">
                    <parm name="EncodedCertificate" value=""/>
                </characteristic>
                <characteristic type="PrivateKeyContainer"/>
            </characteristic>
            <characteristic type="WSTEP">
                <characteristic type="Renew">
                    <parm name="ROBOSupport" value="true" datatype="boolean" />
                    <parm name="RenewPeriod" value="60" datatype="integer" />
                    <parm name="RetryInterval" value="4" datatype="integer" />
                </characteristic>
            </characteristic>
        </characteristic>
    </characteristic>
    <characteristic type="APPLICATION">
        <parm name="APPID" value="w7"/>
        <parm name="PROVIDER-ID" value="MobiCDMServer"/>
        <parm name="NAME" value="wso2"/>
        <parm name="ADDR" value="https://EnterpriseEnrollment.wso2.com/Syncml/initialquery"/>
        <parm name="CONNRETRYFREQ" value="6"/>
        <parm name="INITIALBACKOFFTIME" value="30000"/>
        <parm name="MAXBACKOFFTIME" value="120000"/>
        <parm name="BACKCOMPATRETRYDISABLED"/>
        <parm name="DEFAULTENCODING" value="application/vnd.syncml.dm+xml"/>
        <parm name="SSLCLIENTCERTSEARCHCRITERIA"
              value="Subject=CN%3Dmdmcn&amp;Stores=My%5CUser"/>
        <characteristic type="APPAUTH">
            <parm name="AAUTHLEVEL" value="CLIENT"/>
            <parm name="AAUTHTYPE" value="DIGEST"/>
            <parm name="AAUTHSECRET" value="dummy"/>
            <parm name="AAUTHDATA" value="ZHVtbXk="/>
        </characteristic>
        <characteristic type="APPAUTH">
            <parm name="AAUTHLEVEL" value="APPSRV"/>
            <parm name="AAUTHTYPE" value="DIGEST"/>
            <parm name="AAUTHNAME" value=""/>
            <parm name="AAUTHSECRET" value=""/>
            <parm name="AAUTHDATA" value="ZHVtbXk="/>
        </characteristic>
    </characteristic>
    <characteristic type="DMClient">
        <!-- Staring with Windows Phone 8.1, an enrollment server should use DMClient CSP XML to configure DM polling schedules. The polling schedule regisitry keys will be deprecated after Windows Phone 8.1.-->
        <characteristic type="Provider">
            <!-- ProviderID in DMClient CSP must match to PROVIDER-ID in w7 APPLICATION characteristics -->
            <characteristic type="MobiCDMServer">
                <characteristic type="Poll">
                    <parm name="NumberOfFirstRetries" value="8" datatype="integer" />
                    <parm name="IntervalForFirstSetOfRetries" value="15" datatype="integer" />
                    <parm name="NumberOfSecondRetries" value="5" datatype="integer" />
                    <parm name="IntervalForSecondSetOfRetries" value="3" datatype="integer" />
                    <parm name="NumberOfRemainingScheduledRetries" value="0" datatype="integer" />
                    <!-- In Windows Phone 8.1, MDM push is supported for real-time communication. The DM client long term polling schedule’s retry waiting interval should be more than 24 hours (1440) to reduce the impact to data consumption and battery life. Refer to the DMClient Configuration Service Provider section for information about polling schedule parameters.-->
                    <parm name="IntervalForRemainingScheduledRetries" value="1" datatype="integer" />
                </characteristic>
                <parm name="EntDeviceName" value="AdministratorWindowsPhone" datatype="string" />
            </characteristic>
        </characteristic>
    </characteristic>
</wap-provisioningdoc>