pub struct Authentication(pub Vec<Credential>);Expand description
One (or more since KMIP 1.2) credentials to authenticate with.
In KMIP 1.0 and 1.1 only a single credential was supported. In KMIP 1.2 this was expanded to one or more credentials. In KMIP 2.0 it was specified that if multiple credentials are provided then they must all be satisfied, prior to that it was not specified what the server should require if multiple credentials are supplied.
See KMIP 1.0 section 6.6 Authentication. See KMIP 1.2 section 6.6 Authentication. See KMIP 2.0 section 9.4 Authentication.
Tuple Fields§
§0: Vec<Credential>Implementations§
Source§impl Authentication
impl Authentication
pub fn build(credential: CredentialValue) -> Authentication
pub fn credentials(&self) -> &[Credential]
pub fn username(&self) -> Option<&Username>
pub fn password(&self) -> Option<&Password>
Source§impl Authentication
impl Authentication
pub const TAG: Tag
pub fn fast_scan(scanner: &mut FastScanner<'_>) -> Result<Self, FastScanError>
pub fn fast_scan_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Self, FastScanError>
pub fn fast_scan_opt( scanner: &mut FastScanner<'_>, ) -> Result<Option<Self>, FastScanError>
pub fn fast_scan_opt_with( scanner: &mut FastScanner<'_>, tag: Tag, ) -> Result<Option<Self>, FastScanError>
pub fn format(&self, formatter: &mut Formatter<'_>) -> FormatResult
pub fn format_with( &self, formatter: &mut Formatter<'_>, tag: Tag, ) -> FormatResult
Trait Implementations§
Source§impl Clone for Authentication
impl Clone for Authentication
Source§impl Debug for Authentication
impl Debug for Authentication
impl Eq for Authentication
Source§impl PartialEq for Authentication
impl PartialEq for Authentication
impl StructuralPartialEq for Authentication
Auto Trait Implementations§
impl Forget for Authentication
impl Freeze for Authentication
impl RefUnwindSafe for Authentication
impl Send for Authentication
impl Sync for Authentication
impl Unpin for Authentication
impl UnsafeUnpin for Authentication
impl UnwindSafe for Authentication
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