Struct k8s_openapi::api::authentication::v1::TokenRequestSpec
source · pub struct TokenRequestSpec {
pub audiences: Vec<String>,
pub bound_object_ref: Option<BoundObjectReference>,
pub expiration_seconds: Option<i64>,
}
Expand description
TokenRequestSpec contains client provided parameters of a token request.
Fields§
§audiences: Vec<String>
Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.
bound_object_ref: Option<BoundObjectReference>
BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server’s TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation.
expiration_seconds: Option<i64>
ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the ‘expiration’ field in a response.
Trait Implementations§
source§impl Clone for TokenRequestSpec
impl Clone for TokenRequestSpec
source§fn clone(&self) -> TokenRequestSpec
fn clone(&self) -> TokenRequestSpec
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moresource§impl Debug for TokenRequestSpec
impl Debug for TokenRequestSpec
source§impl DeepMerge for TokenRequestSpec
impl DeepMerge for TokenRequestSpec
source§fn merge_from(&mut self, other: Self)
fn merge_from(&mut self, other: Self)
other
into self
.source§impl Default for TokenRequestSpec
impl Default for TokenRequestSpec
source§fn default() -> TokenRequestSpec
fn default() -> TokenRequestSpec
source§impl<'de> Deserialize<'de> for TokenRequestSpec
impl<'de> Deserialize<'de> for TokenRequestSpec
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 PartialEq for TokenRequestSpec
impl PartialEq for TokenRequestSpec
source§impl Serialize for TokenRequestSpec
impl Serialize for TokenRequestSpec
impl StructuralPartialEq for TokenRequestSpec
Auto Trait Implementations§
impl Freeze for TokenRequestSpec
impl RefUnwindSafe for TokenRequestSpec
impl Send for TokenRequestSpec
impl Sync for TokenRequestSpec
impl Unpin for TokenRequestSpec
impl UnwindSafe for TokenRequestSpec
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§unsafe fn clone_to_uninit(&self, dst: *mut T)
unsafe fn clone_to_uninit(&self, dst: *mut T)
clone_to_uninit
)