pub struct DeviceCredential {
pub expiration_time: Option<DateTime<Utc>>,
pub public_key: Option<PublicKeyCredential>,
}
Expand description
A server-stored device credential used for authentication.
This type is not used in any activity, and only used as part of another schema.
Fields§
§expiration_time: Option<DateTime<Utc>>
[Optional] The time at which this credential becomes invalid. This credential will be ignored for new client authentication requests after this timestamp; however, it will not be automatically deleted.
public_key: Option<PublicKeyCredential>
A public key used to verify the signature of JSON Web Tokens (JWTs). When adding a new device credential, either via device creation or via modifications, this public key credential may be required to be signed by one of the registry level certificates. More specifically, if the registry contains at least one certificate, any new device credential must be signed by one of the registry certificates. As a result, when the registry contains certificates, only X.509 certificates are accepted as device credentials. However, if the registry does not contain a certificate, self-signed certificates and public keys will be accepted. New device credentials must be different from every registry-level certificate.
Trait Implementations§
Source§impl Clone for DeviceCredential
impl Clone for DeviceCredential
Source§fn clone(&self) -> DeviceCredential
fn clone(&self) -> DeviceCredential
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreSource§impl Debug for DeviceCredential
impl Debug for DeviceCredential
Source§impl Default for DeviceCredential
impl Default for DeviceCredential
Source§fn default() -> DeviceCredential
fn default() -> DeviceCredential
Source§impl<'de> Deserialize<'de> for DeviceCredential
impl<'de> Deserialize<'de> for DeviceCredential
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl Serialize for DeviceCredential
impl Serialize for DeviceCredential
impl Part for DeviceCredential
Auto Trait Implementations§
impl Freeze for DeviceCredential
impl RefUnwindSafe for DeviceCredential
impl Send for DeviceCredential
impl Sync for DeviceCredential
impl Unpin for DeviceCredential
impl UnwindSafe for DeviceCredential
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read more