[−][src]Struct jwtvault::utils::vault::DefaultVault
Implementations
impl DefaultVault
[src]
pub fn new<T: Keys>(
loader: T,
users: HashMap<String, String>,
trust_token_bearer: bool
) -> Self
[src]
loader: T,
users: HashMap<String, String>,
trust_token_bearer: bool
) -> Self
Trait Implementations
impl<'a> PasswordHasher<Hasher<'a>> for DefaultVault
[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 DefaultVault
[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 DefaultVault
[src]
impl Store for DefaultVault
[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 DefaultVault
[src]
fn trust_token_bearer(&self) -> bool
[src]
impl UserAuthentication for DefaultVault
[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 DefaultVault
[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<'a> Workflow<DefaultHasher, Hasher<'a>> for DefaultVault
[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 DefaultVault
impl Send for DefaultVault
impl Sync for DefaultVault
impl Unpin for DefaultVault
impl UnwindSafe for DefaultVault
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>,