Skip to main content

Revoke Accreditation to Accredit

Revoke Accreditation to Accredit

This guide demonstrates how to revoke a permission to accredit within a Federation.

Prerequisites

  • An existing federation with issued accreditations to accredit
  • Root authority permissions to revoke accreditations
  • A funded client with write access

Overview

Revoking accreditations to accredit removes the ability for a receiver to grant accreditations to others. This is essential for managing hierarchical permissions within a Federation.

1. Set Up Client and Federation

Initialize a client and create a Federation with Properties:

hierarchies-rs/examples/07_revoke_accreditation_to_accredit.rs
loading...

2. Create Accreditation to Accredit

Issue an accreditation to accredit that will later be revoked:

hierarchies-rs/examples/07_revoke_accreditation_to_accredit.rs
loading...

3. Verify Accreditation Exists

Confirm the accreditation to accredit was successfully created:

hierarchies-rs/examples/07_revoke_accreditation_to_accredit.rs
loading...

4. Revoke the Accreditation

Revoke the accreditation to accredit using its ID:

hierarchies-rs/examples/07_revoke_accreditation_to_accredit.rs
loading...

5. Verify Revocation

Confirm the accreditation to accredit has been successfully revoked:

hierarchies-rs/examples/07_revoke_accreditation_to_accredit.rs
loading...

Key Points

  • Higher Level Revocation: Removes the ability to grant accreditations to others
  • Permission ID Required: You need the specific accreditation ID to revoke it
  • Cascading Effect: Revoked accreditors cannot grant new accreditations
  • Root Authority Required: Only root authorities can revoke accreditations to accredit

Full Example Code

hierarchies-rs/examples/07_revoke_accreditation_to_accredit.rs
loading...