Class TokenRequest.Builder

  • Enclosing class:
    TokenRequest

    public static class TokenRequest.Builder
    extends java.lang.Object
    • Method Detail

      • audience

        public TokenRequest.Builder audience​(@NonNull
                                             @NonNull java.lang.String audience)
        Audience is the intended audience of the token in "TokenRequestSpec". It will default to the audiences of kube apiserver.
        Returns:
        this.
      • expirationSeconds

        public TokenRequest.Builder expirationSeconds​(java.lang.Number expirationSeconds)
        ExpirationSeconds is the duration of validity of the token in "TokenRequestSpec". It has the same default value of "ExpirationSeconds" in "TokenRequestSpec"
        Returns:
        this.
      • toString

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