Interface IOAuthToken
- All Known Implementing Classes:
OAuth20Token
public interface IOAuthToken
An interface for oauth tokens
- Since:
- 18650
-
Method Summary
Modifier and TypeMethodDescriptionGet the auth type of this tokenGet the OAuth parametersvoidsign(HttpClient client) Sign a clientGet the preferences string of this auth token.
-
Method Details
-
sign
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
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
Get the auth type of this token- Returns:
- The auth type
-
getParameters
Get the OAuth parameters- Returns:
- The OAuth parameters
-