Package tv.phantombot.twitch.api
Class TwitchValidate
java.lang.Object
tv.phantombot.twitch.api.TwitchValidate
Handle Validate requests of the OAUTH2 token from Twitch.
- Author:
- ScaniaTV, IllusionaryOne, gmt2001
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionvoid
checkOAuthInconsistencies
(String channelName) boolean
hasAPIScope
(String scope) boolean
hasAppScope
(String scope) boolean
hasChatScope
(String scope) boolean
hasOAuthInconsistencies
(String channelName) static TwitchValidate
instance()
Method that returns the instance of TwitchValidate.boolean
boolean
boolean
void
updateAPIToken
(String token) void
updateAppToken
(String token) void
updateChatToken
(String token) void
validateAPI
(String oAuthToken, String type) Method that validates an oAuthToken.void
validateApp
(String oAuthToken, String type) void
validateChat
(String oAuthToken, String type)
-
Field Details
-
validC
public boolean validC -
validA
public boolean validA -
validT
public boolean validT
-
-
Method Details
-
instance
Method that returns the instance of TwitchValidate.- Returns:
-
validateAPI
Method that validates an oAuthToken.- Parameters:
oAuthToken
-type
-
-
validateChat
-
validateApp
-
hasChatScope
-
getChatScopes
-
getMissingChatScopes
-
getChatClientID
-
getChatLogin
-
getChatUserID
-
isChatValid
public boolean isChatValid() -
updateChatToken
-
hasAPIScope
-
getAPIScopes
-
getMissingAPIScopes
-
getAPIClientID
-
getAPILogin
-
getAPIUserID
-
isAPIValid
public boolean isAPIValid() -
updateAPIToken
-
hasAppScope
-
getAppScopes
-
getMissingAppScopes
-
getAppClientID
-
isAppValid
public boolean isAppValid() -
updateAppToken
-
checkOAuthInconsistencies
-
hasOAuthInconsistencies
-