pub struct TokenPop<'a> {
pub header: &'a str,
pub signature: &'a str,
}Expand description
OCI IAM database-token proof-of-possession material for the token
phase-two message. header is the HTTP-Signatures signing string
(date: …\n(request-target): …\nhost: …) and signature is its base64
RSA-PKCS1v15-SHA256 signature under the token’s bound private key. The two
are written as AUTH_HEADER / AUTH_SIGNATURE and flip the auth mode to
carry TNS_AUTH_MODE_IAM_TOKEN so the server verifies possession against the
token’s embedded public key (reference messages/auth.pyx _write_message,
impl/thin/crypto.pyx get_signature). The crypto (key parse + signing)
lives in the oracledb crate; this sans-I/O codec only frames the result.
Fields§
§header: &'a str§signature: &'a strTrait Implementations§
Auto Trait Implementations§
impl<'a> Freeze for TokenPop<'a>
impl<'a> RefUnwindSafe for TokenPop<'a>
impl<'a> Send for TokenPop<'a>
impl<'a> Sync for TokenPop<'a>
impl<'a> Unpin for TokenPop<'a>
impl<'a> UnsafeUnpin for TokenPop<'a>
impl<'a> UnwindSafe for TokenPop<'a>
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