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 theAuthenticationRequiredException
.- Author:
- Daniel Sagenschneider
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
HandleAuthenticationRequiredFunction.Dependencies
Dependency keys.
-
Field Summary
Fields Modifier and Type Field Description static java.lang.String
ATTRIBUTE_CHALLENGE_REQUEST_MOMENTO
HttpSession
attribute 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 void
execute(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
HttpSession
attribute 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
-HttpSecurity
name toFlow
index (by array index).challengeNegotiator
- ChallengeAcceptNegotiator
.
-
-
Method Detail
-
execute
public void execute(ManagedFunctionContext<HandleAuthenticationRequiredFunction.Dependencies,Indexed> context) throws java.lang.Throwable
Description copied from interface:ManagedFunction
Executes the function.- Parameters:
context
-ManagedFunctionContext
for theManagedFunction
.- Throws:
java.lang.Throwable
- Indicating failure of theManagedFunction
.
-
-