Class V1TokenRequestSpec

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

@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2023-06-18T15:05:57.863601Z[Etc/UTC]") public class V1TokenRequestSpec extends Object
TokenRequestSpec contains client provided parameters of a token request.
  • Field Details

  • Constructor Details

    • V1TokenRequestSpec

      public V1TokenRequestSpec()
  • Method Details

    • audiences

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

      public V1TokenRequestSpec addAudiencesItem(String audiencesItem)
    • getAudiences

      public List<String> getAudiences()
      Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.
      Returns:
      audiences
    • setAudiences

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

      public V1TokenRequestSpec boundObjectRef(V1BoundObjectReference boundObjectRef)
    • getBoundObjectRef

      @Nullable public V1BoundObjectReference getBoundObjectRef()
      Get boundObjectRef
      Returns:
      boundObjectRef
    • setBoundObjectRef

      public void setBoundObjectRef(V1BoundObjectReference boundObjectRef)
    • expirationSeconds

      public V1TokenRequestSpec expirationSeconds(Long expirationSeconds)
    • getExpirationSeconds

      @Nullable public Long getExpirationSeconds()
      ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.
      Returns:
      expirationSeconds
    • setExpirationSeconds

      public void setExpirationSeconds(Long expirationSeconds)
    • 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