Uses of Class
com.janeirodigital.sai.authentication.AccessToken
-
Uses of AccessToken in com.janeirodigital.sai.authentication
Methods in com.janeirodigital.sai.authentication that return AccessTokenModifier and TypeMethodDescriptionAuthorizedSession.getAccessToken()
Gets theAccessToken
associated with theAuthorizedSession
static AccessToken
AuthorizedSessionHelper.getAccessTokenFromRequest
(okhttp3.Request request) Extracts the value of an access token from the Authorization header of an HTTP request.protected static AccessToken
ClientCredentialsSession.obtainToken
(String clientIdentifier, String clientSecret, URI oidcTokenEndpoint, com.nimbusds.oauth2.sdk.Scope scope) POSTs a token request to the token endpoint of the oidcProvider using the providedclientIdentifier
andclientSecret
to authenticate and request the providedscope
.static AccessToken
AuthorizedSessionHelper.translateAccessToken
(com.nimbusds.oauth2.sdk.token.AccessToken nimbusAccessToken) Translates a nimbus native AccessToken into the generic sai-java formatMethods in com.janeirodigital.sai.authentication with parameters of type AccessTokenModifier and TypeMethodDescriptionAuthorizedSessionAccessor.get
(AccessToken accessToken) Get anAuthorizedSession
based on the value of anAccessToken
BasicAuthorizedSessionAccessor.get
(AccessToken accessToken) Searches the in-memory session store for anAuthorizedSession
with the same access token value as the one in the providedaccessToken
.