Class V1TokenRequestSpec
java.lang.Object
io.kubernetes.client.openapi.models.V1TokenRequestSpec
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2024-02-02T17:56:12.287571Z[Etc/UTC]")
public class V1TokenRequestSpec
extends Object
TokenRequestSpec contains client provided parameters of a token request.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddAudiencesItem
(String audiencesItem) boundObjectRef
(V1BoundObjectReference boundObjectRef) boolean
expirationSeconds
(Long expirationSeconds) static V1TokenRequestSpec
Create an instance of V1TokenRequestSpec given an JSON stringAudiences are the intendend audiences of the token.Get boundObjectRefExpirationSeconds is the requested duration of validity of the request.int
hashCode()
void
setAudiences
(List<String> audiences) void
setBoundObjectRef
(V1BoundObjectReference boundObjectRef) void
setExpirationSeconds
(Long expirationSeconds) toJson()
Convert an instance of V1TokenRequestSpec to an JSON stringtoString()
static void
validateJsonObject
(com.google.gson.JsonObject jsonObj) Validates the JSON Object and throws an exception if issues found
-
Field Details
-
SERIALIZED_NAME_AUDIENCES
- See Also:
-
SERIALIZED_NAME_BOUND_OBJECT_REF
- See Also:
-
SERIALIZED_NAME_EXPIRATION_SECONDS
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
V1TokenRequestSpec
public V1TokenRequestSpec()
-
-
Method Details
-
audiences
-
addAudiencesItem
-
getAudiences
Audiences are the intendend audiences of the token. A recipient of a token must identify themself with an identifier in the list of audiences of the token, and otherwise should reject the token. A token issued for multiple audiences may be used to authenticate against any of the audiences listed but implies a high degree of trust between the target audiences.- Returns:
- audiences
-
setAudiences
-
boundObjectRef
-
getBoundObjectRef
Get boundObjectRef- Returns:
- boundObjectRef
-
setBoundObjectRef
-
expirationSeconds
-
getExpirationSeconds
ExpirationSeconds is the requested duration of validity of the request. The token issuer may return a token with a different validity duration so a client needs to check the 'expiration' field in a response.- Returns:
- expirationSeconds
-
setExpirationSeconds
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonObject
Validates the JSON Object and throws an exception if issues found- Parameters:
jsonObj
- JSON Object- Throws:
IOException
- if the JSON Object is invalid with respect to V1TokenRequestSpec
-
fromJson
Create an instance of V1TokenRequestSpec given an JSON string- Parameters:
jsonString
- JSON string- Returns:
- An instance of V1TokenRequestSpec
- Throws:
IOException
- if the JSON string is invalid with respect to V1TokenRequestSpec
-
toJson
Convert an instance of V1TokenRequestSpec to an JSON string- Returns:
- JSON string
-