pub enum IdentityToken {
None,
Anonymous(AnonymousIdentityToken),
UserName(UserNameIdentityToken),
X509(X509IdentityToken),
IssuedToken(IssuedIdentityToken),
Invalid(ExtensionObject),
}Expand description
Identity token representation on the server, decoded from the client.
Variants§
None
No identity token specified at all.
Anonymous(AnonymousIdentityToken)
Identity token for anonymous access.
UserName(UserNameIdentityToken)
Identity token for user name and password.
X509(X509IdentityToken)
Identity token for X.509 certificate.
IssuedToken(IssuedIdentityToken)
Identity token for an issued identity token, i.e. OAuth.
Invalid(ExtensionObject)
Invalid identity token with some unknown structure.
Implementations§
Source§impl IdentityToken
impl IdentityToken
Sourcepub fn new(o: ExtensionObject) -> IdentityToken
pub fn new(o: ExtensionObject) -> IdentityToken
Decode an identity token from an extension object received from the client.
Returns Invalid if decoding failed.
Auto Trait Implementations§
impl Freeze for IdentityToken
impl !RefUnwindSafe for IdentityToken
impl Send for IdentityToken
impl Sync for IdentityToken
impl Unpin for IdentityToken
impl UnsafeUnpin for IdentityToken
impl !UnwindSafe for IdentityToken
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more