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 TypeMethodDescriptionvoidcheckOAuthInconsistencies(String channelName) booleanhasAPIScope(String scope) booleanhasAppScope(String scope) booleanhasChatScope(String scope) booleanhasOAuthInconsistencies(String channelName) static TwitchValidateinstance()Method that returns the instance of TwitchValidate.booleanbooleanbooleanvoidupdateAPIToken(String token) voidupdateAppToken(String token) voidupdateChatToken(String token) voidvalidateAPI(String oAuthToken, String type) Method that validates an oAuthToken.voidvalidateApp(String oAuthToken, String type) voidvalidateChat(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
-