pub struct Identity { /* private fields */ }Expand description
TLS で名乗るための、証明書のチェーンと秘密鍵。
Implementations§
Source§impl Identity
impl Identity
Sourcepub fn new(
chain: &[Certificate],
key: &PrivateKey,
) -> Result<Self, IdentityError>
pub fn new( chain: &[Certificate], key: &PrivateKey, ) -> Result<Self, IdentityError>
ノード、CA の順のチェーンと、ノードの証明書の秘密鍵から作る。
チェーンは catapult の条件を満たしていなければならない。 秘密鍵は rustls と ring に渡り、そちらでは使い終わっても0で上書きされない。
Trait Implementations§
Auto Trait Implementations§
impl !RefUnwindSafe for Identity
impl !UnwindSafe for Identity
impl Freeze for Identity
impl Send for Identity
impl Sync for Identity
impl Unpin for Identity
impl UnsafeUnpin for Identity
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