Class OAuthTokenInterceptors
- java.lang.Object
-
- org.syncany.plugins.transfer.oauth.OAuthTokenInterceptors
-
public abstract class OAuthTokenInterceptors extends java.lang.Object
Factory class to generate some commonOAuthTokenInterceptors.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classOAuthTokenInterceptors.HashTokenInterceptorOAuthTokenInterceptorimplementation which bypasses some protection mechanisms to allow the token extraction.static classOAuthTokenInterceptors.RedirectTokenInterceptorAOAuthTokenInterceptors.RedirectTokenInterceptorcan be seen as an emptyOAuthTokenInterceptorbecause it only redirects to the next step of the OAuth process which is the extraction of the token from the URL.
-
Constructor Summary
Constructors Constructor Description OAuthTokenInterceptors()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static OAuthTokenInterceptornewTokenInterceptorForMode(OAuthMode mode)Get a commonOAuthTokenInterceptordepending on the chosenOAuthMode.
-
-
-
Constructor Detail
-
OAuthTokenInterceptors
public OAuthTokenInterceptors()
-
-
Method Detail
-
newTokenInterceptorForMode
public static OAuthTokenInterceptor newTokenInterceptorForMode(OAuthMode mode)
Get a commonOAuthTokenInterceptordepending on the chosenOAuthMode. IfOAuthMode.BROWSERis used aOAuthTokenInterceptors.HashTokenInterceptoris returned and aOAuthTokenInterceptors.RedirectTokenInterceptorinOAuthMode.SERVER.- Parameters:
mode-OAuthModesupported by theTransferPlugin.- Returns:
- Either a
OAuthTokenInterceptors.HashTokenInterceptoror aOAuthTokenInterceptors.RedirectTokenInterceptor
-
-