Record Class SessionUserResponse

java.lang.Object
java.lang.Record
com.irurueta.authserver.bff.api.web.v1.generated.model.SessionUserResponse
Record Components:
subject - Identifier (OpenID Connect subject) of the signed-in user.
name - Display name of the user, when the ID token carries one.
email - Email address of the user, when the ID token carries one.
roles - Roles granted to the user (empty when the ID token carries none), to adapt the UI.

@Generated(value="org.openapitools.codegen.languages.SpringCodegen", date="2026-11-08T20:28:39.749895604Z[Etc/UTC]", comments="Generator version: 7.27.0") public record SessionUserResponse(@NotNull String subject, String name, String email, @NotNull List<String> roles) extends Record
The user signed in to the BFF session
  • Field Details

    • subject

      @NotNull private final @NotNull String subject
      The field for the subject record component.
    • name

      @Nullable private final String name
      The field for the name record component.
    • email

      @Nullable private final String email
      The field for the email record component.
    • roles

      @NotNull private final @NotNull List<String> roles
      The field for the roles record component.
  • Constructor Details

    • SessionUserResponse

      public SessionUserResponse(@NotNull @NotNull String subject, @Nullable String name, @Nullable String email, @NotNull @NotNull List<String> roles)
      Creates an instance of a SessionUserResponse record class.
      Parameters:
      subject - the value for the subject record component
      name - the value for the name record component
      email - the value for the email record component
      roles - the value for the roles record component
  • Method Details

    • toString

      public final String 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.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • 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.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      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 with Objects::equals(Object,Object).
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • subject

      @NotNull public @NotNull String subject()
      Returns the value of the subject record component.
      Returns:
      the value of the subject record component
    • name

      @Nullable public String name()
      Returns the value of the name record component.
      Returns:
      the value of the name record component
    • email

      @Nullable public String email()
      Returns the value of the email record component.
      Returns:
      the value of the email record component
    • roles

      @NotNull public @NotNull List<String> roles()
      Returns the value of the roles record component.
      Returns:
      the value of the roles record component