Class TokenReviewSpec
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.authentication.v1beta1.TokenReviewSpec
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<TokenReviewSpecBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class TokenReviewSpec extends Object implements io.fabric8.kubernetes.api.builder.Editable<TokenReviewSpecBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
TokenReviewSpec is a description of the token authentication request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TokenReviewSpec()No args constructor for use in serializationTokenReviewSpec(List<String> audiences, String token)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenReviewSpecBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getAudiences()Audiences is a list of the identifiers that the resource server presented with the token identifies as.StringgetToken()Token is the opaque bearer token.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAudiences(List<String> audiences)Audiences is a list of the identifiers that the resource server presented with the token identifies as.voidsetToken(String token)Token is the opaque bearer token.TokenReviewSpecBuildertoBuilder()
-
-
-
Method Detail
-
getAudiences
public List<String> getAudiences()
Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.
-
setAudiences
public void setAudiences(List<String> audiences)
Audiences is a list of the identifiers that the resource server presented with the token identifies as. Audience-aware token authenticators will verify that the token was intended for at least one of the audiences in this list. If no audiences are provided, the audience will default to the audience of the Kubernetes apiserver.
-
getToken
public String getToken()
Token is the opaque bearer token.
-
setToken
public void setToken(String token)
Token is the opaque bearer token.
-
edit
public TokenReviewSpecBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<TokenReviewSpecBuilder>
-
toBuilder
public TokenReviewSpecBuilder toBuilder()
-
-