Class OAuthTokenInterceptors.HashTokenInterceptor
- java.lang.Object
-
- org.syncany.plugins.transfer.oauth.OAuthTokenInterceptors.HashTokenInterceptor
-
- All Implemented Interfaces:
io.undertow.server.HttpHandler
,OAuthTokenInterceptor
- Enclosing class:
- OAuthTokenInterceptors
public static class OAuthTokenInterceptors.HashTokenInterceptor extends java.lang.Object implements OAuthTokenInterceptor
OAuthTokenInterceptor
implementation which bypasses some protection mechanisms to allow the token extraction. InOAuthMode.BROWSER
, the service provider uses the fragment part (the part after the #) of a URL to send over a token. However, this part cannot be retrieved by a WebServer. AOAuthTokenInterceptors.HashTokenInterceptor
appends the fragment variables to the query parameters of the URL.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
PLACEHOLDER_FOR_EXTRACT_PATH
-
Constructor Summary
Constructors Constructor Description HashTokenInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.String
getPathPrefix()
Get the path handled by the interceptor.void
handleRequest(io.undertow.server.HttpServerExchange exchange)
-
-
-
Field Detail
-
PLACEHOLDER_FOR_EXTRACT_PATH
public static final java.lang.String PLACEHOLDER_FOR_EXTRACT_PATH
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HashTokenInterceptor
public HashTokenInterceptor()
-
-
Method Detail
-
getPathPrefix
public java.lang.String getPathPrefix()
Description copied from interface:OAuthTokenInterceptor
Get the path handled by the interceptor.- Specified by:
getPathPrefix
in interfaceOAuthTokenInterceptor
- Returns:
- The path handled by the interceptor.
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws java.lang.Exception
- Specified by:
handleRequest
in interfaceio.undertow.server.HttpHandler
- Throws:
java.lang.Exception
-
-