pub enum Key {
Identified(Identified),
Signed(Signed),
}Expand description
The signing key and method for an ACME request.
There are two ways to sign an ACME request: Identified, and unidentifeid.
Identified requests correspond to an account which is already registered
with the ACME provider. In these cases, the request is signed with the account
key, but the JWS will not contain the JWK object for the public key, and
instead will have the kid (Key ID) field, which will contain an account
identifier. In ACME, the account identifier is a URL.
Variants§
Identified(Identified)
A signing key which will be identified to the ACME service as a known account.
Signed(Signed)
A signing key which will have the public component provided as a JWK structure inside the signed part of the request.
Implementations§
Trait Implementations§
Source§impl From<(Arc<SigningKey>, AccountKeyIdentifier)> for Key
impl From<(Arc<SigningKey>, AccountKeyIdentifier)> for Key
Source§fn from((key, identifier): (Arc<SigningKey>, AccountKeyIdentifier)) -> Self
fn from((key, identifier): (Arc<SigningKey>, AccountKeyIdentifier)) -> Self
Converts to this type from the input type.
Source§impl From<(Arc<SigningKey>, Option<AccountKeyIdentifier>)> for Key
impl From<(Arc<SigningKey>, Option<AccountKeyIdentifier>)> for Key
Source§fn from((key, id): (Arc<SigningKey>, Option<AccountKeyIdentifier>)) -> Self
fn from((key, id): (Arc<SigningKey>, Option<AccountKeyIdentifier>)) -> Self
Converts to this type from the input type.
Auto Trait Implementations§
impl Freeze for Key
impl !RefUnwindSafe for Key
impl !Send for Key
impl !Sync for Key
impl Unpin for Key
impl !UnwindSafe for Key
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