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 SummaryFields Modifier and Type Field Description static java.lang.StringPLACEHOLDER_FOR_EXTRACT_PATH
 - 
Constructor SummaryConstructors Constructor Description HashTokenInterceptor()
 - 
Method SummaryAll 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_PATHpublic static final java.lang.String PLACEHOLDER_FOR_EXTRACT_PATH - See Also:
- Constant Field Values
 
 
- 
 - 
Constructor Detail- 
HashTokenInterceptorpublic HashTokenInterceptor() 
 
- 
 - 
Method Detail- 
getPathPrefixpublic java.lang.String getPathPrefix() Description copied from interface:OAuthTokenInterceptorGet the path handled by the interceptor.- Specified by:
- getPathPrefixin interface- OAuthTokenInterceptor
- Returns:
- The path handled by the interceptor.
 
 - 
handleRequestpublic void handleRequest(io.undertow.server.HttpServerExchange exchange) throws java.lang.Exception - Specified by:
- handleRequestin interface- io.undertow.server.HttpHandler
- Throws:
- java.lang.Exception
 
 
- 
 
-