Record Class ExecCredentialStatus
java.lang.Object
java.lang.Record
io.micronaut.kubernetes.client.openapi.credential.model.ExecCredentialStatus
- Record Components:
token
- the bearer token used by the client for request authenticationclientCertificateData
- the PEM-encoded client TLS certificates (including intermediates, if any)clientKeyData
- the PEM-encoded private key for the above certificateexpirationTimestamp
- the time when the provided credentials expire
public record ExecCredentialStatus(@NonNull String token, @io.micronaut.core.annotation.Nullable byte[] clientCertificateData, @io.micronaut.core.annotation.Nullable byte[] clientKeyData, @Nullable ZonedDateTime expirationTimestamp)
extends Record
Holds credentials for the transport to use.
-
Constructor Summary
ConstructorDescriptionExecCredentialStatus
(@NonNull String token, @io.micronaut.core.annotation.Nullable byte[] clientCertificateData, @io.micronaut.core.annotation.Nullable byte[] clientKeyData, @Nullable ZonedDateTime expirationTimestamp) Creates an instance of aExecCredentialStatus
record class. -
Method Summary
Modifier and TypeMethodDescription@io.micronaut.core.annotation.Nullable byte[]
Returns the value of theclientCertificateData
record component.@io.micronaut.core.annotation.Nullable byte[]
Returns the value of theclientKeyData
record component.boolean
Indicates whether some other object is "equal to" this one.@Nullable ZonedDateTime
Returns the value of theexpirationTimestamp
record component.int
hashCode()
Returns a hash code value for this object.@NonNull String
token()
Returns the value of thetoken
record component.toString()
Returns a string representation of this record class.
-
Constructor Details
-
ExecCredentialStatus
public ExecCredentialStatus(@NonNull @NonNull String token, @Nullable @io.micronaut.core.annotation.Nullable byte[] clientCertificateData, @Nullable @io.micronaut.core.annotation.Nullable byte[] clientKeyData, @Nullable @Nullable ZonedDateTime expirationTimestamp) Creates an instance of aExecCredentialStatus
record class.- Parameters:
token
- the value for thetoken
record componentclientCertificateData
- the value for theclientCertificateData
record componentclientKeyData
- the value for theclientKeyData
record componentexpirationTimestamp
- the value for theexpirationTimestamp
record component
-
-
Method Details
-
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object)
. -
hashCode
public int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
token
Returns the value of thetoken
record component.- Returns:
- the value of the
token
record component
-
clientCertificateData
@Nullable public @io.micronaut.core.annotation.Nullable byte[] clientCertificateData()Returns the value of theclientCertificateData
record component.- Returns:
- the value of the
clientCertificateData
record component
-
clientKeyData
@Nullable public @io.micronaut.core.annotation.Nullable byte[] clientKeyData()Returns the value of theclientKeyData
record component.- Returns:
- the value of the
clientKeyData
record component
-
expirationTimestamp
Returns the value of theexpirationTimestamp
record component.- Returns:
- the value of the
expirationTimestamp
record component
-