Uses of Interface
com.janeirodigital.sai.authentication.AuthorizedSession
-
Uses of AuthorizedSession in com.janeirodigital.sai.authentication
Classes in com.janeirodigital.sai.authentication that implement AuthorizedSessionModifier and TypeClassDescriptionclass
Implementation ofAuthorizedSession
for a Client Credentials authorization flowclass
Implementation ofAuthorizedSession
for Solid-OIDC.Methods in com.janeirodigital.sai.authentication that return AuthorizedSessionModifier and TypeMethodDescriptionAuthorizedSessionAccessor.get
(AccessToken accessToken) Get anAuthorizedSession
based on the value of anAccessToken
AuthorizedSessionAccessor.get
(AuthorizedSession session) Get the providedAuthorizedSession
BasicAuthorizedSessionAccessor.get
(AccessToken accessToken) Searches the in-memory session store for anAuthorizedSession
with the same access token value as the one in the providedaccessToken
.BasicAuthorizedSessionAccessor.get
(AuthorizedSession session) Gets the providedAuthorizedSession
from the in-memory storeAuthorizedSessionAccessor.refresh
(AuthorizedSession session) Refreshes and updates the stored version of theAuthorizedSession
BasicAuthorizedSessionAccessor.refresh
(AuthorizedSession session) Refreshes theAuthorizedSession
and updates the in-memory session store with the new valuesMethods in com.janeirodigital.sai.authentication with parameters of type AuthorizedSessionModifier and TypeMethodDescriptionstatic okhttp3.Response
AuthorizedSessionHelper.deleteProtectedResource
(AuthorizedSession authorizedSession, okhttp3.OkHttpClient httpClient, URI uri) CallsAuthorizedSessionHelper.deleteProtectedResource(AuthorizedSession, OkHttpClient, URI, Headers)
with no additional headers provided.static okhttp3.Response
AuthorizedSessionHelper.deleteProtectedResource
(AuthorizedSession authorizedSession, okhttp3.OkHttpClient httpClient, URI uri, okhttp3.Headers headers) Deletes a protected resource that requires additional Authorization headers to be added to the request.AuthorizedSessionAccessor.get
(AuthorizedSession session) Get the providedAuthorizedSession
BasicAuthorizedSessionAccessor.get
(AuthorizedSession session) Gets the providedAuthorizedSession
from the in-memory storestatic okhttp3.Response
AuthorizedSessionHelper.getProtectedRdfResource
(AuthorizedSession authorizedSession, okhttp3.OkHttpClient httpClient, URI uri) CallsAuthorizedSessionHelper.getProtectedRdfResource(AuthorizedSession, OkHttpClient, URI, Headers)
with no additional headers provided.static okhttp3.Response
AuthorizedSessionHelper.getProtectedRdfResource
(AuthorizedSession authorizedSession, okhttp3.OkHttpClient httpClient, URI uri, okhttp3.Headers headers) Gets a protected RDF resource that requires additional Authorization headers to be added to the request.static okhttp3.Response
AuthorizedSessionHelper.getProtectedResource
(AuthorizedSession authorizedSession, okhttp3.OkHttpClient httpClient, URI uri) CallsAuthorizedSessionHelper.getProtectedResource(AuthorizedSession, OkHttpClient, URI, Headers)
with no additional headers provided.static okhttp3.Response
AuthorizedSessionHelper.getProtectedResource
(AuthorizedSession authorizedSession, okhttp3.OkHttpClient httpClient, URI uri, okhttp3.Headers headers) Gets a protected resource that requires additional Authorization headers to be added to the request.static okhttp3.Response
AuthorizedSessionHelper.putProtectedRdfResource
(AuthorizedSession authorizedSession, okhttp3.OkHttpClient httpClient, URI uri, org.apache.jena.rdf.model.Resource resource, com.janeirodigital.sai.httputils.ContentType contentType) CallsAuthorizedSessionHelper.putProtectedRdfResource(AuthorizedSession, OkHttpClient, URI, Resource, ContentType, String, Headers)
with no additional headers provided.static okhttp3.Response
AuthorizedSessionHelper.putProtectedRdfResource
(AuthorizedSession authorizedSession, okhttp3.OkHttpClient httpClient, URI uri, org.apache.jena.rdf.model.Resource resource, com.janeirodigital.sai.httputils.ContentType contentType, String jsonLdContext) CallsAuthorizedSessionHelper.putProtectedRdfResource(AuthorizedSession, OkHttpClient, URI, Resource, ContentType, String, Headers)
with additional headers providedstatic okhttp3.Response
AuthorizedSessionHelper.putProtectedRdfResource
(AuthorizedSession authorizedSession, okhttp3.OkHttpClient httpClient, URI uri, org.apache.jena.rdf.model.Resource resource, com.janeirodigital.sai.httputils.ContentType contentType, String jsonLdContext, okhttp3.Headers headers) Puts a protected RDF resource that requires additional Authorization headers to be added to the request.static okhttp3.Response
AuthorizedSessionHelper.putProtectedRdfResource
(AuthorizedSession authorizedSession, okhttp3.OkHttpClient httpClient, URI uri, org.apache.jena.rdf.model.Resource resource, com.janeirodigital.sai.httputils.ContentType contentType, okhttp3.Headers headers) CallsAuthorizedSessionHelper.putProtectedRdfResource(AuthorizedSession, OkHttpClient, URI, Resource, ContentType, String, Headers)
with additional headers providedAuthorizedSessionAccessor.refresh
(AuthorizedSession session) Refreshes and updates the stored version of theAuthorizedSession
BasicAuthorizedSessionAccessor.refresh
(AuthorizedSession session) Refreshes theAuthorizedSession
and updates the in-memory session store with the new valuesprotected okhttp3.Request
AccessTokenRefresher.replaceAuthorizationHeaders
(okhttp3.Response response, AuthorizedSession session) Removes any existing authorization headers from the request and adds the updated ones.static okhttp3.Headers
AuthorizedSessionHelper.setAuthorizationHeaders
(AuthorizedSession authorizedSession, com.janeirodigital.sai.httputils.HttpMethod method, URI uri, okhttp3.Headers headers) Sets the appropriate HTTP Authorization headers based on the characteristics of theAuthorizedSession
.void
BasicAuthorizedSessionAccessor.store
(AuthorizedSession session) Updates in-memory session store with the providedAuthorizedSession