Record Class LoginPolicy.Context
java.lang.Object
java.lang.Record
io.leandev.appfuse.security.auth.LoginPolicy.Context
- Enclosing interface:
LoginPolicy
public static record LoginPolicy.Context(LoginPolicy.Operation operation, RefreshSessionStore.Session source)
extends Record
source 只由引擎在驗證 opaque Refresh Credential 後填入,不能由 wire model 提供。
-
Constructor Summary
ConstructorsConstructorDescriptionContext(LoginPolicy.Operation operation, RefreshSessionStore.Session source) Creates an instance of aContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.static LoginPolicy.Contextlogin()Returns the value of theoperationrecord component.source()Returns the value of thesourcerecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
Context
Creates an instance of aContextrecord class.- Parameters:
operation- the value for theoperationrecord componentsource- the value for thesourcerecord component
-
-
Method Details
-
login
-
toString
-
hashCode
-
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). -
operation
Returns the value of theoperationrecord component.- Returns:
- the value of the
operationrecord component
-
source
Returns the value of thesourcerecord component.- Returns:
- the value of the
sourcerecord component
-