Class V1TokenReviewStatus

java.lang.Object
io.micronaut.kubernetes.client.openapi.model.V1TokenReviewStatus

@Generated("io.micronaut.openapi.generator.JavaMicronautClientCodegen") public class V1TokenReviewStatus extends Object
TokenReviewStatus is the result of the token authentication request.
  • Field Details

  • Constructor Details

    • V1TokenReviewStatus

      public V1TokenReviewStatus()
  • Method Details

    • getAudiences

      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:
      the audiences property value
    • setAudiences

      public void setAudiences(List<String> audiences)
      Set the audiences property value
    • audiences

      public V1TokenReviewStatus audiences(List<String> audiences)
      Set audiences in a chainable fashion.
      Returns:
      The same instance of V1TokenReviewStatus for chaining.
    • addaudiencesItem

      public V1TokenReviewStatus addaudiencesItem(String audiencesItem)
      Add an item to the audiences property in a chainable fashion.
      Returns:
      The same instance of V1TokenReviewStatus for chaining.
    • getAuthenticated

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

      public void setAuthenticated(Boolean authenticated)
      Set the authenticated property value
    • authenticated

      public V1TokenReviewStatus authenticated(Boolean authenticated)
      Set authenticated in a chainable fashion.
      Returns:
      The same instance of V1TokenReviewStatus for chaining.
    • getError

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

      public void setError(String error)
      Set the error property value
    • error

      public V1TokenReviewStatus error(String error)
      Set error in a chainable fashion.
      Returns:
      The same instance of V1TokenReviewStatus for chaining.
    • getUser

      public V1UserInfo getUser()
      Returns:
      the user property value
    • setUser

      public void setUser(V1UserInfo user)
      Set the user property value
    • user

      public V1TokenReviewStatus user(V1UserInfo user)
      Set user in a chainable fashion.
      Returns:
      The same instance of V1TokenReviewStatus for chaining.
    • 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