public class DoManageNameID extends Object
Constructor and Description |
---|
DoManageNameID() |
Modifier and Type | Method and Description |
---|---|
static ManageNameIDServiceElement |
getIDPManageNameIDConfig(String realm,
String entityId,
String binding)
Returns first ManageNameID configuration in an entity under
the realm.
|
static String |
getMNIBindingInfo(javax.servlet.http.HttpServletRequest request,
String metaAlias,
String hostEntityRole,
String remoteEntityID)
Returns binding information of MNI Service for remote entity
from request or meta configuration.
|
static ManageNameIDServiceElement |
getSPManageNameIDConfig(String realm,
String entityId,
String binding)
Returns first ManageNameID configuration in an entity under
the realm.
|
static void |
initiateManageNameIDRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
String metaAlias,
String remoteEntityID,
Map paramsMap)
Parses the request parameters and builds the ManageNameID
Request to sent to remote Entity.
|
static void |
processHttpRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map paramsMap)
Parses the request parameters and process the ManageNameID
Request from the remote entity.
|
static boolean |
processManageNameIDResponse(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map paramsMap)
Parses the request parameters and builds the Authentication
Request to sent to the IDP.
|
static boolean |
processMNIResponsePOST(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map paramsMap) |
static void |
processPOSTRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map paramsMap) |
static void |
processSOAPRequest(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
Map paramsMap)
Parses the request parameters and process the ManageNameID
Request from the remote entity.
|
static void |
signMNIRequest(String certAlias,
ManageNameIDRequest mniRequest) |
public static void initiateManageNameIDRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, String metaAlias, String remoteEntityID, Map paramsMap) throws SAML2Exception
request
- the HttpServletRequest.response
- the HttpServletResponse.metaAlias
- entityID of hosted entity.remoteEntityID
- entityID of remote entity.paramsMap
- Map of all other parameters.SAML2Exception
- if error initiating request to remote entity.public static String getMNIBindingInfo(javax.servlet.http.HttpServletRequest request, String metaAlias, String hostEntityRole, String remoteEntityID) throws SAML2Exception
request
- the HttpServletRequest.metaAlias
- entityID of hosted entity.hostEntityRole
- Role of hosted entity.remoteEntityID
- entityID of remote entity.SAML2Exception
- if no binding information is configured.public static void processHttpRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map paramsMap) throws SAML2Exception, SessionException, javax.servlet.ServletException
request
- the HttpServletRequest.response
- the HttpServletResponse.paramsMap
- Map of all other parameters.SAML2Exception
- if error occurred while processing the request.SessionException
- if error processing the request from remote entity.javax.servlet.ServletException
- if request length is invalid.public static void processSOAPRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map paramsMap) throws SAML2Exception, IOException, SOAPException, javax.servlet.ServletException
request
- the HttpServletRequest.response
- the HttpServletResponse.paramsMap
- Map of all other parameters.SAML2Exception
- if error occurred while processing the request.IOException
- if error generation DOM from input stream.SOAPException
- if error generating soap message.javax.servlet.ServletException
- if request length is invalid.public static boolean processManageNameIDResponse(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map paramsMap) throws SAML2Exception
request
- the HttpServletRequest.response
- the HttpServletResponse.paramsMap
- Map of all other parameters.SAML2Exception
- if error initiating request to IDP.public static ManageNameIDServiceElement getIDPManageNameIDConfig(String realm, String entityId, String binding) throws SAML2MetaException, SessionException
realm
- The realm under which the entity resides.entityId
- ID of the entity to be retrieved.binding
- bind type need to has to be matched.ManageNameIDServiceElement
for the entity or nullSAML2MetaException
- if unable to retrieve the first identity
provider's SSO configuration.SessionException
- invalid or expired single-sign-on sessionpublic static ManageNameIDServiceElement getSPManageNameIDConfig(String realm, String entityId, String binding) throws SAML2MetaException, SessionException
realm
- The realm under which the entity resides.entityId
- ID of the entity to be retrieved.binding
- bind type need to has to be matched.ManageNameIDServiceElement
for the entity or nullSAML2MetaException
- if unable to retrieve the first identity
provider's SSO configuration.SessionException
- invalid or expired single-sign-on session.public static void signMNIRequest(String certAlias, ManageNameIDRequest mniRequest) throws SAML2Exception
SAML2Exception
public static void processPOSTRequest(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map paramsMap) throws SAML2Exception, IOException, SOAPException, SessionException, javax.servlet.ServletException
SAML2Exception
IOException
SOAPException
SessionException
javax.servlet.ServletException
public static boolean processMNIResponsePOST(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, Map paramsMap) throws SAML2Exception
SAML2Exception
Copyright © 2010–2025 Open Identity Platform Community. All rights reserved.