Class TokenReviewStatus
- java.lang.Object
-
- io.fabric8.kubernetes.api.model.authentication.TokenReviewStatus
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<TokenReviewStatusBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class TokenReviewStatus extends Object implements io.fabric8.kubernetes.api.builder.Editable<TokenReviewStatusBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
TokenReviewStatus is the result of the token authentication request.- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description TokenReviewStatus()No args constructor for use in serializationTokenReviewStatus(List<String> audiences, Boolean authenticated, String error, UserInfo user)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description TokenReviewStatusBuilderedit()Map<String,Object>getAdditionalProperties()List<String>getAudiences()Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.BooleangetAuthenticated()Authenticated indicates that the token was associated with a known user.StringgetError()Error indicates that the token couldn't be checkedUserInfogetUser()TokenReviewStatus is the result of the token authentication request.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAudiences(List<String> audiences)Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.voidsetAuthenticated(Boolean authenticated)Authenticated indicates that the token was associated with a known user.voidsetError(String error)Error indicates that the token couldn't be checkedvoidsetUser(UserInfo user)TokenReviewStatus is the result of the token authentication request.TokenReviewStatusBuildertoBuilder()
-
-
-
Method Detail
-
getAudiences
public List<String> getAudiences()
Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server.
-
setAudiences
public void setAudiences(List<String> audiences)
Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token. An identifier is any identifier in the intersection of the TokenReviewSpec audiences and the token's audiences. A client of the TokenReview API that sets the spec.audiences field should validate that a compatible audience identifier is returned in the status.audiences field to ensure that the TokenReview server is audience aware. If a TokenReview returns an empty status.audience field where status.authenticated is "true", the token is valid against the audience of the Kubernetes API server.
-
getAuthenticated
public Boolean getAuthenticated()
Authenticated indicates that the token was associated with a known user.
-
setAuthenticated
public void setAuthenticated(Boolean authenticated)
Authenticated indicates that the token was associated with a known user.
-
getError
public String getError()
Error indicates that the token couldn't be checked
-
setError
public void setError(String error)
Error indicates that the token couldn't be checked
-
getUser
public UserInfo getUser()
TokenReviewStatus is the result of the token authentication request.
-
setUser
public void setUser(UserInfo user)
TokenReviewStatus is the result of the token authentication request.
-
edit
public TokenReviewStatusBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<TokenReviewStatusBuilder>
-
toBuilder
public TokenReviewStatusBuilder toBuilder()
-
-