Class WikiCallbackHandler

    • Constructor Summary

      Constructors 
      Constructor Description
      WikiCallbackHandler​(Engine engine, javax.servlet.http.HttpServletRequest request, java.lang.String username, java.lang.String password)
      Create a new callback handler.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(javax.security.auth.callback.Callback[] callbacks)  
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • WikiCallbackHandler

        public WikiCallbackHandler​(Engine engine,
                                   javax.servlet.http.HttpServletRequest request,
                                   java.lang.String username,
                                   java.lang.String password)
        Create a new callback handler.
        Parameters:
        engine - the Engine
        request - the user's HTTP request. If passed as null, later requests for HttpRequestCallback will return an UnsupportedCallbackException
        username - the username
        password - the password
    • Method Detail

      • handle

        public void handle​(javax.security.auth.callback.Callback[] callbacks)
                    throws java.io.IOException,
                           javax.security.auth.callback.UnsupportedCallbackException
        Specified by:
        handle in interface javax.security.auth.callback.CallbackHandler
        Throws:
        java.io.IOException
        javax.security.auth.callback.UnsupportedCallbackException
        See Also:
        CallbackHandler.handle(javax.security.auth.callback.Callback[])