Class RestAuthCallbackHandlerFactory
- java.lang.Object
-
- org.forgerock.openam.core.rest.authn.RestAuthCallbackHandlerFactory
-
public class RestAuthCallbackHandlerFactory extends Object
Factory class for getting the appropriate RestAuthCallbackHandlers for the given Callbacks.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static RestAuthCallbackHandlerFactorygetInstance()Gets the RestAuthCallbackHandlerFactory instance.<T extends Callback>
RestAuthCallbackHandlergetRestAuthCallbackHandler(Class<T> callbackClass)Retrieves the appropriate RestAuthCallbackHandlers for the given Callback class.
-
-
-
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
-
-