public class DefaultIDPAdapter extends Object implements SAML2IdentityProviderAdapter
DefaultIDPAdapter
implements a SAML2 Identity Provider Adapter.Constructor and Description |
---|
DefaultIDPAdapter()
Default Constructor.
|
Modifier and Type | Method and Description |
---|---|
void |
initialize(String hostedEntityID,
String realm)
Default implementation, takes no action.
|
boolean |
preAuthentication(String hostedEntityID,
String realm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
AuthnRequest authnRequest,
Object session,
String reqID,
String relayState)
Default implementation, takes no action and returns false (no interruption to processing).
|
void |
preSendFailureResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String faultCode,
String faultDetail)
Default implementation, takes no action.
|
boolean |
preSendResponse(AuthnRequest authnRequest,
String hostProviderID,
String realm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Object session,
String reqID,
String relayState)
Default implementation, takes no action and returns false (no interruption to processing).
|
void |
preSignResponse(AuthnRequest authnRequest,
Response res,
String hostProviderID,
String realm,
javax.servlet.http.HttpServletRequest request,
Object session,
String relayState)
Called after the SAML Response object is created, but before the Response is signed/encrypted.
|
boolean |
preSingleSignOn(String hostedEntityID,
String realm,
javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
AuthnRequest authnRequest,
String reqID)
Default implementation, takes no action and returns false (no interruption to processing).
|
public void initialize(String hostedEntityID, String realm)
initialize
in interface SAML2IdentityProviderAdapter
hostedEntityID
- entity ID for the hosted IDPrealm
- realm of the hosted IDPpublic boolean preSingleSignOn(String hostedEntityID, String realm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AuthnRequest authnRequest, String reqID) throws SAML2Exception
preSingleSignOn
in interface SAML2IdentityProviderAdapter
hostedEntityID
- entity ID for the hosted IDPrealm
- realm of the hosted IDPrequest
- servlet requestresponse
- servlet responseauthnRequest
- the original authentication request sent from SPreqID
- the id to use for continuation of processing if the adapter redirectsSAML2Exception
- for any exceptions occurring in the adapter. The federation process will continue.public boolean preAuthentication(String hostedEntityID, String realm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AuthnRequest authnRequest, Object session, String reqID, String relayState) throws SAML2Exception
preAuthentication
in interface SAML2IdentityProviderAdapter
hostedEntityID
- entity ID for the hosted IDPrealm
- realm of the hosted IDPrequest
- servlet requestresponse
- servlet responseauthnRequest
- the original authentication request sent from SPsession
- the user session or null if the user has no sessionreqID
- the id to use for continuation of processing if the adapter redirectsrelayState
- the relayState that will be used in the redirectSAML2Exception
- for any exceptions occurring in the adapter. The federation process will continue.public boolean preSendResponse(AuthnRequest authnRequest, String hostProviderID, String realm, javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Object session, String reqID, String relayState) throws SAML2Exception
preSendResponse
in interface SAML2IdentityProviderAdapter
authnRequest
- original authnrequesthostProviderID
- hosted providerID.realm
- realm of the hosted IDPrequest
- HttpServletRequestresponse
- HttpServletResponsesession
- the user session or null if the user has no sessionreqID
- the id to use for continuation of processing if the adapter redirectsrelayState
- the relayState that will be used in the redirectSAML2Exception
- if error occurs. The federation process will continue.public void preSendFailureResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String faultCode, String faultDetail) throws SAML2Exception
preSendFailureResponse
in interface SAML2IdentityProviderAdapter
request
- HttpServletRequestresponse
- HttpServletResponsefaultCode
- the fault code that will be returned in the SAML responsefaultDetail
- the fault detail that will be returned in the SAML responseSAML2Exception
- if error occurs. The federation process will continue.public void preSignResponse(AuthnRequest authnRequest, Response res, String hostProviderID, String realm, javax.servlet.http.HttpServletRequest request, Object session, String relayState) throws SAML2Exception
SAML2IdentityProviderAdapter
preSignResponse
in interface SAML2IdentityProviderAdapter
authnRequest
- The original SAML Authentication Request (may be null if this was an IdP initiated SSO).res
- The SAML Response.hostProviderID
- The entity ID of the IdP.realm
- The realm the IdP belongs to.request
- The HttpServletRequest object.session
- The user session or null if the user has no session.relayState
- The relayState that will be used in the redirectSAML2Exception
- If an error occurs. The federation process will continue.Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.