Class TokenReviewStatus
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.authentication.v1.TokenReviewStatus
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class TokenReviewStatus extends java.lang.Object implements com.marcnuri.yakc.model.Model
TokenReviewStatus is the result of the token authentication request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TokenReviewStatus.Builder
-
Constructor Summary
Constructors Constructor Description TokenReviewStatus()
TokenReviewStatus(java.util.List<java.lang.String> audiences, java.lang.Boolean authenticated, java.lang.String error, UserInfo user)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TokenReviewStatus.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.List<java.lang.String>
getAudiences()
Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.java.lang.Boolean
getAuthenticated()
Authenticated indicates that the token was associated with a known user.java.lang.String
getError()
Error indicates that the token couldn't be checkedUserInfo
getUser()
int
hashCode()
void
setAudiences(java.util.List<java.lang.String> audiences)
Audiences are audience identifiers chosen by the authenticator that are compatible with both the TokenReview and token.void
setAuthenticated(java.lang.Boolean authenticated)
Authenticated indicates that the token was associated with a known user.void
setError(java.lang.String error)
Error indicates that the token couldn't be checkedvoid
setUser(UserInfo user)
TokenReviewStatus.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
TokenReviewStatus
public TokenReviewStatus(java.util.List<java.lang.String> audiences, java.lang.Boolean authenticated, java.lang.String error, UserInfo user)
-
TokenReviewStatus
public TokenReviewStatus()
-
-
Method Detail
-
builder
public static TokenReviewStatus.Builder builder()
-
toBuilder
public TokenReviewStatus.Builder toBuilder()
-
getAudiences
public java.util.List<java.lang.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.
-
getAuthenticated
public java.lang.Boolean getAuthenticated()
Authenticated indicates that the token was associated with a known user.
-
getError
public java.lang.String getError()
Error indicates that the token couldn't be checked
-
getUser
public UserInfo getUser()
-
setAudiences
public void setAudiences(java.util.List<java.lang.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.
-
setAuthenticated
public void setAuthenticated(java.lang.Boolean authenticated)
Authenticated indicates that the token was associated with a known user.
-
setError
public void setError(java.lang.String error)
Error indicates that the token couldn't be checked
-
setUser
public void setUser(UserInfo user)
-
equals
public boolean equals(java.lang.Object o)
- Overrides:
equals
in classjava.lang.Object
-
canEqual
protected boolean canEqual(java.lang.Object other)
-
hashCode
public int hashCode()
- Overrides:
hashCode
in classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Object
-
-