The stored revocation for a delegation, if one exists.
(&self, id: &str)
| 920 | |
| 921 | /// The stored revocation for a delegation, if one exists. |
| 922 | pub fn load_revocation(&self, id: &str) -> Result<Option<String>, IdentityError> { |
| 923 | let path = self.revocation_path(id); |
| 924 | if !path.exists() { |
| 925 | return Ok(None); |
| 926 | } |
| 927 | Ok(Some(fs::read_to_string(path)?)) |
| 928 | } |
| 929 | |
| 930 | /// Is a revocation recorded locally for this delegation? |
| 931 | /// |
nothing calls this directly
no test coverage detected