Interface IOAuthToken
-
- All Known Implementing Classes:
OAuth20Token
public interface IOAuthToken
An interface for oauth tokens- Since:
- 18650
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description OAuthVersiongetOAuthType()Get the auth type of this tokenIOAuthParametersgetParameters()Get the OAuth parametersvoidsign(HttpClient client)Sign a clientjava.lang.StringtoPreferencesString()Get the preferences string of this auth token.
-
-
-
Method Detail
-
sign
void sign(HttpClient client) throws OAuthException
Sign a client- Parameters:
client- The client to sign- Throws:
OAuthException- if the OAuth token type is unknown (AKA we don't know how to handle it)
-
toPreferencesString
java.lang.String toPreferencesString()
Get the preferences string of this auth token. This should match the expected return body from the authentication server. For OAuth, this is typically JSON.- Returns:
- The preferences string
-
getOAuthType
OAuthVersion getOAuthType()
Get the auth type of this token- Returns:
- The auth type
-
getParameters
IOAuthParameters getParameters()
Get the OAuth parameters- Returns:
- The OAuth parameters
-
-