Class TokenReviewSpec

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

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

      Constructors 
      Constructor Description
      TokenReviewSpec()  
      TokenReviewSpec​(java.util.List<java.lang.String> audiences, java.lang.String token)  
    • Method Summary

      All Methods Static Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      static TokenReviewSpec.Builder builder()  
      protected boolean canEqual​(java.lang.Object other)  
      boolean equals​(java.lang.Object o)  
      java.util.List<java.lang.String> getAudiences()
      Audiences is a list of the identifiers that the resource server presented with the token identifies as.
      java.lang.String getToken()
      Token is the opaque bearer token.
      int hashCode()  
      void setAudiences​(java.util.List<java.lang.String> audiences)
      Audiences is a list of the identifiers that the resource server presented with the token identifies as.
      void setToken​(java.lang.String token)
      Token is the opaque bearer token.
      TokenReviewSpec.Builder toBuilder()  
      java.lang.String toString()  
      • Methods inherited from class java.lang.Object

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

      • TokenReviewSpec

        public TokenReviewSpec​(java.util.List<java.lang.String> audiences,
                               java.lang.String token)
      • TokenReviewSpec

        public TokenReviewSpec()
    • Method Detail

      • getAudiences

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

        public java.lang.String getToken()
        Token is the opaque bearer token.
      • setAudiences

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

        public void setToken​(java.lang.String token)
        Token is the opaque bearer token.
      • 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