Record Class SessionPolicyBinding
java.lang.Object
java.lang.Record
io.leandev.appfuse.security.auth.SessionPolicyBinding
public record SessionPolicyBinding(String policy, String reference, Instant validUntil, Set<String> requiredActorAuthorities)
extends Record
綁定於 Refresh Session family 的應用政策識別。
框架不解讀 policy/reference 的產品語意;它只保證資料隨 family 保存,並在 refresh 時
交給 SessionEligibilityPolicy 重新驗證。validUntil 與 actor 必要權限則屬通用安全不變量,
即使應用未安裝額外 policy hook,框架仍會 fail-closed。
-
Constructor Summary
ConstructorsConstructorDescriptionSessionPolicyBinding(String policy, String reference, Instant validUntil) SessionPolicyBinding(String policy, String reference, Instant validUntil, Set<String> requiredActorAuthorities) Creates an instance of aSessionPolicyBindingrecord 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.policy()Returns the value of thepolicyrecord component.Returns the value of thereferencerecord component.Returns the value of therequiredActorAuthoritiesrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of thevalidUntilrecord component.
-
Constructor Details
-
SessionPolicyBinding
public SessionPolicyBinding(String policy, String reference, Instant validUntil, Set<String> requiredActorAuthorities) Creates an instance of aSessionPolicyBindingrecord class.- Parameters:
policy- the value for thepolicyrecord componentreference- the value for thereferencerecord componentvalidUntil- the value for thevalidUntilrecord componentrequiredActorAuthorities- the value for therequiredActorAuthoritiesrecord component
-
SessionPolicyBinding
-
-
Method Details
-
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). -
policy
Returns the value of thepolicyrecord component.- Returns:
- the value of the
policyrecord component
-
reference
Returns the value of thereferencerecord component.- Returns:
- the value of the
referencerecord component
-
validUntil
Returns the value of thevalidUntilrecord component.- Returns:
- the value of the
validUntilrecord component
-
requiredActorAuthorities
-