pub trait AgeYubikeyPlugin {
// Required methods
fn generate_identity(&self, name: &str) -> Result<String, DetectionError>;
fn export_identity_file(&self, out: &Path) -> Result<(), DetectionError>;
}Expand description
Creates and exports the PIV-backed age identity on an attached token.
Required Methods§
Sourcefn generate_identity(&self, name: &str) -> Result<String, DetectionError>
fn generate_identity(&self, name: &str) -> Result<String, DetectionError>
Generate a PIN-always/touch-always identity, returning its recipient.
Sourcefn export_identity_file(&self, out: &Path) -> Result<(), DetectionError>
fn export_identity_file(&self, out: &Path) -> Result<(), DetectionError>
Write the identity stub the trust commands consume.