[−][src]Struct jwtvault::utils::dynamic::DynamicVault
Uses dynamic dispatch
Implementations
impl DynamicVault
[src]
pub fn default(
user_authentication: Box<dyn UserAuthentication + Send + Sync>
) -> Self
[src]
user_authentication: Box<dyn UserAuthentication + Send + Sync>
) -> Self
pub fn new<T: Keys>(
loader: T,
trust_token_bearer: bool,
user_authentication: Box<dyn UserAuthentication + Send + Sync>,
user_identity: Box<dyn UserIdentity + Send + Sync>
) -> Self
[src]
loader: T,
trust_token_bearer: bool,
user_authentication: Box<dyn UserAuthentication + Send + Sync>,
user_identity: Box<dyn UserIdentity + Send + Sync>
) -> Self
pub async fn generate_temporary_token<'_, '_>(
&'_ mut self,
user: &'_ str,
authentication_token_expiry_in_seconds: Option<i64>
) -> Result<Token, Error>
[src]
&'_ mut self,
user: &'_ str,
authentication_token_expiry_in_seconds: Option<i64>
) -> Result<Token, Error>
Trait Implementations
impl PasswordHasher<ArgonPasswordHasher> for DynamicVault
[src]
fn hash_user_password<T: AsRef<str>>(
&self,
user: T,
password: T
) -> Result<String, Error>
[src]
&self,
user: T,
password: T
) -> Result<String, Error>
fn verify_user_password<T: AsRef<str>>(
&self,
user: T,
password: T,
hash: T
) -> Result<bool, Error>
[src]
&self,
user: T,
password: T,
hash: T
) -> Result<bool, Error>
impl Persistence for DynamicVault
[src]
fn store<'life0, 'async_trait>(
&'life0 mut self,
key: u64,
value: String
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
key: u64,
value: String
) -> Pin<Box<dyn Future<Output = ()> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn load<'life0, 'async_trait>(
&'life0 self,
key: u64
) -> Pin<Box<dyn Future<Output = Option<&String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
key: u64
) -> Pin<Box<dyn Future<Output = Option<&String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
fn remove<'life0, 'async_trait>(
&'life0 mut self,
key: u64
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
key: u64
) -> Pin<Box<dyn Future<Output = Option<String>> + Send + 'async_trait>> where
'life0: 'async_trait,
Self: 'async_trait,
impl PersistenceHasher<DefaultHasher> for DynamicVault
[src]
impl Store for DynamicVault
[src]
fn public_authentication_certificate(&self) -> &PublicKey
[src]
fn private_authentication_certificate(&self) -> &PrivateKey
[src]
fn public_refresh_certificate(&self) -> &PublicKey
[src]
fn private_refresh_certificate(&self) -> &PrivateKey
[src]
impl TrustToken for DynamicVault
[src]
fn trust_token_bearer(&self) -> bool
[src]
impl UserAuthentication for DynamicVault
[src]
fn check_user_valid<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
user: &'life1 str,
password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Option<Session>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
user: &'life1 str,
password: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<Option<Session>, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl UserIdentity for DynamicVault
[src]
fn check_same_user<'life0, 'life1, 'life2, 'async_trait>(
&'life0 self,
user: &'life1 str,
user_from_token: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 self,
user: &'life1 str,
user_from_token: &'life2 str
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
impl Workflow<DefaultHasher, ArgonPasswordHasher> for DynamicVault
[src]
fn login<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
user: &'life1 str,
pass: &'life2 str,
authentication_token_expiry_in_seconds: Option<i64>,
refresh_token_expiry_in_seconds: Option<i64>
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
user: &'life1 str,
pass: &'life2 str,
authentication_token_expiry_in_seconds: Option<i64>,
refresh_token_expiry_in_seconds: Option<i64>
) -> Pin<Box<dyn Future<Output = Result<Token, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn renew<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
user: &'life1 str,
client_refresh_token: &'life2 String,
authentication_token_expiry_in_seconds: Option<i64>
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
user: &'life1 str,
client_refresh_token: &'life2 String,
authentication_token_expiry_in_seconds: Option<i64>
) -> Pin<Box<dyn Future<Output = Result<String, Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn logout<'life0, 'life1, 'life2, 'async_trait>(
&'life0 mut self,
user: &'life1 str,
client_authentication_token: &'life2 String
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
user: &'life1 str,
client_authentication_token: &'life2 String
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
'life2: 'async_trait,
Self: 'async_trait,
fn revoke<'life0, 'life1, 'async_trait>(
&'life0 mut self,
client_refresh_token: &'life1 String
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
[src]
&'life0 mut self,
client_refresh_token: &'life1 String
) -> Pin<Box<dyn Future<Output = Result<(), Error>> + Send + 'async_trait>> where
'life0: 'async_trait,
'life1: 'async_trait,
Self: 'async_trait,
Auto Trait Implementations
impl !RefUnwindSafe for DynamicVault
impl Send for DynamicVault
impl Sync for DynamicVault
impl Unpin for DynamicVault
impl !UnwindSafe for DynamicVault
Blanket Implementations
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<V, T> VZip<V> for T where
V: MultiLane<T>,
V: MultiLane<T>,