Skip to content

Commit

Permalink
Update to use Conexxus refresh service mechanism.
Browse files Browse the repository at this point in the history
  • Loading branch information
msporny committed Jun 11, 2022
1 parent eeeea65 commit 47f04ba
Showing 1 changed file with 19 additions and 19 deletions.
38 changes: 19 additions & 19 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -243,11 +243,11 @@ <h1>Refresh Data Model</h1>
<td>type</td>
<td>
The `type` property MUST be either `MediatedRefresh2021` or
`UnmediatedRefresh2021`.
`VerifiableCredentialRefreshService2021`.
</td>
</tr>
<tr>
<td>validAfter</td>
<td>validFrom</td>
<td>
An optional [[XMLSCHEMA11-2]] datetime value that specifies the earliest moment
in time that a refresh can be performed.
Expand Down Expand Up @@ -291,7 +291,7 @@ <h1>Refresh Data Model</h1>
<span class="highlight">"refreshService": {
"type": "MediatedRefresh2021",
"url": "https://example.edu/refresh/3732",
"validAfter": "2021-09-01T19:23:24Z"
"validFrom": "2021-09-01T19:23:24Z"
}</span>
}
</pre>
Expand Down Expand Up @@ -322,9 +322,9 @@ <h1>Refresh Data Model</h1>
}
},
<span class="highlight">"refreshService": {
"type": "UnmediatedRefresh2021",
"type": "VerifiableCredentialRefreshService2021",
"url": "https://example.edu/workflows/refresh-degree",
"validAfter": "2021-09-01T19:23:24Z",
"validFrom": "2021-09-01T19:23:24Z",
"validUntil": "2022-02-01T19:23:24Z"
}</span>
}
Expand Down Expand Up @@ -364,15 +364,15 @@ <h2>MediatedRefresh2021 Protocol</h2>
<ol>
<li>
The <a>holder</a> software extracts the `refreshService.type`,
`refreshService.url`, and `refreshService.validAfter` properties and saves
them as <em>type</em>, <em>url</em>, and <em>validAfter</em>, respectively.
`refreshService.url`, and `refreshService.validFrom` properties and saves
them as <em>type</em>, <em>url</em>, and <em>validFrom</em>, respectively.
</li>
<li>
If <em>type</em> does not equal `MediatedRefresh2021`,
raise an `INVALID_REFRESH_ALGORITHM` exception.
</li>
<li>
If <em>validAfter</em> is defined, but expresses a datetime that is later
If <em>validFrom</em> is defined, but expresses a datetime that is later
than the current datetime, raise a `REFRESH_NOT_ALLOWED` exception.
</li>
<li>
Expand Down Expand Up @@ -400,10 +400,10 @@ <h2>MediatedRefresh2021 Protocol</h2>
</section>

<section class="algorithm">
<h2>UnmediatedRefresh2021 Protocol</h2>
<h2>VerifiableCredentialRefreshService2021 Protocol</h2>

<p>
The UnmediatedRefresh2021 protocol is used when an <a>issuer</a> uses a refresh
The VerifiableCredentialRefreshService2021 protocol is used when an <a>issuer</a> uses a refresh
prodedure that does not require an interactive exchange with the
<a>holder</a> and is therefore, fully automatable. The auto refresh protocol
consists of executing the following steps:
Expand All @@ -412,16 +412,16 @@ <h2>UnmediatedRefresh2021 Protocol</h2>
<ol>
<li>
The <a>holder</a> software extracts the `refreshService.type`,
`refreshService.url`, `refreshService.validAfter`, and
`refreshService.url`, `refreshService.validFrom`, and
`refreshService.validUntil` properties and saves them as <em>type</em>,
<em>url</em>, <em>validAfter</em>, and <em>validUntil</em>, respectively.
<em>url</em>, <em>validFrom</em>, and <em>validUntil</em>, respectively.
</li>
<li>
If <em>type</em> does not equal `UnmediatedRefresh2021`,
If <em>type</em> does not equal `VerifiableCredentialRefreshService2021`,
raise an `INVALID_REFRESH_ALGORITHM` exception.
</li>
<li>
If <em>validAfter</em> is defined, but expresses a datetime that is later
If <em>validFrom</em> is defined, but expresses a datetime that is later
than the current datetime, raise a `REFRESH_NOT_ALLOWED` exception.
</li>
<li>
Expand Down Expand Up @@ -481,7 +481,7 @@ <h2>UnmediatedRefresh2021 Protocol</h2>
"domain": "example.edu",
"interact": {
"service": [{
"type": "UnmediatedHttpPresentationService2021",
"type": "VerifiableCredentialRefreshService2021",
"serviceEndpoint": "https://example.edu/active-flows/123456"
}]
}
Expand Down Expand Up @@ -535,9 +535,9 @@ <h2>UnmediatedRefresh2021 Protocol</h2>
}
},
"refreshService": {
"type": "UnmediatedRefresh2021",
"type": "VerifiableCredentialRefreshService2021",
"url": "https://example.edu/workflows/refresh-degree",
"validAfter": "2021-09-01T19:23:24Z"
"validFrom": "2021-09-01T19:23:24Z"
},
"proof": {
"type": "Ed25519Signature2020",
Expand Down Expand Up @@ -595,9 +595,9 @@ <h2>UnmediatedRefresh2021 Protocol</h2>
}
},
"refreshService": {
"type": "UnmediatedRefresh2021",
"type": "VerifiableCredentialRefreshService2021",
"url": "https://example.edu/workflows/refresh-degree",
"validAfter": "2027-03-14T19:23:24Z",
"validFrom": "2027-03-14T19:23:24Z",
"validUntil": "2027-07-14T19:23:24Z"
},
"proof": {
Expand Down

0 comments on commit 47f04ba

Please sign in to comment.