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 anAuthorizedSession
based on the value of anAccessToken
get
(AuthorizedSession session) Get the providedAuthorizedSession
refresh
(AuthorizedSession session) Refreshes and updates the stored version of theAuthorizedSession
-
Method Details
-
get
Get anAuthorizedSession
based on the value of anAccessToken
- Parameters:
accessToken
-AccessToken
to lookup session for- Returns:
AuthorizedSession
or null if it can't be found
-
get
Get the providedAuthorizedSession
- Parameters:
session
-AuthorizedSession
to lookup- Returns:
AuthorizedSession
or 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:
AuthorizedSession
or null if it can't be found- Throws:
SaiAuthenticationException
-
refresh
Refreshes and updates the stored version of theAuthorizedSession
- Parameters:
session
-AuthorizedSession
to refresh and update- Returns:
- Refreshed and updated
AuthorizedSession
- Throws:
SaiAuthenticationException
-