Package org.pac4j.oidc.util
Interface ValueRetriever
- All Known Implementing Classes:
SessionStoreValueRetriever
- Functional Interface:
- This is a functional interface and can therefore be used as the assignment target for a lambda expression or method reference.
ValueRetriever retrieves a given value from the
WebContext
. It can
either read the value from the session store or use some method to regenerate
the value. This is used to validate values such as the State
, for
CSRF mitigation or the CodeVerifier
for PKCE.- Since:
- 4.0.3
- Author:
- Martin Hansen, Emond Papegaaij
-
Method Summary
Modifier and TypeMethodDescriptionretrieve
(org.pac4j.core.context.CallContext ctx, String key, OidcClient client) retrieve.
-
Method Details
-
retrieve
retrieve.
- Parameters:
ctx
- aCallContext
objectkey
- aString
objectclient
- aOidcClient
object- Returns:
- a
Optional
object
-