Class TokenRequestSpecPatch
- java.lang.Object
-
- com.pulumi.kubernetes.authentication.v1.outputs.TokenRequestSpecPatch
-
public final class TokenRequestSpecPatch extends java.lang.Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TokenRequestSpecPatch.Builder
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<java.lang.String>
audiences()
java.util.Optional<BoundObjectReferencePatch>
boundObjectRef()
static TokenRequestSpecPatch.Builder
builder()
static TokenRequestSpecPatch.Builder
builder(TokenRequestSpecPatch defaults)
java.util.Optional<java.lang.Integer>
expirationSeconds()
-
-
-
Method Detail
-
audiences
public java.util.List<java.lang.String> audiences()
- Returns:
- Audiences are the intendend audiences of the token. A recipient of a token must identitfy 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.
-
boundObjectRef
public java.util.Optional<BoundObjectReferencePatch> boundObjectRef()
- Returns:
- BoundObjectRef is a reference to an object that the token will be bound to. The token will only be valid for as long as the bound object exists. NOTE: The API server's TokenReview endpoint will validate the BoundObjectRef, but other audiences may not. Keep ExpirationSeconds small if you want prompt revocation.
-
expirationSeconds
public java.util.Optional<java.lang.Integer> expirationSeconds()
- Returns:
- 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.
-
builder
public static TokenRequestSpecPatch.Builder builder()
-
builder
public static TokenRequestSpecPatch.Builder builder(TokenRequestSpecPatch defaults)
-
-