The stored revocation for a delegation, if one exists.
(&self, id: &str)
| 854 | |
| 855 | /// The stored revocation for a delegation, if one exists. |
| 856 | pub fn load_revocation(&self, id: &str) -> Result<Option<String>, IdentityError> { |
| 857 | let path = self.revocation_path(id); |
| 858 | if !path.exists() { |
| 859 | return Ok(None); |
| 860 | } |
| 861 | Ok(Some(fs::read_to_string(path)?)) |
| 862 | } |
| 863 | |
| 864 | /// Is a revocation recorded locally for this delegation? |
| 865 | /// |
nothing calls this directly
no test coverage detected