Class TokenReviewStatus

  • All Implemented Interfaces:
    com.marcnuri.yakc.model.Model

    public class TokenReviewStatus
    extends java.lang.Object
    implements com.marcnuri.yakc.model.Model
    TokenReviewStatus is the result of the token authentication request.
    • Constructor Summary

      Constructors 
      Constructor Description
      TokenReviewStatus()  
      TokenReviewStatus​(java.util.List<java.lang.String> audiences, java.lang.Boolean authenticated, java.lang.String error, UserInfo user)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static TokenReviewStatus.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.util.List<java.lang.String> getAudiences()
      Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.
      java.lang.Boolean getAuthenticated()
      Authenticated indicates that the token was associated with a known user.
      java.lang.String getError()
      Error indicates that the token couldn't be checked
      UserInfo getUser()  
      int hashCode()  
      void setAudiences​(java.util.List<java.lang.String> audiences)
      Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.
      void setAuthenticated​(java.lang.Boolean authenticated)
      Authenticated indicates that the token was associated with a known user.
      void setError​(java.lang.String error)
      Error indicates that the token couldn't be checked
      void setUser​(UserInfo user)  
      TokenReviewStatus.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

        clone, finalize, getClass, notify, notifyAll, wait, wait, wait
    • Constructor Detail

      • TokenReviewStatus

        public TokenReviewStatus​(java.util.List<java.lang.String> audiences,
                                 java.lang.Boolean authenticated,
                                 java.lang.String error,
                                 UserInfo user)
      • TokenReviewStatus

        public TokenReviewStatus()
    • Method Detail

      • getAudiences

        public java.util.List<java.lang.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.
      • getAuthenticated

        public java.lang.Boolean getAuthenticated()
        Authenticated indicates that the token was associated with a known user.
      • getError

        public java.lang.String getError()
        Error indicates that the token couldn't be checked
      • setAudiences

        public void setAudiences​(java.util.List<java.lang.String> audiences)
        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.
      • setAuthenticated

        public void setAuthenticated​(java.lang.Boolean authenticated)
        Authenticated indicates that the token was associated with a known user.
      • setError

        public void setError​(java.lang.String error)
        Error indicates that the token couldn't be checked
      • setUser

        public void setUser​(UserInfo user)
      • equals

        public boolean equals​(java.lang.Object o)
        Overrides:
        equals in class java.lang.Object
      • canEqual

        protected boolean canEqual​(java.lang.Object other)
      • hashCode

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

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object