Class V1TokenReviewStatus
java.lang.Object
io.kubernetes.client.openapi.models.V1TokenReviewStatus
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-02-12T21:15:49.397498Z[Etc/UTC]",
comments="Generator version: 7.6.0")
public class V1TokenReviewStatus
extends Object
TokenReviewStatus is the result of the token authentication request.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAudiencesItem
(String audiencesItem) authenticated
(Boolean authenticated) boolean
static V1TokenReviewStatus
Create an instance of V1TokenReviewStatus given an JSON stringAudiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.Authenticated indicates that the token was associated with a known user.getError()
Error indicates that the token couldn't be checkedgetUser()
Get userint
hashCode()
void
setAudiences
(List<String> audiences) void
setAuthenticated
(Boolean authenticated) void
void
setUser
(V1UserInfo user) toJson()
Convert an instance of V1TokenReviewStatus to an JSON stringtoString()
user
(V1UserInfo user) static void
validateJsonElement
(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_AUDIENCES
- See Also:
-
SERIALIZED_NAME_AUTHENTICATED
- See Also:
-
SERIALIZED_NAME_ERROR
- See Also:
-
SERIALIZED_NAME_USER
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1TokenReviewStatus
public V1TokenReviewStatus()
-
-
Method Details
-
audiences
-
addAudiencesItem
-
getAudiences
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.- Returns:
- audiences
-
setAudiences
-
authenticated
-
getAuthenticated
Authenticated indicates that the token was associated with a known user.- Returns:
- authenticated
-
setAuthenticated
-
error
-
getError
Error indicates that the token couldn't be checked- Returns:
- error
-
setError
-
user
-
getUser
Get user- Returns:
- user
-
setUser
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement
- JSON Element- Throws:
IOException
- if the JSON Element is invalid with respect to V1TokenReviewStatus
-
fromJson
Create an instance of V1TokenReviewStatus given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1TokenReviewStatus
- Throws:
IOException
- if the JSON string is invalid with respect to V1TokenReviewStatus
-
toJson
Convert an instance of V1TokenReviewStatus to an JSON string- Returns:
- JSON string
-