SID:Servicebeschrijvingen: verschil tussen versies
k (→Create ECK ID) |
k (→Create ECK ID) |
||
Regel 82: | Regel 82: | ||
| |
| |
||
* chainID, sectorID are in the form of OBK URN’s. Retrieve these values using the retrieveChains, retrieveSectors operations respectively. |
* chainID, sectorID are in the form of OBK URN’s. Retrieve these values using the retrieveChains, retrieveSectors operations respectively. |
||
− | * eckID is in the form of a URL: https://id.school/201703/[128-char] hex string. |
+ | * eckID is in the form of a URL: <nowiki>https://id.school/201703/[128-char]</nowiki> hex string. |
|- |
|- |
||
| SAMPLE |
| SAMPLE |
Versie van 1 jun 2017 11:42
Services
Create Stem Pseudonym
SERVICE DESCRIPTION | retrieveStempseudonym |
---|---|
CONTEXT | This service is called by allowed LAS systems to obtain a stem pseudonym for, for instance, a just enrolled student. This function is called during the process of enrollment, and its availability is business critical. |
INPUT |
|
VALIDATIONS |
|
OPERATION | The service derives a stem pseudonym from the input. The derivation of a valid stem pseudonym is performed by a component that is specified in software configuration. |
OUTPUT | stempseudonym: The generated stem pseudonym |
EXCEPTIONS |
|
REMARKS |
|
SAMPLE | Sample request and response |
Create ECK ID
SERVICE DESCRIPTION | retrieveEckId |
---|---|
CONTEXT | This service is called by allowed LAS systems to obtain a ECK ID for, for instance, a just enrolled student. This function is called during the process of enrollment, and its availability is business critical. |
INPUT |
|
VALIDATIONS |
|
OPERATION |
The service combines the three inputs and from the result derives a valid ECK ID. The derivation of a valid ECK ID is performed by a component that is specified in software configuration. If the provided stem pseudonymis in substitutionList.new and sectorID is equal to the substitutionlist.sectorID and today is later than substitutiontable.effectivedate, the previous stem pseudonym is used to derive the ECK ID from. |
OUTPUT | eckID: EckID, The derived ECK ID |
EXCEPTIONS |
|
REMARKS |
|
SAMPLE | Sample request and response |
Change Stem pseudonym (subsitution)
SERVICE DESCRIPTION | replaceStempseudonym |
---|---|
CONTEXT | This service is called when a school administration needs to indicate that a student is assigned a new PGN by the authorities. A change of PGN number is handled as follows:
See also service description Create stempseudonym. |
INPUT |
|
VALIDATIONS |
|
OPERATION | Old hPGN, new hPGN are recorded in the substitution table, and a stem pseudonym for the new hPGN is derived using function ‘Create stem pseudonym’. |
OUTPUT | stem pseudonym: The stem pseudonym for the new hpgn |
EXCEPTIONS |
|
REMARKS |
|
SAMPLE | Sample request and response |
Batch creation of stem pseudonyms
SERVICE DESCRIPTION | submitStempseudonymBatch |
---|---|
CONTEXT | This service is called by allowed LAS systems to submit a list of stem pseudonyms, for a single Sector and a single Chain. The system processes the list and makes a corresponding list of stem pseudonyms available for retrieval (see retrieveEckBatch). |
INPUT |
|
VALIDATIONS |
|
OPERATION | The service creates a stem pseudonym for each hashed PGN in the input list and adds it to the list of generated stem pseudonyms for output. If the list does not contain a hashed PGN or if the hashed PGN was previously indicated as changed, no stem pseudnym will be created and a message to indicate the nature of the failure will be added to the list of failed items for output. |
OUTPUT |
|
EXCEPTIONS |
|
REMARKS |
The use of this service is limited to prevent abuse:
These limits are configured in the software and can be modified. Schools that exceed these limits are temporarily banned from submitting batch requests. Schools may contact Kennisnet servicedesk for information and for lifting of the bans. Schools may submit multiple batch requests, as long as the limits are observed. Batches are processed in the order in which they occur. A batch result is available within one hour after submission of the request. Batch results are removed after successful retrieval. The system may remove batch results that are not retrieved within 24 hours. |
SAMPLE | Sample request and response |
Batch creation of ECK IDs
SERVICE DESCRIPTION | submitEckIdBatch |
---|---|
CONTEXT | This service is called by allowed LAS systems to submit a list of stem pseudnyms, for a single Sector and a single Chain. The system processes the list and makes a corresponding list of ECK IDs available for retrieval (see retrieveEckBatch). |
INPUT |
|
VALIDATIONS |
|
OPERATION | The service creates a ECK ID for each hashed PGN in the input list and adds it to the list of generated ECK IDs for output. If the list does not contain a hashed PGN or if the hashed PGN was previously indicated as changed, no ECK ID will be created and a message to indicate the nature of the failure will be added to the list of failed PGNs for output. If the provided hashed PGN is in substitutionList.new and sectorID is equal to the substitutionlist.sectorID and today is later than substitutiontable.effectivedate, the previous hashed PGN is used to derive the ECK ID from. |
OUTPUT |
|
EXCEPTIONS |
|
REMARKS |
The use of this service is limited to prevent abuse:
These limits are configured in the software and can be modified. Schools that exceed these limits are temporarily banned from submitting batch requests. Schools may contact Kennisnet servicedesk for information and for lifting of the bans. Schools may submit multiple batch requests, as long as the limits are observed. Batches are processed in the order in which they occur. A batch result is available within one hour after submission of the request. Batch results are removed after successful retrieval. The system may remove batch results that are not retrieved within 24 hours. |
SAMPLE | Sample request and response |
SERVICE DESCRIPTION | retrieveBatch |
---|---|
CONTEXT | This service is called by allowed LAS systems to retrieve the status and result of a batch request. |
INPUT |
|
VALIDATIONS |
|
OPERATION | The service retrieves the batch result (either StempseudonymBatch or EckIdBatch), if available, and returns it to the caller. If an error during check or processing occurs, the error is returned. |
OUTPUT |
|
EXCEPTIONS |
|
REMARKS |
The use of this service is limited to prevent abuse: a batch retrieval may be attempted at most once per 15 minutes (software configurable; actual limit may differ). In case this limit is exceeded, the offending school is temporarily banned from using this service. Schools may contact Kennisnet servicedesk for more information and to lift the ban. A batch result is available within one hour after submission of the request. Batch results are removed after successful retrieval. Batch results that are not retrieved can be removed after 24 hours. In the output of this function, both success and failure are optional arrays. If none of the input fail, the response will contain only ‘success’ values. If none of the input succeed, the response will contain only ‘failure’. |
SAMPLE | Sample request and response |
Retrieving chains and sectors
SERVICE DESCRIPTION | retrieveChains |
---|---|
CONTEXT | This service is called by allowed LAS systems to obtain the list of chain parties for which an ECK ID can be derived. As this list changes rarely, this service will not be called often, probably not more than once per day per LAS. |
INPUT | none |
VALIDATIONS |
|
OPERATION | The service retrieves the list of active Chain Parties |
OUTPUT |
List of 1 or more :
|
EXCEPTIONS | NotAllowedCallerException |
REMARKS |
|
SERVICE DESCRIPTION | retrieveSectors |
---|---|
CONTEXT | This service is called by allowed LAS systems to obtain the list of school types for which an ECK ID can be derived. As this list changes rarely, this service will not be called often, probably not more than once per day per LAS. |
INPUT | none |
VALIDATIONS |
|
OPERATION | Retrieve the list of active SectorIDs from the database. |
OUTPUT |
List of 1 or more :
|
EXCEPTIONS | NotAllowedCallerException |
REMARKS |
The names, descriptions and values are taken from OBK. |
Ping operation
SERVICE DESCRIPTION | pingRequest |
---|---|
CONTEXT | This service is called by allowed LAS systems to verify the service is alive. |
INPUT | none |
VALIDATIONS |
|
OPERATION | Verify the database is available for operation |
OUTPUT |
|
EXCEPTIONS | NotAllowedCallerException |
REMARKS |
|
Common types
Name | HPgn |
---|---|
Fields | xsd:string |
Constraints |
|
Remarks | Contains the result of the prescribed hash function SCrypt |
Name | EckId |
---|---|
Fields | xsd:string |
Constraints |
|
Remarks |
Exceptions
Exceptions will be presented by the Nummervoorziening Service as Soap faults. To distinguish the cause Exception of an operation at the client, the element faultactor will hold the specific Exception. In the detail node, a message node is added with additional information regarding the Exception.
Example of a Soap fault as a response from the Nummervoorziening Service (omitting the Soap Headers):
<soap:Envelope xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<soap:Fault>
<faultcode>soap:SERVER</faultcode>
<faultstring>RetrieveEckIdBatch has thrown an exception while building the response</faultstring>
<faultactor>InvalidBatchIdentifierException</faultactor>
<detail>
<message>Batch with specified identifier does not exist</message>
</detail>
</soap:Fault>
</soap:Body>
</soap:Envelope>
The reference clients will contain code in Java and C# to handle these faults and distinguish root causes.