Package com.sun.identity.saml2.plugins
Class DefaultFedletAdapter
- java.lang.Object
-
- com.sun.identity.saml2.plugins.FedletAdapter
-
- com.sun.identity.saml2.plugins.DefaultFedletAdapter
-
public class DefaultFedletAdapter extends FedletAdapter
TheDefaultFedletAdapterclass provides default implementation forFedletAdapter.
-
-
Field Summary
-
Fields inherited from class com.sun.identity.saml2.plugins.FedletAdapter
HOSTED_ENTITY_ID
-
-
Constructor Summary
Constructors Constructor Description DefaultFedletAdapter()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleandoFedletSLO(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, LogoutRequest logoutReq, String hostedEntityID, String idpEntityID, List siList, String nameIDValue, String binding)Invokes after Fedlet receives SLO request from IDP.voidinitialize(Map initParams)Initializes the fedlet adapter, this method will only be executed once after creation of the adapter instance.voidonFedletSLOFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, LogoutRequest logoutReq, LogoutResponse logoutRes, String hostedEntityID, String idpEntityID, String binding)Invokes after Fedlet receives SLO response from IDP and the SLO status is not success.voidonFedletSLOSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, LogoutRequest logoutReq, LogoutResponse logoutRes, String hostedEntityID, String idpEntityID, String binding)Invokes after Fedlet receives SLO response from IDP and the SLO status is success.
-
-
-
Method Detail
-
initialize
public void initialize(Map initParams)
Initializes the fedlet adapter, this method will only be executed once after creation of the adapter instance.- Specified by:
initializein classFedletAdapter- Parameters:
initParams- initial set of parameters configured in the fedlet for this adapter. One of the parameters namedHOSTED_ENTITY_IDrefers to the ID of this fedlet entity.
-
doFedletSLO
public boolean doFedletSLO(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, LogoutRequest logoutReq, String hostedEntityID, String idpEntityID, List siList, String nameIDValue, String binding) throws SAML2ExceptionInvokes after Fedlet receives SLO request from IDP. It does the work of logout the user.- Overrides:
doFedletSLOin classFedletAdapter- Parameters:
request- servlet requestresponse- servlet responsehostedEntityID- entity ID for the fedletidpEntityID- entity id for the IDP to which the request is received from.siList- List of SessionIndex whose session to be logged outnameIDValue- nameID value whose session to be logged outbinding- Single Logout binding used, one of following values:SAML2Constants.SOAP,SAML2Constants.HTTP_POST,SAML2Constants.HTTP_REDIRECT- Returns:
trueif user is logged out successfully;falseotherwise.- Throws:
SAML2Exception- if user want to fail the process.
-
onFedletSLOSuccess
public void onFedletSLOSuccess(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, LogoutRequest logoutReq, LogoutResponse logoutRes, String hostedEntityID, String idpEntityID, String binding) throws SAML2ExceptionInvokes after Fedlet receives SLO response from IDP and the SLO status is success.- Overrides:
onFedletSLOSuccessin classFedletAdapter- Parameters:
request- servlet requestresponse- servlet responselogoutReq- SAML2LogoutRequestobjectlogoutRes- SAML2LogoutResponseobjecthostedEntityID- entity ID for the fedletidpEntityID- entity id for the IDP to which the logout response is received from.binding- Single Logout binding used, one of following values:SAML2Constants.SOAP,SAML2Constants.HTTP_POST,SAML2Constants.HTTP_REDIRECT- Throws:
SAML2Exception- if user want to fail the process.
-
onFedletSLOFailure
public void onFedletSLOFailure(jakarta.servlet.http.HttpServletRequest request, jakarta.servlet.http.HttpServletResponse response, LogoutRequest logoutReq, LogoutResponse logoutRes, String hostedEntityID, String idpEntityID, String binding) throws SAML2ExceptionInvokes after Fedlet receives SLO response from IDP and the SLO status is not success.- Overrides:
onFedletSLOFailurein classFedletAdapter- Parameters:
request- servlet requestresponse- servlet responselogoutReq- SAML2LogoutRequestobjectlogoutRes- SAML2LogoutResponseobjecthostedEntityID- entity ID for the fedletidpEntityID- entity id for the IDP to which the logout response is received from.binding- Single Logout binding used, one of following values:SAML2Constants.SOAP,SAML2Constants.HTTP_POST,SAML2Constants.HTTP_REDIRECT- Throws:
SAML2Exception- if user want to fail the process.
-
-