Uses of Class
org.gcube.common.keycloak.model.TokenResponse
Packages that use TokenResponse
-
Uses of TokenResponse in org.gcube.common.keycloak
Methods in org.gcube.common.keycloak that return TokenResponseModifier and TypeMethodDescriptionprotected TokenResponseDefaultKeycloakClient.exchangeToken(URL tokenURL, String oidcAccessToken, String clientId, String clientSecret, String audience, String requestedTokenType, String scope) Queries from the OIDC server an exchanged token by using provided access token, for the given audience (context), in URLEncoded form or not,DefaultKeycloakClient.exchangeTokenForAccessToken(String context, String oidcAccessToken, String clientId, String clientSecret, String audience) DefaultKeycloakClient.exchangeTokenForAccessToken(URL tokenURL, String oidcAccessToken, String clientId, String clientSecret, String audience) KeycloakClient.exchangeTokenForAccessToken(String context, String oidcAccessToken, String clientId, String clientSecret, String audience) Exchanges a token for another access token for a specific client and a specific audienceKeycloakClient.exchangeTokenForAccessToken(URL tokenURL, String oidcAccessToken, String clientId, String clientSecret, String audience) Exchanges a token for another access token for a specific client and a specific audienceDefaultKeycloakClient.exchangeTokenForOfflineToken(String context, String oidcAccessToken, String clientId, String clientSecret, String audience) DefaultKeycloakClient.exchangeTokenForOfflineToken(URL tokenURL, String oidcAccessToken, String clientId, String clientSecret, String audience) KeycloakClient.exchangeTokenForOfflineToken(String context, String oidcAccessToken, String clientId, String clientSecret, String audience) Exchanges a token for another access and an offline refresh tokens for a specific client and a specific audience The refresh token will be of the offline type only if the original token has theoffline_accesswithin its scopesKeycloakClient.exchangeTokenForOfflineToken(URL tokenURL, String oidcAccessToken, String clientId, String clientSecret, String audience) Exchanges a token for another access and an offline refresh tokens for a specific client and a specific audience The refresh token will be of the offline type only if the original token has the scopeoffline_accesswithin its scopesDefaultKeycloakClient.exchangeTokenForRefreshToken(String context, String oidcAccessToken, String clientId, String clientSecret, String audience) DefaultKeycloakClient.exchangeTokenForRefreshToken(URL tokenURL, String oidcAccessToken, String clientId, String clientSecret, String audience) KeycloakClient.exchangeTokenForRefreshToken(String context, String oidcAccessToken, String clientId, String clientSecret, String audience) Exchanges a token for another access and a refresh tokens for a specific client and a specific audienceKeycloakClient.exchangeTokenForRefreshToken(URL tokenURL, String oidcAccessToken, String clientId, String clientSecret, String audience) Exchanges a token for another access and a refresh tokens for a specific client and a specific audiencestatic TokenResponseKeycloakClientHelper.getTokenForUser(String context, String username, String password) Gets a newTokenResponse, containing theAccessTokenand theRefreshTokenfrom the Keycloak server in the environment of the context represented by thecontextparameter.protected TokenResponseDefaultKeycloakClient.performRequest(URL tokenURL, Map<String, String> headers, Map<String, List<String>> params) DefaultKeycloakClient.queryOIDCToken(String context, String authorization) DefaultKeycloakClient.queryOIDCToken(String context, String clientId, String clientSecret) DefaultKeycloakClient.queryOIDCToken(String context, String clientId, String clientSecret, Map<String, String> extraHeaders) DefaultKeycloakClient.queryOIDCToken(String context, String authorization, Map<String, String> extraHeaders) DefaultKeycloakClient.queryOIDCToken(URL tokenURL, String authorization) DefaultKeycloakClient.queryOIDCToken(URL tokenURL, String clientId, String clientSecret) DefaultKeycloakClient.queryOIDCToken(URL tokenURL, String clientId, String clientSecret, Map<String, String> extraHeaders) DefaultKeycloakClient.queryOIDCToken(URL tokenURL, String authorization, Map<String, String> extraHeaders) KeycloakClient.queryOIDCToken(String context, String authorization) Queries an OIDC token from the Keycloak server, by using provided authorization.KeycloakClient.queryOIDCToken(String context, String clientId, String clientSecret) Queries an OIDC token from the context's Keycloak server, by using provided clientId and client secret.KeycloakClient.queryOIDCToken(String context, String clientId, String clientSecret, Map<String, String> extraHeaders) Queries an OIDC token from the context's Keycloak server, by using provided clientId and client secret.KeycloakClient.queryOIDCToken(String context, String authorization, Map<String, String> extraHeaders) Queries an OIDC token from the Keycloak server, by using provided authorization.KeycloakClient.queryOIDCToken(URL tokenURL, String authorization) Queries an OIDC token from the Keycloak server, by using provided authorization.KeycloakClient.queryOIDCToken(URL tokenURL, String clientId, String clientSecret) Queries an OIDC token from the Keycloak server, by using provided clientId and client secret.KeycloakClient.queryOIDCToken(URL tokenURL, String clientId, String clientSecret, Map<String, String> extraHeaders) Queries an OIDC token from the Keycloak server, by using provided clientId and client secret.Queries an OIDC token from the Keycloak server, by using provided authorization.DefaultKeycloakClient.queryOIDCTokenOfUser(String context, String clientId, String clientSecret, String username, String password) DefaultKeycloakClient.queryOIDCTokenOfUser(String context, String clientId, String clientSecret, String username, String password, Map<String, String> extraHeaders) KeycloakClient.queryOIDCTokenOfUser(String context, String clientId, String clientSecret, String username, String password) Queries an OIDC token for a specific user from the context's Keycloak server, by using provided clientId and client secret and user's username and password.KeycloakClient.queryOIDCTokenOfUser(String context, String clientId, String clientSecret, String username, String password, Map<String, String> extraHeaders) Queries an OIDC token for a specific user from the context's Keycloak server, by using provided clientId and client secret and user's username and password.DefaultKeycloakClient.queryOIDCTokenOfUserWithContext(String context, String authorization, String username, String password, String audience) DefaultKeycloakClient.queryOIDCTokenOfUserWithContext(String context, String clientId, String clientSecret, String username, String password, String audience) DefaultKeycloakClient.queryOIDCTokenOfUserWithContext(String context, String clientId, String clientSecret, String username, String password, String audience, Map<String, String> extraHeaders) DefaultKeycloakClient.queryOIDCTokenOfUserWithContext(String context, String authorization, String username, String password, String audience, Map<String, String> extraHeaders) DefaultKeycloakClient.queryOIDCTokenOfUserWithContext(URL tokenURL, String authorization, String username, String password, String audience) DefaultKeycloakClient.queryOIDCTokenOfUserWithContext(URL tokenURL, String clientId, String clientSecret, String username, String password, String audience) DefaultKeycloakClient.queryOIDCTokenOfUserWithContext(URL tokenURL, String clientId, String clientSecret, String username, String password, String audience, Map<String, String> extraHeaders) DefaultKeycloakClient.queryOIDCTokenOfUserWithContext(URL tokenURL, String authorization, String username, String password, String audience, Map<String, String> extraHeaders) KeycloakClient.queryOIDCTokenOfUserWithContext(String context, String authorization, String username, String password, String audience) Queries an OIDC token for a specific user from the context's Keycloak server, by using provided clientId and client secret and user's username and password.KeycloakClient.queryOIDCTokenOfUserWithContext(String context, String clientId, String clientSecret, String username, String password, String audience) Queries an OIDC token for a specific user from the Keycloak server, by using provided clientId and client secret and user's username and password, reducing the audience to the requested one.KeycloakClient.queryOIDCTokenOfUserWithContext(String context, String clientId, String clientSecret, String username, String password, String audience, Map<String, String> extraHeaders) Queries an OIDC token for a specific user from the Keycloak server, by using provided clientId and client secret and user's username and password, reducing the audience to the requested one.KeycloakClient.queryOIDCTokenOfUserWithContext(String context, String authorization, String username, String password, String audience, Map<String, String> extraHeaders) Queries an OIDC token for a specific user from the context's Keycloak server, by using provided clientId and client secret and user's username and password.KeycloakClient.queryOIDCTokenOfUserWithContext(URL tokenURL, String authorization, String username, String password, String audience) Queries an OIDC token for a specific user from the context's Keycloak server, by using provided clientId and client secret and user's username and password.KeycloakClient.queryOIDCTokenOfUserWithContext(URL tokenURL, String clientId, String clientSecret, String username, String password, String audience) Queries an OIDC token for a specific user from the context's Keycloak server, by using provided clientId and client secret and user's username and password, reducing the audience to the requested one.KeycloakClient.queryOIDCTokenOfUserWithContext(URL tokenURL, String clientId, String clientSecret, String username, String password, String audience, Map<String, String> extraHeaders) Queries an OIDC token for a specific user from the context's Keycloak server, by using provided clientId and client secret and user's username and password, , reducing the audience to the requested one.KeycloakClient.queryOIDCTokenOfUserWithContext(URL tokenURL, String authorization, String username, String password, String audience, Map<String, String> extraHeaders) Queries an OIDC token for a specific user from the context's Keycloak server, by using provided clientId and client secret and user's username and password.DefaultKeycloakClient.queryOIDCTokenWithContext(String context, String authorization, String audience) DefaultKeycloakClient.queryOIDCTokenWithContext(String context, String clientId, String clientSecret, String audience) DefaultKeycloakClient.queryOIDCTokenWithContext(String context, String clientId, String clientSecret, String audience, Map<String, String> extraHeaders) DefaultKeycloakClient.queryOIDCTokenWithContext(String context, String authorization, String audience, Map<String, String> extraHeaders) DefaultKeycloakClient.queryOIDCTokenWithContext(URL tokenURL, String authorization, String audience) DefaultKeycloakClient.queryOIDCTokenWithContext(URL tokenURL, String clientId, String clientSecret, String audience) DefaultKeycloakClient.queryOIDCTokenWithContext(URL tokenURL, String clientId, String clientSecret, String audience, Map<String, String> extraHeaders) DefaultKeycloakClient.queryOIDCTokenWithContext(URL tokenURL, String authorization, String audience, Map<String, String> extraHeaders) KeycloakClient.queryOIDCTokenWithContext(String context, String authorization, String audience) Queries an OIDC token from the Keycloak server, by using provided authorization, reducing the audience to the requested one.KeycloakClient.queryOIDCTokenWithContext(String context, String clientId, String clientSecret, String audience) Queries an OIDC token from the context's Keycloak server, by using provided clientId and client secret, reducing the audience to the requested one.KeycloakClient.queryOIDCTokenWithContext(String context, String clientId, String clientSecret, String audience, Map<String, String> extraHeaders) Queries an OIDC token from the context's Keycloak server, by using provided clientId and client secret, reducing the audience to the requested one.KeycloakClient.queryOIDCTokenWithContext(String context, String authorization, String audience, Map<String, String> extraHeaders) Queries an OIDC token from the Keycloak server, by using provided authorization, reducing the audience to the requested one.KeycloakClient.queryOIDCTokenWithContext(URL tokenURL, String authorization, String audience) Queries an OIDC token from the Keycloak server, by using provided authorization, reducing the audience to the requested one.KeycloakClient.queryOIDCTokenWithContext(URL tokenURL, String clientId, String clientSecret, String audience) Queries an OIDC token from the Keycloak server, by using provided clientId and client secret, reducing the audience to the requested one.KeycloakClient.queryOIDCTokenWithContext(URL tokenURL, String clientId, String clientSecret, String audience, Map<String, String> extraHeaders) Queries an OIDC token from the Keycloak server, by using provided clientId and client secret, reducing the audience to the requested one.KeycloakClient.queryOIDCTokenWithContext(URL tokenURL, String authorization, String audience, Map<String, String> extraHeaders) Queries an OIDC token from the Keycloak server, by using provided authorization, reducing the audience to the requested one.DefaultKeycloakClient.queryUMAToken(String context, String clientId, String clientSecret, String audience, List<String> permissions) DefaultKeycloakClient.queryUMAToken(String context, String authorization, String audience, List<String> permissions) DefaultKeycloakClient.queryUMAToken(String context, TokenResponse oidcTokenResponse, String audience, List<String> permissions) DefaultKeycloakClient.queryUMAToken(URL tokenURL, String clientId, String clientSecret, String audience, List<String> permissions) DefaultKeycloakClient.queryUMAToken(URL tokenURL, String authorization, String audience, List<String> permissions) DefaultKeycloakClient.queryUMAToken(URL tokenURL, TokenResponse oidcTokenResponse, String audience, List<String> permissions) KeycloakClient.queryUMAToken(String context, String clientId, String clientSecret, String audience, List<String> permissions) Queries an UMA token from the Keycloak server, by using provided clientId and client secret for the given audience (context), in URLEncoded form or not, and optionally a list of permissions.KeycloakClient.queryUMAToken(String context, String authorization, String audience, List<String> permissions) Queries an UMA token from the Keycloak server, by using provided authorization, for the given audience (context), in URLEncoded form or not, and optionally a list of permissions.KeycloakClient.queryUMAToken(String context, TokenResponse oidcTokenResponse, String audience, List<String> permissions) Queries an UMA token from the Keycloak server, by using access-token provided by theTokenResponseobject for the given audience (context), in URLEncoded form or not, and optionally a list of permissions.KeycloakClient.queryUMAToken(URL tokenURL, String clientId, String clientSecret, String audience, List<String> permissions) Queries an UMA token from the Keycloak server, by using provided clientId and client secret for the given audience (context), in URLEncoded form or not, and optionally a list of permissions.KeycloakClient.queryUMAToken(URL tokenURL, String authorization, String audience, List<String> permissions) Queries an UMA token from the Keycloak server, by using provided authorization, for the given audience (context), in URLEncoded form or not, and optionally a list of permissions.KeycloakClient.queryUMAToken(URL tokenURL, TokenResponse oidcTokenResponse, String audience, List<String> permissions) Queries an UMA token from the Keycloak server, by using access-token provided by theTokenResponseobject for the given audience (context), in URLEncoded form or not, and optionally a list of permissions.DefaultKeycloakClient.refreshToken(String context, String clientId, String clientSecret, String refreshTokenJWTString) DefaultKeycloakClient.refreshToken(String context, String clientId, String clientSecret, TokenResponse tokenResponse) DefaultKeycloakClient.refreshToken(String context, TokenResponse tokenResponse) DefaultKeycloakClient.refreshToken(URL tokenURL, String clientId, String clientSecret, String refreshTokenJWTString) DefaultKeycloakClient.refreshToken(URL tokenURL, String clientId, String clientSecret, TokenResponse tokenResponse) DefaultKeycloakClient.refreshToken(URL tokenURL, TokenResponse tokenResponse) KeycloakClient.refreshToken(String context, String clientId, String clientSecret, String refreshTokenJWTString) Refreshes a previously issued token from the Keycloak server by using the client id and secret and the refresh token JWT encoded string obtained with the access token in the previous token response.KeycloakClient.refreshToken(String context, String clientId, String clientSecret, TokenResponse tokenResponse) Refreshes a previously issued token from the Keycloak server using the refresh token JWT encoded string in the token response object and the provided client id and secret.KeycloakClient.refreshToken(String context, TokenResponse tokenResponse) Refreshes a previously issued token from the Keycloak server using the refresh token JWT encoded string in the token response object.KeycloakClient.refreshToken(URL tokenURL, String clientId, String clientSecret, String refreshTokenJWTString) Refreshes a previously issued token from the Keycloak server by using the client id and secret and the refresh token JWT encoded string obtained with the access token in the previous token response.KeycloakClient.refreshToken(URL tokenURL, String clientId, String clientSecret, TokenResponse tokenResponse) Refreshes a previously issued token from the Keycloak server using the refresh token JWT encoded string in the token response object and the provided client id and secret.KeycloakClient.refreshToken(URL tokenURL, TokenResponse tokenResponse) Refreshes a previously issued token from the Keycloak server using the refresh token JWT encoded string in the token response object.Methods in org.gcube.common.keycloak with parameters of type TokenResponseModifier and TypeMethodDescriptionprotected static StringDefaultKeycloakClient.constructBeareAuthenticationHeader(TokenResponse oidcTokenResponse) byte[]DefaultKeycloakClient.getAvatarData(String context, TokenResponse tokenResponse) byte[]DefaultKeycloakClient.getAvatarData(URL avatarURL, TokenResponse tokenResponse) byte[]KeycloakClient.getAvatarData(String context, TokenResponse tokenResponse) Retrieves the user's avatar image data from Keycloak server.byte[]KeycloakClient.getAvatarData(URL avatarURL, TokenResponse tokenResponse) Retrieves the user's avatar image data from Keycloak server.DefaultKeycloakClient.queryUMAToken(String context, TokenResponse oidcTokenResponse, String audience, List<String> permissions) DefaultKeycloakClient.queryUMAToken(URL tokenURL, TokenResponse oidcTokenResponse, String audience, List<String> permissions) KeycloakClient.queryUMAToken(String context, TokenResponse oidcTokenResponse, String audience, List<String> permissions) Queries an UMA token from the Keycloak server, by using access-token provided by theTokenResponseobject for the given audience (context), in URLEncoded form or not, and optionally a list of permissions.KeycloakClient.queryUMAToken(URL tokenURL, TokenResponse oidcTokenResponse, String audience, List<String> permissions) Queries an UMA token from the Keycloak server, by using access-token provided by theTokenResponseobject for the given audience (context), in URLEncoded form or not, and optionally a list of permissions.DefaultKeycloakClient.refreshToken(String context, String clientId, String clientSecret, TokenResponse tokenResponse) DefaultKeycloakClient.refreshToken(String context, TokenResponse tokenResponse) DefaultKeycloakClient.refreshToken(URL tokenURL, String clientId, String clientSecret, TokenResponse tokenResponse) DefaultKeycloakClient.refreshToken(URL tokenURL, TokenResponse tokenResponse) KeycloakClient.refreshToken(String context, String clientId, String clientSecret, TokenResponse tokenResponse) Refreshes a previously issued token from the Keycloak server using the refresh token JWT encoded string in the token response object and the provided client id and secret.KeycloakClient.refreshToken(String context, TokenResponse tokenResponse) Refreshes a previously issued token from the Keycloak server using the refresh token JWT encoded string in the token response object.KeycloakClient.refreshToken(URL tokenURL, String clientId, String clientSecret, TokenResponse tokenResponse) Refreshes a previously issued token from the Keycloak server using the refresh token JWT encoded string in the token response object and the provided client id and secret.KeycloakClient.refreshToken(URL tokenURL, TokenResponse tokenResponse) Refreshes a previously issued token from the Keycloak server using the refresh token JWT encoded string in the token response object. -
Uses of TokenResponse in org.gcube.common.keycloak.model
Methods in org.gcube.common.keycloak.model with parameters of type TokenResponseModifier and TypeMethodDescriptionstatic AccessTokenModelUtils.getAccessTokenFrom(TokenResponse tokenResponse) static StringModelUtils.getAccessTokenPayloadJSONStringFrom(TokenResponse tokenResponse) static StringModelUtils.getAccessTokenPayloadJSONStringFrom(TokenResponse tokenResponse, boolean prettyPrint) static RefreshTokenModelUtils.getRefreshTokenFrom(TokenResponse tokenResponse) static StringModelUtils.getRefreshTokenPayloadStringFrom(TokenResponse tokenResponse) static StringModelUtils.getRefreshTokenPayloadStringFrom(TokenResponse tokenResponse, boolean prettyPrint)