pub struct ClientSecretKey(/* private fields */);client-assertion only.Expand description
A registered client_secret_jwt HMAC key that has cleared
MIN_CLIENT_SECRET_JWT_KEY_LENGTH.
A newtype with a private field rather than a bare String on the variant, because a private
field is the only spelling Rust has for “this cannot be reached by a struct literal”, and a
floor a caller can skip by writing AssertionKeys::ClientSecret { secret: "abc".into() } is not
a floor. Deserialization is routed through the same check for the same reason
crate::jwt::PublicJwk’s is: a registration read back out of the host’s store must be held to
what the constructor holds a fresh one to, or the store becomes the way around it.
Implementations§
Trait Implementations§
Source§impl Clone for ClientSecretKey
impl Clone for ClientSecretKey
Source§fn clone(&self) -> ClientSecretKey
fn clone(&self) -> ClientSecretKey
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for ClientSecretKey
Hand-written, for the reason AssertionKeys’s own is: this type exists to sit inside a
registration that gets logged, and a derived one would print the key.
impl Debug for ClientSecretKey
Hand-written, for the reason AssertionKeys’s own is: this type exists to sit inside a
registration that gets logged, and a derived one would print the key.