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>
ManagedFunction to handle the
AuthenticationRequiredException.- Author:
- Daniel Sagenschneider
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumDependency keys. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final StringHttpSessionattribute for the challenge request state. -
Constructor Summary
ConstructorsConstructorDescriptionHandleAuthenticationRequiredFunction(String[] httpSecurityNameToFlowIndex, AcceptNegotiator<int[]> challengeNegotiator) Instantiate. -
Method Summary
Modifier and TypeMethodDescriptionvoidExecutes the function.Methods inherited from class net.officefloor.frame.api.function.StaticManagedFunction
createManagedFunction
-
Field Details
-
ATTRIBUTE_CHALLENGE_REQUEST_MOMENTO
HttpSessionattribute for the challenge request state.- See Also:
-
-
Constructor Details
-
HandleAuthenticationRequiredFunction
public HandleAuthenticationRequiredFunction(String[] httpSecurityNameToFlowIndex, AcceptNegotiator<int[]> challengeNegotiator) Instantiate.- Parameters:
httpSecurityNameToFlowIndex-HttpSecurityname toFlowindex (by array index).challengeNegotiator- ChallengeAcceptNegotiator.
-
-
Method Details
-
execute
public void execute(ManagedFunctionContext<HandleAuthenticationRequiredFunction.Dependencies, Indexed> context) throws ThrowableDescription copied from interface:ManagedFunctionExecutes the function.- Parameters:
context-ManagedFunctionContextfor theManagedFunction.- Throws:
Throwable- Indicating failure of theManagedFunction.
-