Package org.keycloak.services.managers
Record Class AuthenticationManager.AuthResult
java.lang.Object
java.lang.Record
org.keycloak.services.managers.AuthenticationManager.AuthResult
- Enclosing class:
- AuthenticationManager
public static record AuthenticationManager.AuthResult(UserModel user, UserSessionModel session, AccessToken token, ClientModel client)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionAuthResult(UserModel user, UserSessionModel session, AccessToken token, ClientModel client) Creates an instance of aAuthResultrecord class. -
Method Summary
Modifier and TypeMethodDescriptionclient()Returns the value of theclientrecord component.final booleanIndicates whether some other object is "equal to" this one.Deprecated, for removal: This API element is subject to removal in a future version.Deprecated, for removal: This API element is subject to removal in a future version.usesession()instead.getToken()Deprecated, for removal: This API element is subject to removal in a future version.usetoken()instead.getUser()Deprecated, for removal: This API element is subject to removal in a future version.useuser()instead.final inthashCode()Returns a hash code value for this object.session()Returns the value of thesessionrecord component.token()Returns the value of thetokenrecord component.final StringtoString()Returns a string representation of this record class.user()Returns the value of theuserrecord component.
-
Constructor Details
-
AuthResult
Creates an instance of aAuthResultrecord class.- Parameters:
user- the value for theuserrecord componentsession- the value for thesessionrecord componenttoken- the value for thetokenrecord componentclient- the value for theclientrecord component
-
-
Method Details
-
getSession
Deprecated, for removal: This API element is subject to removal in a future version.usesession()instead. -
getUser
Deprecated, for removal: This API element is subject to removal in a future version.useuser()instead. -
getToken
Deprecated, for removal: This API element is subject to removal in a future version.usetoken()instead. -
getClient
Deprecated, for removal: This API element is subject to removal in a future version.useclient()instead. -
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 theuserrecord component.- Returns:
- the value of the
userrecord component
-
session
Returns the value of thesessionrecord component.- Returns:
- the value of the
sessionrecord component
-
token
Returns the value of thetokenrecord component.- Returns:
- the value of the
tokenrecord component
-
client
Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
client()instead.