Interface OAuthTokenExtractor
-
- All Known Implementing Classes:
OAuthTokenExtractors.NamedQueryTokenExtractor
public interface OAuthTokenExtractor
A OAuthTokenExtractor is responsible for the extraction of anOAuthTokenFinishfrom a given URL string. Such URLs a are typically callback URLs called by an oauth provider who adds token and status fields to such an URL.OAuthTokenExtractorsprovides some predefined OAuthTokenExtractors.See:
OAuthTokenExtractors
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OAuthTokenFinishparse(java.lang.String urlWithToken)Extract aOAuthTokenFinishfrom a given URL.
-
-
-
Method Detail
-
parse
OAuthTokenFinish parse(java.lang.String urlWithToken) throws java.lang.NoSuchFieldException
Extract aOAuthTokenFinishfrom a given URL. It has to fail with an exception instead of returning null.- Parameters:
urlWithToken- The callback URL as it is invoked by the oauth provider- Returns:
- A
OAuthTokenFinishwith 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)
-
-