Class FSAuthnDecisionHandler
- java.lang.Object
-
- com.sun.identity.federation.services.FSAuthnDecisionHandler
-
public class FSAuthnDecisionHandler extends Object
Used byIDPto decide which authentication to use to meet the need of requested authentication context.
-
-
Constructor Summary
Constructors Constructor Description FSAuthnDecisionHandler(String realm, String entityID, jakarta.servlet.http.HttpServletRequest request)Constructs a newFSAuthnDecisionHandlerobject.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description FSAuthContextResultdecideAuthnContext(List authContextRef, String presentAuthContext, String authType)Decides if present authentication context is sufficient comparing to the requested authentication context.FSAuthContextResultgetURLForAuthnContext(List authContextClassRef)Finds authentication context result based on the request authentication context.FSAuthContextResultgetURLForAuthnContext(List authContextClassRef, String authType)Finds authentication context result based on the request authentication context and comparison type.
-
-
-
Constructor Detail
-
FSAuthnDecisionHandler
public FSAuthnDecisionHandler(String realm, String entityID, jakarta.servlet.http.HttpServletRequest request)
Constructs a newFSAuthnDecisionHandlerobject. It handles authentication decision based on the configuration per identity provider.- Parameters:
realm- The realm under which the entity resides.entityID- hosted identity provider entity IDrequest- http servlet request
-
-
Method Detail
-
decideAuthnContext
public FSAuthContextResult decideAuthnContext(List authContextRef, String presentAuthContext, String authType)
Decides if present authentication context is sufficient comparing to the requested authentication context.- Parameters:
authContextRef- requested authentication contextspresentAuthContext- present authentication contextauthType- authentication context comparison type. The possible values areexact,minimum,better, andmaximum.- Returns:
FSAuthContextResultobject with login url set if the present authentication context is not sufficient; login url set tonullif the present authentication context is sufficient. Returnnullif it cannot be decided or appropriate authentication context cannot be obtained.
-
getURLForAuthnContext
public FSAuthContextResult getURLForAuthnContext(List authContextClassRef, String authType)
Finds authentication context result based on the request authentication context and comparison type.- Parameters:
authContextClassRef- list of requested authentication context class referencesauthType- requested authentication context comparison type. Possible values areexact,minimum,better, andmaximum- Returns:
FSAuthContextResultobject
-
getURLForAuthnContext
public FSAuthContextResult getURLForAuthnContext(List authContextClassRef)
Finds authentication context result based on the request authentication context. Comparison type is set to minimum.- Parameters:
authContextClassRef- list of requested authentication context class references- Returns:
FSAuthContextResultobject
-
-