Skip to content

Commit f0b6f55

Browse files
committed
Expose AccountCredentials::private_key()
1 parent e841d14 commit f0b6f55

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

src/types.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -98,6 +98,13 @@ pub struct AccountCredentials {
9898
pub(crate) urls: Option<Directory>,
9999
}
100100

101+
impl AccountCredentials {
102+
/// The account's private key
103+
pub fn private_key(&self) -> &PrivatePkcs8KeyDer<'_> {
104+
&self.key_pkcs8
105+
}
106+
}
107+
101108
mod pkcs8_serde {
102109
use std::fmt;
103110

0 commit comments

Comments
 (0)