[][src]Struct k8s_openapi::api::authentication::v1::TokenRequestSpec

pub struct TokenRequestSpec {
    pub audiences: Vec<String>,
    pub bound_object_ref: Option<BoundObjectReference>,
    pub expiration_seconds: Option<i64>,
}

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 identitfy 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

impl Clone for TokenRequestSpec[src]

impl Debug for TokenRequestSpec[src]

impl Default for TokenRequestSpec[src]

impl<'de> Deserialize<'de> for TokenRequestSpec[src]

impl PartialEq<TokenRequestSpec> for TokenRequestSpec[src]

impl Serialize for TokenRequestSpec[src]

impl StructuralPartialEq for TokenRequestSpec[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> DeserializeOwned for T where
    T: for<'de> Deserialize<'de>, 
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.