Class RestAuthCallbackHandlerFactory


  • public class RestAuthCallbackHandlerFactory
    extends Object
    Factory class for getting the appropriate RestAuthCallbackHandlers for the given Callbacks.
    • Method Detail

      • getInstance

        public static RestAuthCallbackHandlerFactory getInstance()
        Gets the RestAuthCallbackHandlerFactory instance.
        Returns:
        The RestAuthCallbackHandlerFactory singleton instance.
      • getRestAuthCallbackHandler

        public <T extends Callback> RestAuthCallbackHandler getRestAuthCallbackHandler​(Class<T> callbackClass)
                                                                                throws RestAuthException
        Retrieves the appropriate RestAuthCallbackHandlers for the given Callback class.
        Type Parameters:
        T - A class which implements the Callback interface.
        Parameters:
        callbackClass - The class of the Callback to get the RestAuthCallbackHandler for.
        Returns:
        The RestAuthCallbackHandler for the given Callback class.
        Throws:
        RestAuthException