Record Class FederatedLogin
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.application.social.FederatedLogin
- Record Components:
account- the local account, whose identifier becomes thesubof the issued tokens.identity- the link between the account and the provider's identity, as stored.outcome- how the account was found.
public record FederatedLogin(UserAccount account, FederatedIdentity identity, FederatedLoginOutcome outcome)
extends Record
The account a sign-in with an external provider resolved to.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final UserAccountThe field for theaccountrecord component.private final FederatedIdentityThe field for theidentityrecord component.private final FederatedLoginOutcomeThe field for theoutcomerecord component. -
Constructor Summary
ConstructorsConstructorDescriptionFederatedLogin(UserAccount account, FederatedIdentity identity, FederatedLoginOutcome outcome) Creates an instance of aFederatedLoginrecord class. -
Method Summary
Modifier and TypeMethodDescriptionaccount()Returns the value of theaccountrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.identity()Returns the value of theidentityrecord component.outcome()Returns the value of theoutcomerecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
FederatedLogin
public FederatedLogin(UserAccount account, FederatedIdentity identity, FederatedLoginOutcome outcome) Creates an instance of aFederatedLoginrecord class.
-
-
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). -
account
Returns the value of theaccountrecord component.- Returns:
- the value of the
accountrecord component
-
identity
Returns the value of theidentityrecord component.- Returns:
- the value of the
identityrecord component
-
outcome
Returns the value of theoutcomerecord component.- Returns:
- the value of the
outcomerecord component
-