Skip to main content

AgeYubikeyPlugin

Trait AgeYubikeyPlugin 

Source
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§

Source

fn generate_identity(&self, name: &str) -> Result<String, DetectionError>

Generate a PIN-always/touch-always identity, returning its recipient.

Source

fn export_identity_file(&self, out: &Path) -> Result<(), DetectionError>

Write the identity stub the trust commands consume.

Implementors§