505 | | The following method maps object URN's to authority URN's. Note that the transformation from the URN's of objects (e.g. slice, project, member) to the URN's of their authority is a simple one, for example: |
| 505 | {{{ |
| 506 | #!python |
| 507 | # Return list of trust roots (certificates) associated with this Federation. |
| 508 | # |
| 509 | # Often this is a concatenatation of the trust roots of the included authorities. |
| 510 | # |
| 511 | # Arguments: |
| 512 | # None |
| 513 | # |
| 514 | # Return: |
| 515 | # List of certificates representing trust roots of this Federation. |
| 516 | def get_trust_roots() |
| 517 | }}} |
| 518 | |
| 519 | {{{ |
| 520 | #!python |
| 521 | # Lookup the authorities for a given URNs |
| 522 | # |
| 523 | # There should be at most one (potentially none) per URN. |
| 524 | # |
| 525 | # This requires extracting the authority from the URN and then looking up the authority in the Registry's set of services. |
| 526 | # |
| 527 | # Arguments: |
| 528 | # urns: URNs of entities for which the authority is requested |
| 529 | # |
| 530 | # Return: |
| 531 | # List of dictionaries {urn : url} mapping URLs of Authorities to given URN's |
| 532 | def lookup_authorities_for_urns(urns) |
| 533 | }}} |
| 534 | |
| 535 | The ''lookup_authorities_for_urns'' method maps object URN's to authority URN's. Note that the transformation from the URN's of objects (e.g. slice, project, member) to the URN's of their authority is a simple one, for example: |
511 | | {{{ |
512 | | #!python |
513 | | # Lookup the authorities for a given URNs |
514 | | # |
515 | | # There should be at most one (potentially none) per URN. |
516 | | # |
517 | | # This requires extracting the authority from the URN and then looking up the authority in the Registry's set of services. |
518 | | # |
519 | | # Arguments: |
520 | | # urns: URNs of entities for which the authority is requested |
521 | | # |
522 | | # Return: |
523 | | # List of dictionaries {urn : url} mapping URLs of Authorities to given URN's |
524 | | def lookup_authorities_for_urns(urns) |
525 | | }}} |
526 | | |
527 | | {{{ |
528 | | #!python |
529 | | # Return list of trust roots (certificates) associated with this Federation. |
530 | | # |
531 | | # Often this is a concatenatation of the trust roots of the included authorities. |
532 | | # |
533 | | # Arguments: |
534 | | # None |
535 | | # |
536 | | # Return: |
537 | | # List of certificates representing trust roots of this Federation. |
538 | | def get_trust_roots() |
539 | | }}} |