(&self)
| 64 | } |
| 65 | |
| 66 | fn read_token(&self) -> Result<String> { |
| 67 | check_key_file(&self.token_path)?; |
| 68 | std::fs::read_to_string(&self.token_path) |
| 69 | .map(|s| s.trim().to_owned()) |
| 70 | .map_err(|e| crate::Error::Encryption { |
| 71 | detail: format!( |
| 72 | "failed to read Vault token from {}: {e}", |
| 73 | self.token_path.display() |
| 74 | ), |
| 75 | }) |
| 76 | } |
| 77 | |
| 78 | fn read_ciphertext_blob(&self) -> Result<String> { |
| 79 | check_key_file(&self.ciphertext_blob_path)?; |
no test coverage detected