Record Class BffSessionCoordinator.ResourceAccess
java.lang.Object
java.lang.Record
io.fluxzero.idp.bff.session.BffSessionCoordinator.ResourceAccess
- All Implemented Interfaces:
AutoCloseable
- Enclosing class:
BffSessionCoordinator
public static record BffSessionCoordinator.ResourceAccess(String issuer, String subject, SecretValue accessToken, Instant expiresAt)
extends Record
implements AutoCloseable
In-process only; the owning resource API still validates signature, audience, scopes and current grants.
-
Constructor Summary
ConstructorsConstructorDescriptionResourceAccess(String issuer, String subject, SecretValue accessToken, Instant expiresAt) Creates an instance of aResourceAccessrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theaccessTokenrecord component.voidclose()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.issuer()Returns the value of theissuerrecord component.subject()Returns the value of thesubjectrecord component.toString()Returns a string representation of this record class.
-
Constructor Details
-
ResourceAccess
Creates an instance of aResourceAccessrecord class.- Parameters:
issuer- the value for theissuerrecord componentsubject- the value for thesubjectrecord componentaccessToken- the value for theaccessTokenrecord componentexpiresAt- the value for theexpiresAtrecord component
-
-
Method Details
-
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
-
subject
Returns the value of thesubjectrecord component.- Returns:
- the value of the
subjectrecord component
-
accessToken
Returns the value of theaccessTokenrecord component.- Returns:
- the value of the
accessTokenrecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-