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
ConstructorsConstructorDescriptionExecCredentialStatus(@NonNull String token, @io.micronaut.core.annotation.Nullable byte[] clientCertificateData, @io.micronaut.core.annotation.Nullable byte[] clientKeyData, @Nullable ZonedDateTime expirationTimestamp) Creates an instance of aExecCredentialStatusrecord class. -
Method Summary
Modifier and TypeMethodDescription@io.micronaut.core.annotation.Nullable byte[]Returns the value of theclientCertificateDatarecord component.@io.micronaut.core.annotation.Nullable byte[]Returns the value of theclientKeyDatarecord component.booleanIndicates whether some other object is "equal to" this one.@Nullable ZonedDateTimeReturns the value of theexpirationTimestamprecord component.inthashCode()Returns a hash code value for this object.@NonNull Stringtoken()Returns the value of thetokenrecord 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 aExecCredentialStatusrecord class.- Parameters:
token- the value for thetokenrecord componentclientCertificateData- the value for theclientCertificateDatarecord componentclientKeyData- the value for theclientKeyDatarecord componentexpirationTimestamp- the value for theexpirationTimestamprecord 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 thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
clientCertificateData
@Nullable public @io.micronaut.core.annotation.Nullable byte[] clientCertificateData()Returns the value of theclientCertificateDatarecord component.- Returns:
- the value of the
clientCertificateDatarecord component
-
clientKeyData
@Nullable public @io.micronaut.core.annotation.Nullable byte[] clientKeyData()Returns the value of theclientKeyDatarecord component.- Returns:
- the value of the
clientKeyDatarecord component
-
expirationTimestamp
Returns the value of theexpirationTimestamprecord component.- Returns:
- the value of the
expirationTimestamprecord component
-