fido2.ctap2.blob
Classes
Implementation of the CTAP2.1 Large Blobs API. |
Module Contents
- class fido2.ctap2.blob.LargeBlobs(ctap, pin_uv_protocol=None, pin_uv_token=None)[source]
Implementation of the CTAP2.1 Large Blobs API.
Getting a largeBlobKey for a credential is done via the LargeBlobKey extension.
- Parameters:
ctap (fido2.ctap2.base.Ctap2) – An instance of a CTAP2 object.
pin_uv_protocol (Optional[fido2.ctap2.pin.PinProtocol]) – An instance of a PinUvAuthProtocol.
pin_uv_token (Optional[bytes]) – A valid PIN/UV Auth Token for the current CTAP session.
- static is_supported(info)[source]
- Parameters:
info (fido2.ctap2.base.Info)
- Return type:
- ctap
- max_fragment_length
- pin_uv
- read_blob_array()[source]
Gets the entire contents of the Large Blobs array.
- Returns:
The CBOR decoded list of Large Blobs.
- Return type:
Sequence[Mapping[int, Any]]
- write_blob_array(blob_array)[source]
Writes the entire Large Blobs array.
- Parameters:
blob_array (Sequence[Mapping[int, Any]]) – A list to write to the Authenticator.
- Return type:
None