Interface AuthorizedSessionAccessor
- All Known Implementing Classes:
BasicAuthorizedSessionAccessor
public interface AuthorizedSessionAccessor
Provides an interface for sai-java to lookup an
AuthorizedSession based
on an AccessToken or the session itself, which is necessary for applications
that operate on behalf of multiple social agents.-
Method Summary
Modifier and TypeMethodDescriptionget(AccessToken accessToken) Get anAuthorizedSessionbased on the value of anAccessTokenget(AuthorizedSession session) Get the providedAuthorizedSessionrefresh(AuthorizedSession session) Refreshes and updates the stored version of theAuthorizedSession
-
Method Details
-
get
Get anAuthorizedSessionbased on the value of anAccessToken- Parameters:
accessToken-AccessTokento lookup session for- Returns:
AuthorizedSessionor null if it can't be found
-
get
Get the providedAuthorizedSession- Parameters:
session-AuthorizedSessionto lookup- Returns:
AuthorizedSessionor null if it can't be found- Throws:
SaiAuthenticationException
-
get
AuthorizedSession get(URI socialAgentId, URI applicationId, URI oidcProviderId) throws SaiAuthenticationException - Parameters:
socialAgentId- URI identifier of the session's social agentapplicationId- URI identifier of the session's applicationoidcProviderId- URI identifier of the session's openid connect provider- Returns:
AuthorizedSessionor null if it can't be found- Throws:
SaiAuthenticationException
-
refresh
Refreshes and updates the stored version of theAuthorizedSession- Parameters:
session-AuthorizedSessionto refresh and update- Returns:
- Refreshed and updated
AuthorizedSession - Throws:
SaiAuthenticationException
-