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 TypeClassDescriptionclassImplementation ofAuthorizedSessionfor a Client Credentials authorization flowclassImplementation ofAuthorizedSessionfor Solid-OIDC.Methods in com.janeirodigital.sai.authentication that return AuthorizedSessionModifier and TypeMethodDescriptionAuthorizedSessionAccessor.get(AccessToken accessToken) Get anAuthorizedSessionbased on the value of anAccessTokenAuthorizedSessionAccessor.get(AuthorizedSession session) Get the providedAuthorizedSessionBasicAuthorizedSessionAccessor.get(AccessToken accessToken) Searches the in-memory session store for anAuthorizedSessionwith the same access token value as the one in the providedaccessToken.BasicAuthorizedSessionAccessor.get(AuthorizedSession session) Gets the providedAuthorizedSessionfrom the in-memory storeAuthorizedSessionAccessor.refresh(AuthorizedSession session) Refreshes and updates the stored version of theAuthorizedSessionBasicAuthorizedSessionAccessor.refresh(AuthorizedSession session) Refreshes theAuthorizedSessionand updates the in-memory session store with the new valuesMethods in com.janeirodigital.sai.authentication with parameters of type AuthorizedSessionModifier and TypeMethodDescriptionstatic okhttp3.ResponseAuthorizedSessionHelper.deleteProtectedResource(AuthorizedSession authorizedSession, okhttp3.OkHttpClient httpClient, URI uri) CallsAuthorizedSessionHelper.deleteProtectedResource(AuthorizedSession, OkHttpClient, URI, Headers)with no additional headers provided.static okhttp3.ResponseAuthorizedSessionHelper.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 providedAuthorizedSessionBasicAuthorizedSessionAccessor.get(AuthorizedSession session) Gets the providedAuthorizedSessionfrom the in-memory storestatic okhttp3.ResponseAuthorizedSessionHelper.getProtectedRdfResource(AuthorizedSession authorizedSession, okhttp3.OkHttpClient httpClient, URI uri) CallsAuthorizedSessionHelper.getProtectedRdfResource(AuthorizedSession, OkHttpClient, URI, Headers)with no additional headers provided.static okhttp3.ResponseAuthorizedSessionHelper.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.ResponseAuthorizedSessionHelper.getProtectedResource(AuthorizedSession authorizedSession, okhttp3.OkHttpClient httpClient, URI uri) CallsAuthorizedSessionHelper.getProtectedResource(AuthorizedSession, OkHttpClient, URI, Headers)with no additional headers provided.static okhttp3.ResponseAuthorizedSessionHelper.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.ResponseAuthorizedSessionHelper.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.ResponseAuthorizedSessionHelper.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.ResponseAuthorizedSessionHelper.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.ResponseAuthorizedSessionHelper.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 theAuthorizedSessionBasicAuthorizedSessionAccessor.refresh(AuthorizedSession session) Refreshes theAuthorizedSessionand updates the in-memory session store with the new valuesprotected okhttp3.RequestAccessTokenRefresher.replaceAuthorizationHeaders(okhttp3.Response response, AuthorizedSession session) Removes any existing authorization headers from the request and adds the updated ones.static okhttp3.HeadersAuthorizedSessionHelper.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.voidBasicAuthorizedSessionAccessor.store(AuthorizedSession session) Updates in-memory session store with the providedAuthorizedSession