diff --git a/docs/master/rustdoc/help.html b/docs/master/rustdoc/help.html index f60b37ce1..9663610de 100644 --- a/docs/master/rustdoc/help.html +++ b/docs/master/rustdoc/help.html @@ -1 +1 @@ -
pub enum DbPasswordV1 {
+DbPasswordV1 in kanidmd_lib::be::dbvalue - Rust Enum kanidmd_lib::be::dbvalue::DbPasswordV1
source · pub enum DbPasswordV1 {
PBKDF2(usize, Vec<u8, Global>, Vec<u8, Global>),
PBKDF2_SHA1(usize, Vec<u8, Global>, Vec<u8, Global>),
PBKDF2_SHA512(usize, Vec<u8, Global>, Vec<u8, Global>),
SSHA512(Vec<u8, Global>, Vec<u8, Global>),
NT_MD4(Vec<u8, Global>),
-}
Variants§
§PBKDF2(usize, Vec<u8, Global>, Vec<u8, Global>)
§PBKDF2_SHA1(usize, Vec<u8, Global>, Vec<u8, Global>)
§PBKDF2_SHA512(usize, Vec<u8, Global>, Vec<u8, Global>)
§SSHA512(Vec<u8, Global>, Vec<u8, Global>)
§NT_MD4(Vec<u8, Global>)
Trait Implementations§
§impl Debug for DbPasswordV1
§impl<'de> Deserialize<'de> for DbPasswordV1
§fn deserialize<__D>(
__deserializer: __D
) -> Result<DbPasswordV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more§impl Serialize for DbPasswordV1
§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for DbPasswordV1
§impl Send for DbPasswordV1
§impl Sync for DbPasswordV1
§impl Unpin for DbPasswordV1
§impl UnwindSafe for DbPasswordV1
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
source§impl<T> From<T> for T
const: unstable · source§fn from(t: T) -> T
Returns the argument unchanged.
+}Variants§
§PBKDF2(usize, Vec<u8, Global>, Vec<u8, Global>)
§PBKDF2_SHA1(usize, Vec<u8, Global>, Vec<u8, Global>)
§PBKDF2_SHA512(usize, Vec<u8, Global>, Vec<u8, Global>)
§SSHA512(Vec<u8, Global>, Vec<u8, Global>)
§NT_MD4(Vec<u8, Global>)
Trait Implementations§
source§impl Debug for DbPasswordV1
source§impl<'de> Deserialize<'de> for DbPasswordV1
source§fn deserialize<__D>(
__deserializer: __D
) -> Result<DbPasswordV1, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read moresource§impl Serialize for DbPasswordV1
source§fn serialize<__S>(
&self,
__serializer: __S
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
Serialize this value into the given Serde serializer. Read moreAuto Trait Implementations§
§impl RefUnwindSafe for DbPasswordV1
§impl Send for DbPasswordV1
§impl Sync for DbPasswordV1
§impl Unpin for DbPasswordV1
§impl UnwindSafe for DbPasswordV1
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>
source§impl<T, U> Into<U> for Twhere
U: From<T>,
const: unstable · source§fn into(self) -> U
Calls U::from(self)
.
diff --git a/docs/v1.1.0-alpha.6/rustdoc/kanidmd_lib/credential/struct.Credential.html b/docs/v1.1.0-alpha.6/rustdoc/kanidmd_lib/credential/struct.Credential.html
index d91e86548..ec45508dc 100644
--- a/docs/v1.1.0-alpha.6/rustdoc/kanidmd_lib/credential/struct.Credential.html
+++ b/docs/v1.1.0-alpha.6/rustdoc/kanidmd_lib/credential/struct.Credential.html
@@ -8,9 +8,9 @@ the auth as the password of B was incorrect. Additionally, while A only needs th
B requires both the password and otp to be valid.
In this way, each Credential provides it’s own password requirements and policy, and requires
some metadata to support this such as it’s source and strength etc.
-Implementations§
source§impl Credential
sourcepub fn try_from_repl_v1(rc: &ReplCredV1) -> Result<(String, Self), ()>
sourcepub fn new_password_only(
policy: &CryptoPolicy,
cleartext: &str
) -> Result<Self, OperationError>
Create a new credential that contains a CredentialType::Password
-sourcepub fn new_generatedpassword_only(
policy: &CryptoPolicy,
cleartext: &str
) -> Result<Self, OperationError>
Create a new credential that contains a CredentialType::GeneratedPassword
-sourcepub fn set_password(
&self,
policy: &CryptoPolicy,
cleartext: &str
) -> Result<Self, OperationError>
Update the state of the Password on this credential, if a password is present. If possible
+
Implementations§
source§impl Credential
sourcepub fn try_from_repl_v1(rc: &ReplCredV1) -> Result<(String, Self), ()>
sourcepub fn new_password_only(
policy: &CryptoPolicy,
cleartext: &str
) -> Result<Self, OperationError>
Create a new credential that contains a CredentialType::Password
+sourcepub fn new_generatedpassword_only(
policy: &CryptoPolicy,
cleartext: &str
) -> Result<Self, OperationError>
Create a new credential that contains a CredentialType::GeneratedPassword
+sourcepub fn set_password(
&self,
policy: &CryptoPolicy,
cleartext: &str
) -> Result<Self, OperationError>
Update the state of the Password on this credential, if a password is present. If possible
this will convert the credential to a PasswordMFA in some cases, or fail in others.
sourcepub fn append_securitykey(
&self,
label: String,
cred: SecurityKey
) -> Result<Self, OperationError>
Extend this credential with another alternate webauthn credential. This is especially
useful for PasswordMfa
where you can have many webauthn credentials and a password
diff --git a/docs/v1.1.0-alpha.6/rustdoc/kanidmd_lib/credential/struct.Password.html b/docs/v1.1.0-alpha.6/rustdoc/kanidmd_lib/credential/struct.Password.html
index f89d352b8..22483c32d 100644
--- a/docs/v1.1.0-alpha.6/rustdoc/kanidmd_lib/credential/struct.Password.html
+++ b/docs/v1.1.0-alpha.6/rustdoc/kanidmd_lib/credential/struct.Password.html
@@ -1,6 +1,6 @@
-
Password in kanidmd_lib::credential - Rust Struct kanidmd_lib::credential::Password
pub struct Password { /* private fields */ }
Implementations§
§impl Password
pub fn new(
policy: &CryptoPolicy,
cleartext: &str
) -> Result<Password, OperationError>
pub fn verify(&self, cleartext: &str) -> Result<bool, OperationError>
pub fn to_dbpasswordv1(&self) -> DbPasswordV1
pub fn to_repl_v1(&self) -> ReplPasswordV1
pub fn requires_upgrade(&self) -> bool
Trait Implementations§
§impl PartialEq<Password> for Password
§fn eq(&self, other: &Password) -> bool
This method tests for self
and other
values to be equal, and is used
+Password in kanidmd_lib::credential - Rust Struct kanidmd_lib::credential::Password
source · pub struct Password { /* private fields */ }
Implementations§
source§impl Password
sourcepub fn new(
policy: &CryptoPolicy,
cleartext: &str
) -> Result<Password, OperationError>
sourcepub fn verify(&self, cleartext: &str) -> Result<bool, OperationError>
sourcepub fn to_dbpasswordv1(&self) -> DbPasswordV1
sourcepub fn to_repl_v1(&self) -> ReplPasswordV1
sourcepub fn requires_upgrade(&self) -> bool
Trait Implementations§
source§impl PartialEq<Password> for Password
§impl TryFrom<DbPasswordV1> for Password
§impl StructuralPartialEq for Password
Auto Trait Implementations§
§impl RefUnwindSafe for Password
§impl Send for Password
§impl Sync for Password
§impl Unpin for Password
§impl UnwindSafe for Password
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
source§impl TryFrom<&ReplPasswordV1> for Password
source§impl TryFrom<DbPasswordV1> for Password
source§impl StructuralPartialEq for Password
Auto Trait Implementations§
§impl RefUnwindSafe for Password
§impl Send for Password
§impl Sync for Password
§impl Unpin for Password
§impl UnwindSafe for Password
Blanket Implementations§
§impl<'a, T> AsTaggedExplicit<'a> for Twhere
T: 'a,
§impl<'a, T> AsTaggedImplicit<'a> for Twhere
T: 'a,
source§impl<T> Instrument for T
source§fn instrument(self, span: Span) -> Instrumented<Self>
source§fn in_current_span(self) -> Instrumented<Self>