public class SamlMetadataUIParserAction
extends org.springframework.webflow.action.AbstractAction
SamlMetadataUIParserAction that attempts to parse
the MDUI extension block for a SAML SP from the provided metadata locations.
The result is put into the flow request context. The entity id parameter is
specified by default at SamlProtocolConstants.PARAMETER_ENTITY_ID.
This action is best suited to be invoked when the CAS login page is about to render so that the page, once the MDUI info is obtained, has a chance to populate the UI with relevant info about the SP.
| Constructor and Description |
|---|
SamlMetadataUIParserAction() |
| Modifier and Type | Method and Description |
|---|---|
org.springframework.webflow.execution.Event |
doExecute(org.springframework.webflow.execution.RequestContext requestContext) |
protected java.lang.String |
getEntityIdFromRequest(org.springframework.webflow.execution.RequestContext requestContext)
Gets entity id from request.
|
protected org.apereo.cas.services.RegisteredService |
getRegisteredServiceFromRequest(org.springframework.webflow.execution.RequestContext requestContext)
Gets registered service from request.
|
protected org.apereo.cas.services.RegisteredService |
getRegisteredServiceFromRequest(org.springframework.webflow.execution.RequestContext requestContext,
java.lang.String entityId)
Gets registered service from request.
|
protected void |
loadSamlMetadataIntoRequestContext(org.springframework.webflow.execution.RequestContext requestContext,
java.lang.String entityId,
org.apereo.cas.services.RegisteredService registeredService)
Load saml metadata into request context.
|
protected void |
verifyRegisteredService(org.springframework.webflow.execution.RequestContext requestContext,
org.apereo.cas.services.RegisteredService registeredService)
Verify registered service.
|
public org.springframework.webflow.execution.Event doExecute(org.springframework.webflow.execution.RequestContext requestContext)
doExecute in class org.springframework.webflow.action.AbstractActionprotected void loadSamlMetadataIntoRequestContext(org.springframework.webflow.execution.RequestContext requestContext,
java.lang.String entityId,
org.apereo.cas.services.RegisteredService registeredService)
requestContext - the request contextentityId - the entity idregisteredService - the registered serviceprotected void verifyRegisteredService(org.springframework.webflow.execution.RequestContext requestContext,
org.apereo.cas.services.RegisteredService registeredService)
requestContext - the request contextregisteredService - the registered serviceprotected org.apereo.cas.services.RegisteredService getRegisteredServiceFromRequest(org.springframework.webflow.execution.RequestContext requestContext,
java.lang.String entityId)
requestContext - the request contextentityId - the entity idprotected org.apereo.cas.services.RegisteredService getRegisteredServiceFromRequest(org.springframework.webflow.execution.RequestContext requestContext)
requestContext - the request contextprotected java.lang.String getEntityIdFromRequest(org.springframework.webflow.execution.RequestContext requestContext)
requestContext - the request context