public class AuthenticationCallbackRequest
extends java.lang.Object
implements java.lang.Runnable
Constructor and Description |
---|
AuthenticationCallbackRequest(java.net.Socket socket,
java.net.URL authPage,
java.net.URL failurePage,
java.net.URL successPage)
Construct the request and specify which HTML files to server.
|
Modifier and Type | Method and Description |
---|---|
void |
run() |
void |
setAuthenticationListener(AuthenticationListener receiver) |
public AuthenticationCallbackRequest(java.net.Socket socket, java.net.URL authPage, java.net.URL failurePage, java.net.URL successPage)
socket
- Connection socket of the requestauthPage
- HTML page that twitch.tv will send the access_token tofailurePage
- HTML page that shows auth error to usersuccessPage
- HTML page that shows auth success to userpublic void setAuthenticationListener(AuthenticationListener receiver)
public void run()
run
in interface java.lang.Runnable