Show / Hide Table of Contents

Class V1TokenRequestSpec

TokenRequestSpec contains client provided parameters of a token request.

Inheritance
object
V1TokenRequestSpec
Implements
IEquatable<V1TokenRequestSpec>
Inherited Members
object.GetType()
object.MemberwiseClone()
object.Equals(object, object)
object.ReferenceEquals(object, object)
Namespace: k8s.Models
Assembly: KubernetesClient.dll
Syntax
public record V1TokenRequestSpec : IEquatable<V1TokenRequestSpec>

Constructors

View Source

V1TokenRequestSpec()

Declaration
public V1TokenRequestSpec()
View Source

V1TokenRequestSpec(V1TokenRequestSpec)

Declaration
protected V1TokenRequestSpec(V1TokenRequestSpec original)
Parameters
Type Name Description
V1TokenRequestSpec original

Properties

View Source

Audiences

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.

Declaration
[JsonPropertyName("audiences")]
public IList<string> Audiences { get; set; }
Property Value
Type Description
IList<string>
View Source

BoundObjectRef

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.

Declaration
[JsonPropertyName("boundObjectRef")]
public V1BoundObjectReference BoundObjectRef { get; set; }
Property Value
Type Description
V1BoundObjectReference
View Source

EqualityContract

Declaration
protected virtual Type EqualityContract { get; }
Property Value
Type Description
Type
View Source

ExpirationSeconds

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.

Declaration
[JsonPropertyName("expirationSeconds")]
public long? ExpirationSeconds { get; set; }
Property Value
Type Description
long?

Methods

View Source

Equals(object?)

Declaration
public override bool Equals(object? obj)
Parameters
Type Name Description
object obj
Returns
Type Description
bool
Overrides
object.Equals(object)
View Source

Equals(V1TokenRequestSpec?)

Declaration
public virtual bool Equals(V1TokenRequestSpec? other)
Parameters
Type Name Description
V1TokenRequestSpec other
Returns
Type Description
bool
View Source

GetHashCode()

Declaration
public override int GetHashCode()
Returns
Type Description
int
Overrides
object.GetHashCode()
View Source

PrintMembers(StringBuilder)

Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Type Name Description
StringBuilder builder
Returns
Type Description
bool
View Source

ToString()

Declaration
public override string ToString()
Returns
Type Description
string
Overrides
object.ToString()

Operators

View Source

operator ==(V1TokenRequestSpec?, V1TokenRequestSpec?)

Declaration
public static bool operator ==(V1TokenRequestSpec? left, V1TokenRequestSpec? right)
Parameters
Type Name Description
V1TokenRequestSpec left
V1TokenRequestSpec right
Returns
Type Description
bool
View Source

operator !=(V1TokenRequestSpec?, V1TokenRequestSpec?)

Declaration
public static bool operator !=(V1TokenRequestSpec? left, V1TokenRequestSpec? right)
Parameters
Type Name Description
V1TokenRequestSpec left
V1TokenRequestSpec right
Returns
Type Description
bool

Implements

IEquatable<T>
  • View Source
In this article
Back to top Generated by DocFX