Class V1TokenReviewStatus

java.lang.Object
io.kubernetes.client.openapi.models.V1TokenReviewStatus

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-18T15:05:57.863601Z[Etc/UTC]") public class V1TokenReviewStatus extends Object
TokenReviewStatus is the result of the token authentication request.
  • Field Details

  • Constructor Details

    • V1TokenReviewStatus

      public V1TokenReviewStatus()
  • Method Details

    • audiences

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

      public V1TokenReviewStatus addAudiencesItem(String audiencesItem)
    • getAudiences

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

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

      public V1TokenReviewStatus authenticated(Boolean authenticated)
    • getAuthenticated

      @Nullable public Boolean getAuthenticated()
      Authenticated indicates that the token was associated with a known user.
      Returns:
      authenticated
    • setAuthenticated

      public void setAuthenticated(Boolean authenticated)
    • error

      public V1TokenReviewStatus error(String error)
    • getError

      @Nullable public String getError()
      Error indicates that the token couldn't be checked
      Returns:
      error
    • setError

      public void setError(String error)
    • user

      public V1TokenReviewStatus user(V1UserInfo user)
    • getUser

      @Nullable public V1UserInfo getUser()
      Get user
      Returns:
      user
    • setUser

      public void setUser(V1UserInfo user)
    • 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