Arthur de Jong

Open Source / Free Software developer

summaryrefslogtreecommitdiffstats
path: root/tests/misc/policy.pskcxml
blob: 10a345b9934471241e9c38101a49aab8f4e6288c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
<?xml version="1.0" encoding="UTF-8"?>

<!--
  Based on Figure 5 from the RFC 6030 tests that has unknown policy
  elements.
-->

<KeyContainer Version="1.0" xmlns="urn:ietf:params:xml:ns:keyprov:pskc">
  <KeyPackage>
    <Key Algorithm="urn:ietf:params:xml:ns:keyprov:pskc:hotp">
      <Data>
        <Secret><PlainValue>MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=</PlainValue></Secret>
      </Data>
      <!-- complete and valid policy -->
      <Policy>
        <StartDate>2006-05-01T00:00:00Z</StartDate>
        <ExpiryDate>2026-05-31T00:00:00Z</ExpiryDate>
        <NumberOfTransactions>4321</NumberOfTransactions>
        <KeyUsage>OTP</KeyUsage>
        <PINPolicy MinLength="4" MaxLength="4"
          PINKeyId="123456781" PINEncoding="DECIMAL"
          PINUsageMode="Local"/>
      </Policy>
    </Key>
  </KeyPackage>
  <KeyPackage>
    <Key Algorithm="urn:ietf:params:xml:ns:keyprov:pskc:hotp">
      <Data>
        <Secret><PlainValue>MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=</PlainValue></Secret>
      </Data>
      <Policy>
        <KeyUsage>OTP</KeyUsage>
        <!-- unknown PINPolicy attribute -->
        <PINPolicy MinLength="4" MaxLength="4"
          PINKeyId="123456781" PINEncoding="DECIMAL"
          PINUsageMode="Local" OnWeekDaysOnly="TRUE"/>
      </Policy>
    </Key>
  </KeyPackage>
  <KeyPackage>
    <Key Algorithm="urn:ietf:params:xml:ns:keyprov:pskc:hotp">
      <Data>
        <Secret><PlainValue>MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=</PlainValue></Secret>
      </Data>
      <Policy>
        <KeyUsage>OTP</KeyUsage>
        <!-- unknown PINKeyId referenced -->
        <PINPolicy MinLength="4" MaxLength="4"
          PINKeyId="999" PINEncoding="DECIMAL"
          PINUsageMode="Local">
          <!-- unknown child element of PINPolicy -->
          <Foo>Bar</Foo>
        </PINPolicy>
      </Policy>
    </Key>
  </KeyPackage>
  <KeyPackage>
    <Key Algorithm="urn:ietf:params:xml:ns:keyprov:pskc:hotp">
      <Data>
        <Secret><PlainValue>MTIzNDU2Nzg5MDEyMzQ1Njc4OTA=</PlainValue></Secret>
      </Data>
      <Policy>
        <KeyUsage>OTP</KeyUsage>
        <!-- no PINKeyId referenced -->
        <PINPolicy MinLength="4" MaxLength="4"
          PINEncoding="DECIMAL"
          PINUsageMode="Local"/>
        <!-- unknown child element of Policy -->
        <Foo>bar</Foo>
      </Policy>
    </Key>
  </KeyPackage>
  <KeyPackage>
    <Key Id="123456781" Algorithm="urn:ietf:params:xml:ns:keyprov:pskc:pin">
      <AlgorithmParameters>
        <ResponseFormat Length="4" Encoding="DECIMAL"/>
      </AlgorithmParameters>
      <Data>
        <Secret><PlainValue>MTIzNA==</PlainValue></Secret>
      </Data>
    </Key>
  </KeyPackage>
</KeyContainer>