All Downloads are FREE. Search and download functionalities are using the official Maven repository.

io.k8s.api.authentication.v1.TokenRequestSpec Maven / Gradle / Ivy

There is a newer version: 1.30.4
Show newest version
package io.k8s.api.authentication.v1;

import java.lang.Long;
import java.lang.String;
import java.util.List;

/**
 * TokenRequestSpec contains client provided parameters of a token request.
 */
public class TokenRequestSpec {
  public List audiences;

  public BoundObjectReference boundObjectRef;

  public Long expirationSeconds;

  /**
   * 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.
   */
  public TokenRequestSpec audiences(List audiences) {
    this.audiences = audiences;
    return this;
  }

  public TokenRequestSpec boundObjectRef(BoundObjectReference boundObjectRef) {
    this.boundObjectRef = boundObjectRef;
    return this;
  }

  /**
   * 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.
   */
  public TokenRequestSpec expirationSeconds(Long expirationSeconds) {
    this.expirationSeconds = expirationSeconds;
    return this;
  }

  public static TokenRequestSpec tokenRequestSpec() {
    return new TokenRequestSpec();
  }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy