Package net.stickycode.kuuty.model.v18
Class IoK8sApiAuthenticationV1TokenReviewStatus
- java.lang.Object
-
- net.stickycode.kuuty.model.v18.IoK8sApiAuthenticationV1TokenReviewStatus
-
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen", date="2020-11-26T11:01:11.402583+13:00[Pacific/Auckland]") public class IoK8sApiAuthenticationV1TokenReviewStatus extends Object
TokenReviewStatus is the result of the token authentication request.
-
-
Field Summary
Fields Modifier and Type Field Description static StringJSON_PROPERTY_AUDIENCESstatic StringJSON_PROPERTY_AUTHENTICATEDstatic StringJSON_PROPERTY_ERRORstatic StringJSON_PROPERTY_USER
-
Constructor Summary
Constructors Constructor Description IoK8sApiAuthenticationV1TokenReviewStatus()
-
Method Summary
-
-
-
Field Detail
-
JSON_PROPERTY_AUDIENCES
public static final String JSON_PROPERTY_AUDIENCES
- See Also:
- Constant Field Values
-
JSON_PROPERTY_AUTHENTICATED
public static final String JSON_PROPERTY_AUTHENTICATED
- See Also:
- Constant Field Values
-
JSON_PROPERTY_ERROR
public static final String JSON_PROPERTY_ERROR
- See Also:
- Constant Field Values
-
JSON_PROPERTY_USER
public static final String JSON_PROPERTY_USER
- See Also:
- Constant Field Values
-
-
Method Detail
-
audiences
public IoK8sApiAuthenticationV1TokenReviewStatus audiences(List<String> audiences)
-
addAudiencesItem
public IoK8sApiAuthenticationV1TokenReviewStatus addAudiencesItem(String audiencesItem)
-
getAudiences
@Nullable 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.- Returns:
- audiences
-
authenticated
public IoK8sApiAuthenticationV1TokenReviewStatus authenticated(Boolean authenticated)
-
getAuthenticated
@Nullable public Boolean getAuthenticated()
Authenticated indicates that the token was associated with a known user.- Returns:
- authenticated
-
setAuthenticated
public void setAuthenticated(Boolean authenticated)
-
error
public IoK8sApiAuthenticationV1TokenReviewStatus error(String error)
-
getError
@Nullable public String getError()
Error indicates that the token couldn't be checked- Returns:
- error
-
setError
public void setError(String error)
-
user
public IoK8sApiAuthenticationV1TokenReviewStatus user(IoK8sApiAuthenticationV1UserInfo user)
-
getUser
@Nullable public IoK8sApiAuthenticationV1UserInfo getUser()
Get user- Returns:
- user
-
setUser
public void setUser(IoK8sApiAuthenticationV1UserInfo user)
-
-