Class V1TokenRequestSpec
TokenRequestSpec contains client provided parameters of a token request.
Inheritance
V1TokenRequestSpec
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
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
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
View Source
EqualityContract
Declaration
protected virtual Type EqualityContract { get; }
Property Value
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
Methods
View Source
Equals(object?)
Declaration
public override bool Equals(object? obj)
Parameters
| Type |
Name |
Description |
| object |
obj |
|
Returns
Overrides
View Source
Equals(V1TokenRequestSpec?)
Declaration
public virtual bool Equals(V1TokenRequestSpec? other)
Parameters
Returns
View Source
GetHashCode()
Declaration
public override int GetHashCode()
Returns
Overrides
View Source
PrintMembers(StringBuilder)
Declaration
protected virtual bool PrintMembers(StringBuilder builder)
Parameters
Returns
View Source
ToString()
Declaration
public override string ToString()
Returns
Overrides
Operators
View Source
operator ==(V1TokenRequestSpec?, V1TokenRequestSpec?)
Declaration
public static bool operator ==(V1TokenRequestSpec? left, V1TokenRequestSpec? right)
Parameters
Returns
View Source
operator !=(V1TokenRequestSpec?, V1TokenRequestSpec?)
Declaration
public static bool operator !=(V1TokenRequestSpec? left, V1TokenRequestSpec? right)
Parameters
Returns
Implements