Interface OAuthTokenExtractor
-
- All Known Implementing Classes:
OAuthTokenExtractors.NamedQueryTokenExtractor
public interface OAuthTokenExtractor
A OAuthTokenExtractor is responsible for the extraction of anOAuthTokenFinish
from 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.OAuthTokenExtractors
provides some predefined OAuthTokenExtractors.See:
OAuthTokenExtractors
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OAuthTokenFinish
parse(java.lang.String urlWithToken)
Extract aOAuthTokenFinish
from a given URL.
-
-
-
Method Detail
-
parse
OAuthTokenFinish parse(java.lang.String urlWithToken) throws java.lang.NoSuchFieldException
Extract aOAuthTokenFinish
from 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
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)
-
-