Class OAuth2SessionContext

java.lang.Object
org.forgerock.services.context.AbstractContext
org.forgerock.openig.filter.oauth2.client.OAuth2SessionContext
All Implemented Interfaces:
Context

public class OAuth2SessionContext extends AbstractContext
This context helps to manage the OAuth2Session when used with OAuth2ClientFilter.

Instead of frequently loading/saving the session object (potentially expensive operations), this context keep a unique managed instance of OAuth2Session.

It also offers some methods that helps maintain the session for the duration of request processing.