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.

    @FunctionalInterface
    public interface ValueRetriever
    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

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      java.util.Optional<java.lang.Object> retrieve​(java.lang.String key, OidcClient client, org.pac4j.core.context.WebContext webContext, org.pac4j.core.context.session.SessionStore sessionStore)  
    • Method Detail

      • retrieve

        java.util.Optional<java.lang.Object> retrieve​(java.lang.String key,
                                                      OidcClient client,
                                                      org.pac4j.core.context.WebContext webContext,
                                                      org.pac4j.core.context.session.SessionStore sessionStore)