Record Class LoginResult
java.lang.Object
java.lang.Record
com.inductiveautomation.ignition.common.auth.messages.LoginResult
- Record Components:
user
- The validated user information.sessionId
- The internal ID used as a stable identifier.secret
- Any arbitrary piece of "secret" info to piggyback on the result, such as an auth token.
public record LoginResult(@Nullable AuthenticatedUser user, String sessionId, @Nullable String secret)
extends Record
Basic nominal tuple used as a return value for Designer and Client authentication.
-
Constructor Summary
ConstructorsConstructorDescriptionLoginResult
(AuthenticatedUser user, String sessionId, String secret) Creates an instance of aLoginResult
record class. -
Method Summary
Modifier and TypeMethodDescriptionfinal boolean
Indicates whether some other object is "equal to" this one.final int
hashCode()
Returns a hash code value for this object.secret()
Returns the value of thesecret
record component.Returns the value of thesessionId
record component.final String
toString()
Returns a string representation of this record class.user()
Returns the value of theuser
record component.
-
Constructor Details
-
Method Details
-
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. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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)
. -
user
Returns the value of theuser
record component.- Returns:
- the value of the
user
record component
-
sessionId
Returns the value of thesessionId
record component.- Returns:
- the value of the
sessionId
record component
-
secret
Returns the value of thesecret
record component.- Returns:
- the value of the
secret
record component
-