Package org.keycloak.broker.oid4vp
Record Class RequestContext
java.lang.Object
java.lang.Record
org.keycloak.broker.oid4vp.RequestContext
public record RequestContext(String rootSessionId, String tabId, String nonce, EphemeralKey encryptionKey)
extends Record
The verifier side state of one wallet login, written to the single use object store when the login
page is rendered and read while serving the request object and the presentation. It carries the ids
to recover the authentication session, the nonce the wallet must echo in the key binding JWT, and
(for
direct_post.jwt) the ephemeral response encryption key.-
Constructor Summary
ConstructorsConstructorDescriptionRequestContext(String rootSessionId, String tabId, String nonce, EphemeralKey encryptionKey) Creates an instance of aRequestContextrecord class. -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theencryptionKeyrecord component.final booleanIndicates whether some other object is "equal to" this one.static RequestContextfinal inthashCode()Returns a hash code value for this object.booleannonce()Returns the value of thenoncerecord component.Returns the value of therootSessionIdrecord component.tabId()Returns the value of thetabIdrecord component.toMap()final StringtoString()Returns a string representation of this record class.
-
Constructor Details
-
RequestContext
Creates an instance of aRequestContextrecord class.- Parameters:
rootSessionId- the value for therootSessionIdrecord componenttabId- the value for thetabIdrecord componentnonce- the value for thenoncerecord componentencryptionKey- the value for theencryptionKeyrecord component
-
-
Method Details
-
isEncrypted
public boolean isEncrypted() -
clientMetadata
-
toMap
-
fromMap
-
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). -
rootSessionId
Returns the value of therootSessionIdrecord component.- Returns:
- the value of the
rootSessionIdrecord component
-
tabId
Returns the value of thetabIdrecord component.- Returns:
- the value of the
tabIdrecord component
-
nonce
Returns the value of thenoncerecord component.- Returns:
- the value of the
noncerecord component
-
encryptionKey
Returns the value of theencryptionKeyrecord component.- Returns:
- the value of the
encryptionKeyrecord component
-