Class HandleAuthenticationRequiredFunction
- java.lang.Object
-
- net.officefloor.frame.api.function.StaticManagedFunction<HandleAuthenticationRequiredFunction.Dependencies,Indexed>
-
- net.officefloor.web.security.impl.HandleAuthenticationRequiredFunction
-
- All Implemented Interfaces:
ManagedFunction<HandleAuthenticationRequiredFunction.Dependencies,Indexed>,ManagedFunctionFactory<HandleAuthenticationRequiredFunction.Dependencies,Indexed>
public class HandleAuthenticationRequiredFunction extends StaticManagedFunction<HandleAuthenticationRequiredFunction.Dependencies,Indexed>
ManagedFunctionto handle theAuthenticationRequiredException.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classHandleAuthenticationRequiredFunction.DependenciesDependency keys.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.StringATTRIBUTE_CHALLENGE_REQUEST_MOMENTOHttpSessionattribute for the challenge request state.
-
Constructor Summary
Constructors Constructor Description HandleAuthenticationRequiredFunction(java.lang.String[] httpSecurityNameToFlowIndex, AcceptNegotiator<int[]> challengeNegotiator)Instantiate.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidexecute(ManagedFunctionContext<HandleAuthenticationRequiredFunction.Dependencies,Indexed> context)Executes the function.-
Methods inherited from class net.officefloor.frame.api.function.StaticManagedFunction
createManagedFunction
-
-
-
-
Field Detail
-
ATTRIBUTE_CHALLENGE_REQUEST_MOMENTO
public static final java.lang.String ATTRIBUTE_CHALLENGE_REQUEST_MOMENTO
HttpSessionattribute for the challenge request state.- See Also:
- Constant Field Values
-
-
Constructor Detail
-
HandleAuthenticationRequiredFunction
public HandleAuthenticationRequiredFunction(java.lang.String[] httpSecurityNameToFlowIndex, AcceptNegotiator<int[]> challengeNegotiator)Instantiate.- Parameters:
httpSecurityNameToFlowIndex-HttpSecurityname toFlowindex (by array index).challengeNegotiator- ChallengeAcceptNegotiator.
-
-
Method Detail
-
execute
public void execute(ManagedFunctionContext<HandleAuthenticationRequiredFunction.Dependencies,Indexed> context) throws java.lang.Throwable
Description copied from interface:ManagedFunctionExecutes the function.- Parameters:
context-ManagedFunctionContextfor theManagedFunction.- Throws:
java.lang.Throwable- Indicating failure of theManagedFunction.
-
-