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.
  • Field Details

  • Constructor Details

    • V1TokenReviewSpec

      public V1TokenReviewSpec()
  • Method Details

    • audiences

      public V1TokenReviewSpec audiences(List<String> audiences)
    • addAudiencesItem

      public V1TokenReviewSpec addAudiencesItem(String audiencesItem)
    • getAudiences

      @Nullable public List<String> 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

      public void setAudiences(List<String> audiences)
    • token

      public V1TokenReviewSpec token(String token)
    • getToken

      @Nullable public String getToken()
      Token is the opaque bearer token.
      Returns:
      token
    • setToken

      public void setToken(String token)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonObject

      public static void validateJsonObject(com.google.gson.JsonObject jsonObj) throws IOException
      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

      public static V1TokenReviewSpec fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of V1TokenReviewSpec to an JSON string
      Returns:
      JSON string