Package de.uhilger.httpserver.oauth
Class BearerRefreshHandler
- java.lang.Object
-
- de.uhilger.httpserver.oauth.BearerLoginHandler
-
- de.uhilger.httpserver.oauth.BearerRefreshHandler
-
- All Implemented Interfaces:
HttpHandler
public class BearerRefreshHandler extends BearerLoginHandler
Einen abgelaufenen Token mit Hilfe eines Refresh Token erneuern Gemaess https://www.oauth.com/oauth2-servers/making-authenticated-requests/refreshing-an-access-token/ sieht die HTTP Anfrage zum Refresh wie folgt aus: POST /oauth/token HTTP/1.1 Host: authorization-server.com grant_type=refresh_token &refresh_token=xxxxxxxxxxx &client_id=xxxxxxxxxx &client_secret=xxxxxxxxxx
-
-
Field Summary
-
Fields inherited from class de.uhilger.httpserver.oauth.BearerLoginHandler
ATTR_AUTHENTICATOR, BEARER_CONTENT_TYPE, CACHE_CONTROL, NO_CACHE, NO_STORE, PRAGMA
-
-
Constructor Summary
Constructors Constructor Description BearerRefreshHandler()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
handle(HttpExchange exchange)
Refresh-Anfrage ausfuehren-
Methods inherited from class de.uhilger.httpserver.oauth.BearerLoginHandler
handleLoginResponse
-
-
-
-
Method Detail
-
handle
public void handle(HttpExchange exchange) throws IOException
Refresh-Anfrage ausfuehren- Specified by:
handle
in interfaceHttpHandler
- Overrides:
handle
in classBearerLoginHandler
- Parameters:
exchange
- das Objekt mit Informationen zu HTTP-Anfrage und -Antwort- Throws:
IOException
-
-