Record Class AuthInfo
java.lang.Object
java.lang.Record
io.micronaut.kubernetes.client.openapi.config.model.AuthInfo
- Record Components:
clientCertificateData- the PEM-encoded data from a client cert file for TLSclientKeyData- the PEM-encoded data from a client key file for TLStoken- the bearer token for authentication to the kubernetes clusterusername- the username for basic authentication to the kubernetes clusterpassword- the password for basic authentication to the kubernetes clusterexec- the custom exec-based authentication plugin for the kubernetes cluster
public record AuthInfo(@io.micronaut.core.annotation.Nullable byte[] clientCertificateData, @io.micronaut.core.annotation.Nullable byte[] clientKeyData, @Nullable String token, @Nullable String username, @Nullable String password, @Nullable ExecConfig exec)
extends Record
AuthInfo contains information that describes identity information.
-
Constructor Summary
ConstructorsConstructorDescriptionAuthInfo(@io.micronaut.core.annotation.Nullable byte[] clientCertificateData, @io.micronaut.core.annotation.Nullable byte[] clientKeyData, @Nullable String token, @Nullable String username, @Nullable String password, @Nullable ExecConfig exec) Creates an instance of aAuthInforecord 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 ExecConfigexec()Returns the value of theexecrecord component.inthashCode()Returns a hash code value for this object.@Nullable Stringpassword()Returns the value of thepasswordrecord component.@Nullable Stringtoken()Returns the value of thetokenrecord component.toString()Returns a string representation of this record class.@Nullable Stringusername()Returns the value of theusernamerecord component.
-
Constructor Details
-
AuthInfo
public AuthInfo(@Nullable @io.micronaut.core.annotation.Nullable byte[] clientCertificateData, @Nullable @io.micronaut.core.annotation.Nullable byte[] clientKeyData, @Nullable @Nullable String token, @Nullable @Nullable String username, @Nullable @Nullable String password, @Nullable @Nullable ExecConfig exec) Creates an instance of aAuthInforecord class.- Parameters:
clientCertificateData- the value for theclientCertificateDatarecord componentclientKeyData- the value for theclientKeyDatarecord componenttoken- the value for thetokenrecord componentusername- the value for theusernamerecord componentpassword- the value for thepasswordrecord componentexec- the value for theexecrecord 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. -
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
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
username
Returns the value of theusernamerecord component.- Returns:
- the value of the
usernamerecord component
-
password
Returns the value of thepasswordrecord component.- Returns:
- the value of the
passwordrecord component
-
exec
Returns the value of theexecrecord component.- Returns:
- the value of the
execrecord component
-