Class OAuthTokenExtractors.NamedQueryTokenExtractor
- java.lang.Object
-
- org.syncany.plugins.transfer.oauth.OAuthTokenExtractors.NamedQueryTokenExtractor
-
- All Implemented Interfaces:
OAuthTokenExtractor
- Enclosing class:
- OAuthTokenExtractors
public static class OAuthTokenExtractors.NamedQueryTokenExtractor extends java.lang.Object implements OAuthTokenExtractor
AOAuthTokenExtractors.NamedQueryTokenExtractor
is a simpleOAuthTokenExtractor
which looks for a token and a CSRF secret in the redirect URL. Field names a variables.
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OAuthTokenFinish
parse(java.lang.String uriWithToken)
Extract aOAuthTokenFinish
from a given URL.
-
-
-
Method Detail
-
parse
public OAuthTokenFinish parse(java.lang.String uriWithToken) throws java.lang.NoSuchFieldException
Description copied from interface:OAuthTokenExtractor
Extract aOAuthTokenFinish
from a given URL. It has to fail with an exception instead of returning null.- Specified by:
parse
in interfaceOAuthTokenExtractor
- Parameters:
uriWithToken
- The callback URL as it is invoked by the oauth provider- Returns:
- A
OAuthTokenFinish
with a token and sometimes a state secret - Throws:
java.lang.NoSuchFieldException
- Thrown if the URL does not contain a token or a state field (depending on the implementation)
-
-