Class HttpChallengeFunction<O extends java.lang.Enum<O>,F extends java.lang.Enum<F>>
- java.lang.Object
-
- net.officefloor.frame.api.function.StaticManagedFunction<Indexed,F>
-
- net.officefloor.web.security.impl.HttpChallengeFunction<O,F>
-
- All Implemented Interfaces:
ManagedFunction<Indexed,F>,ManagedFunctionFactory<Indexed,F>
public class HttpChallengeFunction<O extends java.lang.Enum<O>,F extends java.lang.Enum<F>> extends StaticManagedFunction<Indexed,F>
ManagedFunctionFactoryto challenge the client.- Author:
- Daniel Sagenschneider
-
-
Constructor Summary
Constructors Constructor Description HttpChallengeFunction(java.lang.String httpSecurityName, HttpSecurity<?,?,?,O,F> httpSecurity)Initiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(ManagedFunctionContext<Indexed,F> context)Executes the function.-
Methods inherited from class net.officefloor.frame.api.function.StaticManagedFunction
createManagedFunction
-
-
-
-
Constructor Detail
-
HttpChallengeFunction
public HttpChallengeFunction(java.lang.String httpSecurityName, HttpSecurity<?,?,?,O,F> httpSecurity)Initiate.- Parameters:
httpSecurityName- Name of theHttpSecurity.httpSecurity-HttpSecurity.
-
-
Method Detail
-
execute
public void execute(ManagedFunctionContext<Indexed,F> context) throws java.lang.Throwable
Description copied from interface:ManagedFunctionExecutes the function.- Parameters:
context-ManagedFunctionContextfor theManagedFunction.- Throws:
java.lang.Throwable- Indicating failure of theManagedFunction.
-
-