Class OAuth2StandaloneCallbackHandler

java.lang.Object
org.faceless.publisher.type.OAuth2StandaloneCallbackHandler
All Implemented Interfaces:
CallbackHandler

public class OAuth2StandaloneCallbackHandler extends Object implements CallbackHandler
An implementation of CallbackHandler that can support OAuth2Callback It uses the com.sun.net.httpserver package to create a local webserver and then directs the user to that URL to begin the authentication process.
  • Constructor Details

    • OAuth2StandaloneCallbackHandler

      public OAuth2StandaloneCallbackHandler()
      Create an OAuth2StandaloneCallbackHandler on the default port
    • OAuth2StandaloneCallbackHandler

      public OAuth2StandaloneCallbackHandler(int port)
      Create an OAuth2StandaloneCallbackHandler on the specified port
      Parameters:
      port - the port to start the webserver on, eg 8080
    • OAuth2StandaloneCallbackHandler

      public OAuth2StandaloneCallbackHandler(String scheme, String host, int port, String prefix)
      Create an OAuth2StandaloneCallbackHandler on the specified port
      Parameters:
      scheme - either "http" or "https"
      host - the host, typically "localhost"
      port - the port to start the webserver on, eg 8080
      prefix - the prefix for requests to this webserver, typically "/"
  • Method Details