Record Class ApplicationSession
java.lang.Object
java.lang.Record
io.fluxzero.idp.bff.session.api.model.ApplicationSession
@Model(searchable=false,
name="BffApplicationSession",
persistence=DOCUMENT,
eventPublication=NEVER,
cached=false,
conflictPolicy=FAIL,
automaticHandling=DISABLED)
public record ApplicationSession(ApplicationSessionId applicationSessionId, RelyingPartySessionId relyingPartySessionId, Instant expiresAt, long version, String refreshClaim, Instant refreshDeadline, SessionProtection.SealedValue protectedValue)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionApplicationSession(ApplicationSessionId applicationSessionId, RelyingPartySessionId relyingPartySessionId, Instant expiresAt, long version, String refreshClaim, Instant refreshDeadline, SessionProtection.SealedValue protectedValue) Creates an instance of aApplicationSessionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theapplicationSessionIdrecord component.final booleanIndicates whether some other object is "equal to" this one.Returns the value of theexpiresAtrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of theprotectedValuerecord component.Returns the value of therefreshClaimrecord component.Returns the value of therefreshDeadlinerecord component.Returns the value of therelyingPartySessionIdrecord component.final StringtoString()Returns a string representation of this record class.longversion()Returns the value of theversionrecord component.
-
Constructor Details
-
ApplicationSession
public ApplicationSession(ApplicationSessionId applicationSessionId, RelyingPartySessionId relyingPartySessionId, Instant expiresAt, long version, String refreshClaim, Instant refreshDeadline, SessionProtection.SealedValue protectedValue) Creates an instance of aApplicationSessionrecord class.- Parameters:
applicationSessionId- the value for theapplicationSessionIdrecord componentrelyingPartySessionId- the value for therelyingPartySessionIdrecord componentexpiresAt- the value for theexpiresAtrecord componentversion- the value for theversionrecord componentrefreshClaim- the value for therefreshClaimrecord componentrefreshDeadline- the value for therefreshDeadlinerecord componentprotectedValue- the value for theprotectedValuerecord component
-
-
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. Reference components are compared withObjects::equals(Object,Object); primitive components are compared with thecomparemethod from their corresponding wrapper classes. -
applicationSessionId
Returns the value of theapplicationSessionIdrecord component.- Returns:
- the value of the
applicationSessionIdrecord component
-
relyingPartySessionId
Returns the value of therelyingPartySessionIdrecord component.- Returns:
- the value of the
relyingPartySessionIdrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
version
public long version()Returns the value of theversionrecord component.- Returns:
- the value of the
versionrecord component
-
refreshClaim
Returns the value of therefreshClaimrecord component.- Returns:
- the value of the
refreshClaimrecord component
-
refreshDeadline
Returns the value of therefreshDeadlinerecord component.- Returns:
- the value of the
refreshDeadlinerecord component
-
protectedValue
Returns the value of theprotectedValuerecord component.- Returns:
- the value of the
protectedValuerecord component
-