pub struct UnverifiedBiscuit { /* private fields */ }
Expand description

A token that was parsed without cryptographic signature verification

Use this if you want to attenuate or print the content of a token without verifying it.

It can be converted to a Biscuit using UnverifiedBiscuit::check_signature, and then used for authorization

Implementations

deserializes a token from raw bytes

deserializes a token from base64

checks the signature of the token and convert it to a Biscuit for authorization

adds a new block to the token

since the public key is integrated into the token, the keypair can be discarded right after calling this function

serializes the token

serializes the token and encode it to a (URL safe) base64 string

creates a new block builder

deserializes from raw bytes with a custom symbol table

deserializes a token from base64 with a custom symbol table

adds a new block to the token

since the public key is integrated into the token, the keypair can be discarded right after calling this function

returns a list of revocation identifiers for each block, in order

if a token is generated with the same keys and the same content, those identifiers will stay the same

returns the number of blocks (at least 1)

prints the content of a block as Datalog source code

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.