Record Class ClientAssertionUse
java.lang.Object
java.lang.Record
com.irurueta.authserver.authorization.domain.clientauth.ClientAssertionUse
- Record Components:
clientId- identifier of the client that authenticated with the assertion.jti- thejticlaim of the assertion.expiresAt- instant at which the assertion expires.
One presentation of a client assertion: which client presented which JWT identifier, and until when the assertion
is valid (after that instant the identifier no longer needs to be remembered).
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionClientAssertionUse(String clientId, String jti, Instant expiresAt) Validates the components. -
Method Summary
Modifier and TypeMethodDescriptionclientId()Returns the value of theclientIdrecord 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.jti()Returns the value of thejtirecord component.final StringtoString()Returns a string representation of this record class.
-
Field Details
-
Constructor Details
-
ClientAssertionUse
Validates the components.- Throws:
IllegalArgumentException- if the client identifier or thejtiis blank, or the expiry isnull.
-
-
Method Details
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
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). -
clientId
Returns the value of theclientIdrecord component.- Returns:
- the value of the
clientIdrecord component
-
jti
Returns the value of thejtirecord component.- Returns:
- the value of the
jtirecord component
-
expiresAt
Returns the value of theexpiresAtrecord component.- Returns:
- the value of the
expiresAtrecord component
-