Uses of Class
org.openhab.core.auth.client.oauth2.AccessTokenResponse
Packages that use AccessTokenResponse
-
Uses of AccessTokenResponse in org.openhab.core.auth.client.oauth2
Methods in org.openhab.core.auth.client.oauth2 that return AccessTokenResponseModifier and TypeMethodDescriptionOAuthClientService.getAccessTokenByClientCredentials(@Nullable String scope) Use case 4 - Client Credentials This is used to get the AccessToken by purely the client credential.OAuthClientService.getAccessTokenByImplicit(@Nullable String redirectURI, @Nullable String scope, @Nullable String state) Use case 5 - Implicit Grant The implicit grant usually involves browser/javascript redirection flows.OAuthClientService.getAccessTokenByResourceOwnerPasswordCredentials(String username, String password, @Nullable String scope) Use case 2 - Resource Owner Password Credentials This is for when the username and password of the actual resource owner (user) is known to the client.@Nullable AccessTokenResponseOAuthClientService.getAccessTokenResponse()Use case 7 - get access token response.OAuthClientService.getAccessTokenResponseByAuthorizationCode(String authorizationCode, @Nullable String redirectURI) Use case 1 Part (D) This is a continuation of the flow of Authorization Code Grant, part (D).OAuthClientService.refreshToken()Use case 3 - refreshToken.Methods in org.openhab.core.auth.client.oauth2 with parameters of type AccessTokenResponseModifier and TypeMethodDescriptionvoidOAuthClientService.importAccessTokenResponse(AccessTokenResponse accessTokenResponse) Use case 6 - Import This method is used for importing/ migrating existing Access Token Response to be stored by this service.voidAccessTokenRefreshListener.onAccessTokenResponse(AccessTokenResponse tokenResponse) Notifies of a successful token response fromOAuthClientService.refreshToken().