Record Class LoginTransaction
java.lang.Object
java.lang.Record
io.fluxzero.idp.bff.session.api.model.LoginTransaction
@Model(searchable=false,
name="BffLoginTransaction",
persistence=DOCUMENT,
eventPublication=NEVER,
cached=false,
conflictPolicy=FAIL,
automaticHandling=DISABLED)
public record LoginTransaction(LoginTransactionId loginTransactionId, String stateDigest, Instant expiresAt, SessionProtection.SealedValue protectedValue, PlaintextValue plaintextValue)
extends Record
-
Constructor Summary
ConstructorsConstructorDescriptionLoginTransaction(LoginTransactionId id, String stateDigest, Instant expiresAt, SessionProtection.SealedValue protectedValue) LoginTransaction(LoginTransactionId loginTransactionId, String stateDigest, Instant expiresAt, SessionProtection.SealedValue protectedValue, PlaintextValue plaintextValue) Creates an instance of aLoginTransactionrecord class. -
Method Summary
Modifier and TypeMethodDescriptionfinal 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 theloginTransactionIdrecord component.Returns the value of theplaintextValuerecord component.Returns the value of theprotectedValuerecord component.Returns the value of thestateDigestrecord component.final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
LoginTransaction
public LoginTransaction(LoginTransactionId loginTransactionId, String stateDigest, Instant expiresAt, SessionProtection.SealedValue protectedValue, PlaintextValue plaintextValue) Creates an instance of aLoginTransactionrecord class.- Parameters:
loginTransactionId- the value for theloginTransactionIdrecord componentstateDigest- the value for thestateDigestrecord componentexpiresAt- the value for theexpiresAtrecord componentprotectedValue- the value for theprotectedValuerecord componentplaintextValue- the value for theplaintextValuerecord component
-
LoginTransaction
public LoginTransaction(LoginTransactionId id, String stateDigest, Instant expiresAt, SessionProtection.SealedValue protectedValue)
-
-
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). -
loginTransactionId
Returns the value of theloginTransactionIdrecord component.- Returns:
- the value of the
loginTransactionIdrecord component
-
stateDigest
Returns the value of thestateDigestrecord component.- Returns:
- the value of the
stateDigestrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-
protectedValue
Returns the value of theprotectedValuerecord component.- Returns:
- the value of the
protectedValuerecord component
-
plaintextValue
Returns the value of theplaintextValuerecord component.- Returns:
- the value of the
plaintextValuerecord component
-