io.k8s.api.authentication.v1.TokenRequestSpec Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of bl-k8s130 Show documentation
Show all versions of bl-k8s130 Show documentation
Programmatic resource management for Kubernetes
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();
}
}