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
ConstructorDescriptionAuthInfo
(@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 aAuthInfo
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 ExecConfig
exec()
Returns the value of theexec
record component.int
hashCode()
Returns a hash code value for this object.@Nullable String
password()
Returns the value of thepassword
record component.@Nullable String
token()
Returns the value of thetoken
record component.toString()
Returns a string representation of this record class.@Nullable String
username()
Returns the value of theusername
record 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 aAuthInfo
record class.- Parameters:
clientCertificateData
- the value for theclientCertificateData
record componentclientKeyData
- the value for theclientKeyData
record componenttoken
- the value for thetoken
record componentusername
- the value for theusername
record componentpassword
- the value for thepassword
record componentexec
- the value for theexec
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. -
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
-
token
Returns the value of thetoken
record component.- Returns:
- the value of the
token
record component
-
username
Returns the value of theusername
record component.- Returns:
- the value of the
username
record component
-
password
Returns the value of thepassword
record component.- Returns:
- the value of the
password
record component
-
exec
Returns the value of theexec
record component.- Returns:
- the value of the
exec
record component
-