Uses of Class
org.gcube.oidc.rest.JWTToken
Packages that use JWTToken
-
Uses of JWTToken in org.gcube.oidc.rest
Methods in org.gcube.oidc.rest that return JWTTokenModifier and TypeMethodDescriptionstatic JWTTokenJWTToken.fromString(String tokenString) Creates aJWTTokenfrom a string.protected static JWTTokenOpenIdConnectRESTHelper.performQueryTokenWithPOST(URL tokenURL, String authorization, Map<String, List<String>> params) Performs a query token with POST.protected static JWTTokenOpenIdConnectRESTHelper.performQueryTokenWithPOST(URL tokenURL, String authorization, Map<String, List<String>> params, Map<String, String> headers) Performs a query token with POST.static JWTTokenOpenIdConnectRESTHelper.queryClientToken(String clientId, String clientSecret, URL tokenURL) Queries from the OIDC server an OIDC access token, by using provided clientId and client secret.static JWTTokenOpenIdConnectRESTHelper.queryClientToken(String clientId, String clientSecret, URL tokenURL, Map<String, String> extraHeaders) Queries from the OIDC server an OIDC access token, by using provided clientId and client secret.static JWTTokenOpenIdConnectRESTHelper.queryExchangeToken(URL tokenUrl, String authorization, String audience, String clientId, String clientSecret, boolean withRefreshToken, boolean offline, Map<String, String> extraHeaders) Queries from the OIDC server an exchanged token by using provided access token, optionally for the given audience (context) in URLEncoded form or not.static JWTTokenOpenIdConnectRESTHelper.queryExchangeToken(URL tokenUrl, String authorization, String audience, String clientId, String clientSecret, String requestedTokenType, String scope, Map<String, String> extraHeaders) Queries from the OIDC server an exchanged token by using provided access token, optionally for the given audience (context) in URLEncoded form or not.static JWTTokenOpenIdConnectRESTHelper.queryExchangeToken(URL tokenUrl, String authorization, String audience, String clientId, String clientSecret, Map<String, String> extraHeaders) Queries from the OIDC server an exchanged token by using provided access token, optionally for the given audience (context) in URLEncoded form or not.static JWTTokenOpenIdConnectRESTHelper.queryToken(String clientId, URL tokenURL, String code, String scope, String redirectURI) Queries from the OIDC server an OIDC access token, by using provided clientId, code, scope and redirect URI.static JWTTokenOpenIdConnectRESTHelper.queryToken(String clientId, URL tokenURL, String code, String scope, String redirectURI, Map<String, String> extraHeaders) Queries from the OIDC server an OIDC access token, by using provided clientId, code, scope, redirect URI and extra headers.static JWTTokenOpenIdConnectRESTHelper.queryUMAToken(URL tokenUrl, String clientId, String clientSecret, String audience, List<String> permissions) Queries from the OIDC server an UMA token, by using provided clientId and client secret for the given audience (context), in URLEncoded form or not, and optionally a list of permissions.static JWTTokenOpenIdConnectRESTHelper.queryUMAToken(URL tokenUrl, String clientId, String clientSecret, String audience, List<String> permissions, Map<String, String> extraHeaders) Queries from the OIDC server an UMA token, by using provided clientId and client secret for the given audience (context), in URLEncoded form or not, and optionally a list of permissions.static JWTTokenOpenIdConnectRESTHelper.queryUMAToken(URL tokenUrl, String authorization, String audience, List<String> permissions) Queries from the OIDC server an UMA token, by using provided access token, for the given audience (context), in URLEncoded form or not, and optionally a list of permissions.static JWTTokenOpenIdConnectRESTHelper.queryUMAToken(URL tokenUrl, String authorization, String audience, List<String> permissions, Map<String, String> extraHeaders) Queries from the OIDC server an UMA token, by using provided access token, for the given audience (context), in URLEncoded form or not, and optionally a list of permissions.static JWTTokenOpenIdConnectRESTHelper.refreshToken(URL tokenURL, String clientId, String clientSecret, JWTToken token) Refreshes the token from the OIDC server for a specific client represented by the client id.static JWTTokenOpenIdConnectRESTHelper.refreshToken(URL tokenURL, String clientId, JWTToken token) Refreshes the token from the OIDC server for a specific client represented by the client id.static JWTTokenOpenIdConnectRESTHelper.refreshToken(URL tokenURL, JWTToken token) Refreshes the token from the OIDC server.Methods in org.gcube.oidc.rest with parameters of type JWTTokenModifier and TypeMethodDescriptionprotected static StringOpenIdConnectRESTHelper.getClientIdFromToken(JWTToken token) Returns the client id from the token.static byte[]OpenIdConnectRESTHelper.getUserAvatar(URL avatarURL, JWTToken token) Returns the user avatar.static booleanPerforms the logout from the session related to the provided client id in the OIDC server.static booleanPerforms the logout (SSOut) from all the sessions opened in the OIDC server.static JWTTokenOpenIdConnectRESTHelper.refreshToken(URL tokenURL, String clientId, String clientSecret, JWTToken token) Refreshes the token from the OIDC server for a specific client represented by the client id.static JWTTokenOpenIdConnectRESTHelper.refreshToken(URL tokenURL, String clientId, JWTToken token) Refreshes the token from the OIDC server for a specific client represented by the client id.static JWTTokenOpenIdConnectRESTHelper.refreshToken(URL tokenURL, JWTToken token) Refreshes the token from the OIDC server.