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
OAuthTokenInterceptorimplementation 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.HashTokenInterceptorappends the fragment variables to the query parameters of the URL.
-
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringPLACEHOLDER_FOR_EXTRACT_PATH
-
Constructor Summary
Constructors Constructor Description HashTokenInterceptor()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetPathPrefix()Get the path handled by the interceptor.voidhandleRequest(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:OAuthTokenInterceptorGet the path handled by the interceptor.- Specified by:
getPathPrefixin interfaceOAuthTokenInterceptor- Returns:
- The path handled by the interceptor.
-
handleRequest
public void handleRequest(io.undertow.server.HttpServerExchange exchange) throws java.lang.Exception
- Specified by:
handleRequestin interfaceio.undertow.server.HttpHandler- Throws:
java.lang.Exception
-
-