Package org.syncany.plugins.transfer.oauth
-
Interface Summary Interface Description OAuthGenerator ForTransferPlugin
s that base their authentication on OAuth, a generator class can be used to create the authentication URL and check the user-provided token.OAuthGenerator.WithExtractor Use a customOAuthTokenExtractor
instead of the default one which depends on theOAuthMode
in use.OAuthGenerator.WithInterceptor Use a customOAuthTokenInterceptor
instead of the default one which depends on theOAuthMode
in use.OAuthGenerator.WithNoRedirectMode If an OAuth based plugin also supports copy&pasting a token from a website it should extend this interface.OAuthTokenExtractor A OAuthTokenExtractor is responsible for the extraction of anOAuthTokenFinish
from a given URL string.OAuthTokenInterceptor A OAuthTokenInterceptor is an extension of anHttpHandler
which intercepts calls to a callback URL depending on the queried path. -
Class Summary Class Description OAuthTokenExtractors Factory class to generate some commonOAuthTokenExtractor
s.OAuthTokenExtractors.NamedQueryTokenExtractor AOAuthTokenExtractors.NamedQueryTokenExtractor
is a simpleOAuthTokenExtractor
which looks for a token and a CSRF secret in the redirect URL.OAuthTokenFinish AOAuthTokenFinish
is a container to hold a pair of a token and a CSRF field.OAuthTokenInterceptors Factory class to generate some commonOAuthTokenInterceptor
s.OAuthTokenInterceptors.HashTokenInterceptor OAuthTokenInterceptor
implementation which bypasses some protection mechanisms to allow the token extraction.OAuthTokenInterceptors.RedirectTokenInterceptor AOAuthTokenInterceptors.RedirectTokenInterceptor
can be seen as an emptyOAuthTokenInterceptor
because it only redirects to the next step of the OAuth process which is the extraction of the token from the URL.OAuthTokenWebListener This class creates a server handling the OAuth callback URLs.OAuthTokenWebListener.Builder OAuthWebResponses Factory class to generate some commonOAuthWebResponse
s. -
Enum Summary Enum Description OAuthMode OAuth basically provides two different types of implicit grant. -
Annotation Types Summary Annotation Type Description OAuth This annotation is used to identify OAuth plugins by marking the correspondingTransferSettings
class.