Record Class ConsentPageModel
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.api.web.consent.ConsentPageModel
- Record Components:
clientId- identifier of the client that asks for access.clientName- human readable name of the client.principalName- name of the signed-in user.state- state of the authorization request, posted back with the decision.scopesToApprove- scopes the user is asked to approve.approvedScopes- scopes the user granted to the client earlier.
public record ConsentPageModel(String clientId, String clientName, String principalName, String state, List<ConsentPageModel.ScopeView> scopesToApprove, List<ConsentPageModel.ScopeView> approvedScopes)
extends Record
View model of the consent page.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic final recordA scope and its description. -
Field Summary
FieldsModifier and TypeFieldDescriptionprivate final List<ConsentPageModel.ScopeView> The field for theapprovedScopesrecord component.private final StringThe field for theclientIdrecord component.private final StringThe field for theclientNamerecord component.private final StringThe field for theprincipalNamerecord component.private final List<ConsentPageModel.ScopeView> The field for thescopesToApproverecord component.private final StringThe field for thestaterecord component. -
Constructor Summary
ConstructorsConstructorDescriptionConsentPageModel(String clientId, String clientName, String principalName, String state, List<ConsentPageModel.ScopeView> scopesToApprove, List<ConsentPageModel.ScopeView> approvedScopes) Copies the lists. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapprovedScopesrecord component.clientId()Returns the value of theclientIdrecord component.Returns the value of theclientNamerecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of theprincipalNamerecord component.Returns the value of thescopesToApproverecord component.state()Returns the value of thestaterecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
clientId
The field for theclientIdrecord component. -
clientName
The field for theclientNamerecord component. -
principalName
The field for theprincipalNamerecord component. -
state
The field for thestaterecord component. -
scopesToApprove
The field for thescopesToApproverecord component. -
approvedScopes
The field for theapprovedScopesrecord component.
-
-
Constructor Details
-
ConsentPageModel
public ConsentPageModel(String clientId, String clientName, String principalName, String state, List<ConsentPageModel.ScopeView> scopesToApprove, List<ConsentPageModel.ScopeView> approvedScopes) Copies the lists.
-
-
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). -
clientId
Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
clientName
Returns the value of theclientNamerecord component.- Returns:
- the value of the
clientNamerecord component
-
principalName
Returns the value of theprincipalNamerecord component.- Returns:
- the value of the
principalNamerecord component
-
state
Returns the value of thestaterecord component.- Returns:
- the value of the
staterecord component
-
scopesToApprove
Returns the value of thescopesToApproverecord component.- Returns:
- the value of the
scopesToApproverecord component
-
approvedScopes
Returns the value of theapprovedScopesrecord component.- Returns:
- the value of the
approvedScopesrecord component
-