Class TokenReviewSpec
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.authentication.v1beta1.TokenReviewSpec
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class TokenReviewSpec extends java.lang.Object implements com.marcnuri.yakc.model.Model
TokenReviewSpec is a description of the token authentication request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TokenReviewSpec.Builder
-
Constructor Summary
Constructors Constructor Description TokenReviewSpec()
TokenReviewSpec(java.util.List<java.lang.String> audiences, java.lang.String token)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TokenReviewSpec.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
java.util.List<java.lang.String>
getAudiences()
Audiences is a list of the identifiers that the resource server presented with the token identifies as.java.lang.String
getToken()
Token is the opaque bearer token.int
hashCode()
void
setAudiences(java.util.List<java.lang.String> audiences)
Audiences is a list of the identifiers that the resource server presented with the token identifies as.void
setToken(java.lang.String token)
Token is the opaque bearer token.TokenReviewSpec.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Method Detail
-
builder
public static TokenReviewSpec.Builder builder()
-
toBuilder
public TokenReviewSpec.Builder toBuilder()
-
getAudiences
public java.util.List<java.lang.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.
-
getToken
public java.lang.String getToken()
Token is the opaque bearer token.
-
setAudiences
public void setAudiences(java.util.List<java.lang.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.
-
setToken
public void setToken(java.lang.String token)
Token is the opaque bearer token.
-
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
-
-