pub struct IdentityChallenge {
pub message_type: String,
pub nonce: String,
pub timestamp: String,
pub origin: String,
pub realm: Option<String>,
}Expand description
Server → Agent: a cryptographic challenge (Section 15.2).
The signing payload for the proof is the JCS-canonicalized (RFC 8785)
UTF-8 byte representation of this object — no framing, prefix, or
envelope. Use crate::handshake::canonical_challenge_bytes.
Fields§
§message_type: StringMUST be the literal string openagent-challenge-v1.
nonce: String64-character lowercase hexadecimal string (32 CSPRNG bytes).
timestamp: StringISO 8601 UTC timestamp, Z suffix, seconds precision.
origin: StringServer origin per RFC 6454: scheme://host[:port].
realm: Option<String>Optional protection-space identifier. Omitted entirely when absent.
Implementations§
Trait Implementations§
Source§impl Clone for IdentityChallenge
impl Clone for IdentityChallenge
Source§impl Debug for IdentityChallenge
impl Debug for IdentityChallenge
Source§impl<'de> Deserialize<'de> for IdentityChallenge
impl<'de> Deserialize<'de> for IdentityChallenge
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>,
Deserialize this value from the given Serde deserializer. Read more
impl Eq for IdentityChallenge
Source§impl PartialEq for IdentityChallenge
impl PartialEq for IdentityChallenge
Source§impl Serialize for IdentityChallenge
impl Serialize for IdentityChallenge
impl StructuralPartialEq for IdentityChallenge
Auto Trait Implementations§
impl Freeze for IdentityChallenge
impl RefUnwindSafe for IdentityChallenge
impl Send for IdentityChallenge
impl Sync for IdentityChallenge
impl Unpin for IdentityChallenge
impl UnsafeUnpin for IdentityChallenge
impl UnwindSafe for IdentityChallenge
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