Record Class BffSessionCoordinator.SessionAccess
java.lang.Object
java.lang.Record
io.fluxzero.idp.bff.session.BffSessionCoordinator.SessionAccess
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
BffSessionCoordinator
public static record BffSessionCoordinator.SessionAccess(String issuer, String client, String subject, String sid, BrowserHandle csrf, SecretValue accessToken, Instant accessExpiresAt, Instant expiresAt, com.fasterxml.jackson.databind.JsonNode identityClaims)
extends Record
implements AutoCloseable
In-process credential access, never a browser DTO or ordinary message. Close after use.
-
Constructor Summary
ConstructorsConstructorDescriptionSessionAccess(String issuer, String client, String subject, String sid, BrowserHandle csrf, SecretValue accessToken, Instant accessExpiresAt, Instant expiresAt, com.fasterxml.jackson.databind.JsonNode identityClaims) Creates an instance of aSessionAccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessExpiresAtrecord component.Returns the value of theaccessTokenrecord component.client()Returns the value of theclientrecord component.voidclose()csrf()Returns the value of thecsrfrecord 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.com.fasterxml.jackson.databind.JsonNodeReturns the value of theidentityClaimsrecord component.issuer()Returns the value of theissuerrecord component.sid()Returns the value of thesidrecord component.subject()Returns the value of thesubjectrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
SessionAccess
public SessionAccess(String issuer, String client, String subject, String sid, BrowserHandle csrf, SecretValue accessToken, Instant accessExpiresAt, Instant expiresAt, com.fasterxml.jackson.databind.JsonNode identityClaims) Creates an instance of aSessionAccessrecord class.- Parameters:
issuer- the value for theissuerrecord componentclient- the value for theclientrecord componentsubject- the value for thesubjectrecord componentsid- the value for thesidrecord componentcsrf- the value for thecsrfrecord componentaccessToken- the value for theaccessTokenrecord componentaccessExpiresAt- the value for theaccessExpiresAtrecord componentexpiresAt- the value for theexpiresAtrecord componentidentityClaims- the value for theidentityClaimsrecord component
-
-
Method Details
-
identityClaims
public com.fasterxml.jackson.databind.JsonNode identityClaims()Returns the value of theidentityClaimsrecord component.- Returns:
- the value of the
identityClaimsrecord component
-
close
public void close()- Specified by:
closein interfaceAutoCloseable
-
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). -
issuer
Returns the value of theissuerrecord component.- Returns:
- the value of the
issuerrecord component
-
client
Returns the value of theclientrecord component.- Returns:
- the value of the
clientrecord component
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
sid
Returns the value of thesidrecord component.- Returns:
- the value of the
sidrecord component
-
csrf
Returns the value of thecsrfrecord component.- Returns:
- the value of the
csrfrecord component
-
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
accessExpiresAt
Returns the value of theaccessExpiresAtrecord component.- Returns:
- the value of the
accessExpiresAtrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-