Class TwitchValidate

java.lang.Object
tv.phantombot.twitch.api.TwitchValidate

public class TwitchValidate extends Object
Handle Validate requests of the OAUTH2 token from Twitch.
Author:
ScaniaTV, IllusionaryOne, gmt2001
  • Field Details

    • validC

      public boolean validC
    • validA

      public boolean validA
  • Method Details

    • instance

      public static TwitchValidate instance()
      Method that returns the instance of TwitchValidate.
      Returns:
    • validateAPI

      public void validateAPI(String oAuthToken, String type)
      Method that validates an oAuthToken.
      Parameters:
      oAuthToken -
      type -
    • validateChat

      public void validateChat(String oAuthToken, String type)
    • hasChatScope

      public boolean hasChatScope(String scope)
    • getChatScopes

      public List<String> getChatScopes()
    • getMissingChatScopes

      public List<String> getMissingChatScopes()
    • getChatClientID

      public String getChatClientID()
    • getChatLogin

      public String getChatLogin()
    • getChatUserID

      public String getChatUserID()
    • isChatValid

      public boolean isChatValid()
    • updateChatToken

      public void updateChatToken(String token)
    • hasAPIScope

      public boolean hasAPIScope(String scope)
    • getAPIScopes

      public List<String> getAPIScopes()
    • getMissingAPIScopes

      public List<String> getMissingAPIScopes()
    • getAPIClientID

      public String getAPIClientID()
    • getAPILogin

      public String getAPILogin()
    • getAPIUserID

      public String getAPIUserID()
    • isAPIValid

      public boolean isAPIValid()
    • updateAPIToken

      public void updateAPIToken(String token)
    • checkOAuthInconsistencies

      public void checkOAuthInconsistencies(String channelName)
    • hasOAuthInconsistencies

      public boolean hasOAuthInconsistencies(String channelName)