public class NameIDMapping extends Object
NameIDMappingRequest
.Constructor and Description |
---|
NameIDMapping() |
Modifier and Type | Method and Description |
---|---|
static NameIDMappingServiceElement |
getNameIDMappingService(String realm,
String entityId,
String binding)
Returns first NameIDMappingService matching specified binding in an
entity under the realm.
|
static NameIDMappingResponse |
initiateNameIDMappingRequest(Object session,
String realm,
String spEntityID,
String idpEntityID,
String targetSPEntityID,
String targetNameIDFormat,
Map paramsMap)
Parses the request parameters and builds the NameIDMappingRequest to
sent to remote identity provider.
|
static NameIDMappingResponse |
processNameIDMappingRequest(NameIDMappingRequest nimRequest,
String realm,
String idpEntityID) |
public static NameIDMappingResponse initiateNameIDMappingRequest(Object session, String realm, String spEntityID, String idpEntityID, String targetSPEntityID, String targetNameIDFormat, Map paramsMap) throws SAML2Exception
session
- user session.realm
- the realm of hosted entityspEntityID
- entity ID of hosted service provideridpEntityID
- entity ID of remote idendity providertargetSPEntityID
- entity ID of target entity ID of service
providertargetNameIDFormat
- format of target Name IDparamsMap
- Map of all other parametersNameIDMappingResponse
SAML2Exception
- if error initiating request to remote entity.public static NameIDMappingResponse processNameIDMappingRequest(NameIDMappingRequest nimRequest, String realm, String idpEntityID) throws SAML2Exception
SAML2Exception
public static NameIDMappingServiceElement getNameIDMappingService(String realm, String entityId, String binding) throws SAML2MetaException
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 sessionCopyright © 2010–2025 Open Identity Platform Community. All rights reserved.