pub struct KeyPaths {
pub key_directory: String,
pub private_key_filename: String,
pub public_key_filename: String,
}Expand description
Resolved filesystem paths for an agent’s key material.
This struct replaces the pattern of reading JACS_KEY_DIRECTORY,
JACS_AGENT_PRIVATE_KEY_FILENAME, and JACS_AGENT_PUBLIC_KEY_FILENAME
from environment variables at every key operation. Instead, paths are
resolved once at construction time and threaded through explicitly.
Fields§
§key_directory: String§private_key_filename: String§public_key_filename: StringImplementations§
Source§impl KeyPaths
impl KeyPaths
Sourcepub fn private_key_path(&self) -> String
pub fn private_key_path(&self) -> String
Full path to the private key file (without .enc suffix).
Sourcepub fn public_key_path(&self) -> String
pub fn public_key_path(&self) -> String
Full path to the public key file.
Sourcepub fn private_key_enc_path(&self) -> String
pub fn private_key_enc_path(&self) -> String
Full path to the encrypted private key file (with .enc suffix).
Trait Implementations§
Auto Trait Implementations§
impl Freeze for KeyPaths
impl RefUnwindSafe for KeyPaths
impl Send for KeyPaths
impl Sync for KeyPaths
impl Unpin for KeyPaths
impl UnsafeUnpin for KeyPaths
impl UnwindSafe for KeyPaths
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
Converts
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more