TokenReviewStatus class

TokenReviewStatus is the result of the token authentication request.

Constructors

TokenReviewStatus({List<String>? audiences, bool? authenticated, String? error, UserInfo? user})
Default constructor.
const
TokenReviewStatus.fromJson(Map<String, dynamic> json)
Creates a TokenReviewStatus from JSON data.
factory

Properties

audiences List<String>?
Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server.
final
authenticated bool?
Authenticated indicates that the token was associated with a known user.
final
error String?
Error indicates that the token couldn't be checked.
final
hashCode int
The hash code for this object.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
user UserInfo?
User is the UserInfo associated with the provided token.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, Object>
Converts a TokenReviewStatus instance to JSON data.
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited