Class TokenRequestSpec
- java.lang.Object
-
- com.marcnuri.yakc.model.io.k8s.api.authentication.v1.TokenRequestSpec
-
- All Implemented Interfaces:
com.marcnuri.yakc.model.Model
public class TokenRequestSpec extends java.lang.Object implements com.marcnuri.yakc.model.Model
TokenRequestSpec contains client provided parameters of a token request.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
TokenRequestSpec.Builder
-
Constructor Summary
Constructors Constructor Description TokenRequestSpec()
TokenRequestSpec(@NonNull java.util.List<java.lang.String> audiences, BoundObjectReference boundObjectRef, java.lang.Number expirationSeconds)
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static TokenRequestSpec.Builder
builder()
protected boolean
canEqual(java.lang.Object other)
boolean
equals(java.lang.Object o)
@NonNull java.util.List<java.lang.String>
getAudiences()
Audiences are the intendend audiences of the token.BoundObjectReference
getBoundObjectRef()
java.lang.Number
getExpirationSeconds()
ExpirationSeconds is the requested duration of validity of the request.int
hashCode()
void
setAudiences(@NonNull java.util.List<java.lang.String> audiences)
Audiences are the intendend audiences of the token.void
setBoundObjectRef(BoundObjectReference boundObjectRef)
void
setExpirationSeconds(java.lang.Number expirationSeconds)
ExpirationSeconds is the requested duration of validity of the request.TokenRequestSpec.Builder
toBuilder()
java.lang.String
toString()
-
-
-
Constructor Detail
-
TokenRequestSpec
public TokenRequestSpec(@NonNull @NonNull java.util.List<java.lang.String> audiences, BoundObjectReference boundObjectRef, java.lang.Number expirationSeconds)
-
TokenRequestSpec
public TokenRequestSpec()
-
-
Method Detail
-
builder
public static TokenRequestSpec.Builder builder()
-
toBuilder
public TokenRequestSpec.Builder toBuilder()
-
getAudiences
@NonNull public @NonNull java.util.List<java.lang.String> 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.
-
getBoundObjectRef
public BoundObjectReference getBoundObjectRef()
-
getExpirationSeconds
public java.lang.Number 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.
-
setAudiences
public void setAudiences(@NonNull @NonNull java.util.List<java.lang.String> audiences)
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.
-
setBoundObjectRef
public void setBoundObjectRef(BoundObjectReference boundObjectRef)
-
setExpirationSeconds
public void setExpirationSeconds(java.lang.Number expirationSeconds)
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.
-
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
-
-