Trait webauthn_authenticator_rs::cbor::CBORCommand
source · [−]pub trait CBORCommand: Serialize + Sized {
type Response: CBORResponse;
const CMD: u8;
const HAS_PAYLOAD: bool = true;
fn cbor(&self) -> Result<Vec<u8>, Error> { ... }
fn to_short_apdus(&self) -> Result<Vec<ISO7816RequestAPDU>, Error> { ... }
fn to_extended_apdu(&self) -> Result<ISO7816RequestAPDU, Error> { ... }
}Required Associated Types
source
type Response: CBORResponse
Required Associated Constants
Provided Associated Constants
sourceconst HAS_PAYLOAD: bool = true
const HAS_PAYLOAD: bool = true
If true (default), then the command has a payload, which will be serialized into CBOR format.
If false, then the command has no payload.
Provided Methods
sourcefn to_short_apdus(&self) -> Result<Vec<ISO7816RequestAPDU>, Error>
fn to_short_apdus(&self) -> Result<Vec<ISO7816RequestAPDU>, Error>
Converts a CTAP v2 command into a form suitable for transmission with short ISO/IEC 7816-4 APDUs (over NFC).
sourcefn to_extended_apdu(&self) -> Result<ISO7816RequestAPDU, Error>
fn to_extended_apdu(&self) -> Result<ISO7816RequestAPDU, Error>
Converts a CTAP v2 command into a form suitable for transmission with extended ISO/IEC 7816-4 APDUs (over NFC).