Class TokenRequestSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.authentication.TokenRequestSpec
-
- All Implemented Interfaces:
Editable<TokenRequestSpecBuilder>,KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class TokenRequestSpec extends Object implements Editable<TokenRequestSpecBuilder>, KubernetesResource
TokenRequestSpec contains client provided parameters of a token request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TokenRequestSpec()No args constructor for use in serializationTokenRequestSpec(Map<String,List<String>> attestations, List<String> audiences, BoundObjectReference boundObjectRef, Long expirationSeconds)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenRequestSpecBuilderedit()Map<String,Object>getAdditionalProperties()Map<String,List<String>>getAttestations()attestations is a map of well-known keys to string-slice values.List<String>getAudiences()audiences are the intendend audiences of the token.BoundObjectReferencegetBoundObjectRef()TokenRequestSpec contains client provided parameters of a token request.LonggetExpirationSeconds()expirationSeconds is the requested duration of validity of the request.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAttestations(Map<String,List<String>> attestations)attestations is a map of well-known keys to string-slice values.voidsetAudiences(List<String> audiences)audiences are the intendend audiences of the token.voidsetBoundObjectRef(BoundObjectReference boundObjectRef)TokenRequestSpec contains client provided parameters of a token request.voidsetExpirationSeconds(Long expirationSeconds)expirationSeconds is the requested duration of validity of the request.TokenRequestSpecBuildertoBuilder()
-
-
-
Method Detail
-
getAttestations
public Map<String,List<String>> getAttestations()
attestations is a map of well-known keys to string-slice values. The values for each key have a specific semantic meaning, which is documented on the key definition. Requesters of tokens may ask the Kubernetes API Server to attest to certain claims. The API Server may perform authorization checks depending on the key of this map.
-
setAttestations
public void setAttestations(Map<String,List<String>> attestations)
attestations is a map of well-known keys to string-slice values. The values for each key have a specific semantic meaning, which is documented on the key definition. Requesters of tokens may ask the Kubernetes API Server to attest to certain claims. The API Server may perform authorization checks depending on the key of this map.
-
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.
-
setAudiences
public void setAudiences(List<String> audiences)
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.
-
getBoundObjectRef
public BoundObjectReference getBoundObjectRef()
TokenRequestSpec contains client provided parameters of a token request.
-
setBoundObjectRef
public void setBoundObjectRef(BoundObjectReference boundObjectRef)
TokenRequestSpec contains client provided parameters of a token request.
-
getExpirationSeconds
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.
-
setExpirationSeconds
public void setExpirationSeconds(Long expirationSeconds)
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.
-
edit
public TokenRequestSpecBuilder edit()
- Specified by:
editin interfaceEditable<TokenRequestSpecBuilder>
-
toBuilder
public TokenRequestSpecBuilder toBuilder()
-
-