Class V1TokenReviewSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1TokenReviewSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1TokenReviewSpec
extends Object
TokenReviewSpec is a description of the token authentication request.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAudiencesItem
(String audiencesItem) boolean
static V1TokenReviewSpec
Create an instance of V1TokenReviewSpec given an JSON stringAudiences is a list of the identifiers that the resource server presented with the token identifies as.getToken()
Token is the opaque bearer token.int
hashCode()
void
setAudiences
(List<String> audiences) void
toJson()
Convert an instance of V1TokenReviewSpec to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_AUDIENCES
- See Also:
-
SERIALIZED_NAME_TOKEN
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1TokenReviewSpec
public V1TokenReviewSpec()
-
-
Method Details
-
audiences
-
addAudiencesItem
-
getAudiences
Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.- Returns:
- audiences
-
setAudiences
-
token
-
getToken
Token is the opaque bearer token.- Returns:
- token
-
setToken
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1TokenReviewSpec
-
fromJson
Create an instance of V1TokenReviewSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1TokenReviewSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1TokenReviewSpec
-
toJson
Convert an instance of V1TokenReviewSpec to an JSON string- Returns:
- JSON string
-