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(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()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)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()
-
-
-
Constructor Detail
-
TokenRequestSpec
public TokenRequestSpec()
No args constructor for use in serialization
-
TokenRequestSpec
public TokenRequestSpec(List<String> audiences, BoundObjectReference boundObjectRef, Long expirationSeconds)
-
-
Method Detail
-
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()
-
-