public abstract class AbstractCasWebflowEventResolver extends java.lang.Object implements CasWebflowEventResolver
AbstractCasWebflowEventResolver that provides parent
operations for all child event resolvers to handle core webflow changes.| Modifier and Type | Field and Description |
|---|---|
protected org.springframework.context.ConfigurableApplicationContext |
applicationContext
The Application context.
|
protected org.apereo.cas.authentication.AuthenticationServiceSelectionPlan |
authenticationRequestServiceSelectionStrategies
Extract the service specially in the event that it's proxied by a callback.
|
protected org.apereo.cas.authentication.AuthenticationSystemSupport |
authenticationSystemSupport
The Authentication system support.
|
protected org.apereo.cas.CentralAuthenticationService |
centralAuthenticationService
The Central authentication service.
|
protected org.springframework.context.ApplicationEventPublisher |
eventPublisher
CAS event publisher.
|
protected org.apereo.cas.services.MultifactorAuthenticationProviderSelector |
multifactorAuthenticationProviderSelector
The mfa selector.
|
protected org.apereo.cas.services.ServicesManager |
servicesManager
The Services manager.
|
protected org.apereo.cas.ticket.registry.TicketRegistrySupport |
ticketRegistrySupport
Ticket registry support.
|
protected org.springframework.web.util.CookieGenerator |
warnCookieGenerator
Warn cookie generator.
|
| Constructor and Description |
|---|
AbstractCasWebflowEventResolver() |
| Modifier and Type | Method and Description |
|---|---|
protected static java.util.Map<java.lang.String,java.lang.Object> |
buildEventAttributeMap(org.apereo.cas.authentication.principal.Principal principal,
org.apereo.cas.services.RegisteredService service,
org.apereo.cas.services.MultifactorAuthenticationProvider provider)
Build event attribute map map.
|
protected java.util.Set<org.springframework.webflow.execution.Event> |
evaluateEventForProviderInContext(org.apereo.cas.authentication.principal.Principal principal,
org.apereo.cas.services.RegisteredService service,
org.springframework.webflow.execution.RequestContext context,
org.apereo.cas.services.MultifactorAuthenticationProvider provider)
Verify provider for current context and validate event id.
|
protected java.util.Collection<org.apereo.cas.services.MultifactorAuthenticationProvider> |
getAuthenticationProviderForService(org.apereo.cas.services.RegisteredService service)
Gets authentication provider for service.
|
protected org.apereo.cas.authentication.Credential |
getCredentialFromContext(org.springframework.webflow.execution.RequestContext context)
Gets credential from context.
|
protected java.util.Optional<org.apereo.cas.services.MultifactorAuthenticationProvider> |
getMultifactorAuthenticationProviderFromApplicationContext(java.lang.String providerId)
Find the MultifactorAuthenticationProvider in the application contact that matches the specified providerId (e.g.
|
protected java.util.Map<java.lang.String,java.lang.Object> |
getPrincipalAttributesForMultifactorAuthentication(org.apereo.cas.authentication.principal.Principal principal)
Gets principal attributes for multifactor authentication.
|
protected java.util.Set<org.springframework.webflow.execution.Event> |
getResolvedEventsAsAttribute(org.springframework.webflow.execution.RequestContext context)
Gets resolved events as attribute.
|
protected org.springframework.webflow.execution.Event |
grantTicketGrantingTicketToAuthenticationResult(org.springframework.webflow.execution.RequestContext context,
org.apereo.cas.authentication.AuthenticationResultBuilder authenticationResultBuilder,
org.apereo.cas.authentication.principal.Service service)
Grant ticket granting ticket.
|
protected java.util.Set<org.springframework.webflow.execution.Event> |
handleAuthenticationTransactionAndGrantTicketGrantingTicket(org.springframework.webflow.execution.RequestContext context)
Handle authentication transaction and grant ticket granting ticket.
|
protected org.springframework.webflow.execution.Event |
newEvent(java.lang.String id)
New event event.
|
protected org.springframework.webflow.execution.Event |
newEvent(java.lang.String id,
org.springframework.webflow.core.collection.AttributeMap attributes)
New event based on the given id.
|
protected org.springframework.webflow.execution.Event |
newEvent(java.lang.String id,
java.lang.Exception error)
New event based on the id, which contains an error attribute referring to the exception occurred.
|
protected void |
putResolvedEventsAsAttribute(org.springframework.webflow.execution.RequestContext context,
java.util.Set<org.springframework.webflow.execution.Event> resolvedEvents)
Put resolved events as attribute.
|
java.util.Set<org.springframework.webflow.execution.Event> |
resolve(org.springframework.webflow.execution.RequestContext context)
Resolve event.
|
protected java.util.Set<org.springframework.webflow.execution.Event> |
resolveEventViaAuthenticationAttribute(org.apereo.cas.authentication.Authentication authentication,
java.util.Collection<java.lang.String> attributeNames,
org.apereo.cas.services.RegisteredService service,
org.springframework.webflow.execution.RequestContext context,
java.util.Collection<org.apereo.cas.services.MultifactorAuthenticationProvider> providers,
java.util.function.Predicate<java.lang.String> predicate)
Resolve event via authentication attribute set.
|
protected java.util.Set<org.springframework.webflow.execution.Event> |
resolveEventViaPrincipalAttribute(org.apereo.cas.authentication.principal.Principal principal,
java.util.Collection<java.lang.String> attributeNames,
org.apereo.cas.services.RegisteredService service,
org.springframework.webflow.execution.RequestContext context,
java.util.Collection<org.apereo.cas.services.MultifactorAuthenticationProvider> providers,
java.util.function.Predicate<java.lang.String> predicate)
Resolve event via principal attribute set.
|
protected org.apereo.cas.authentication.principal.Service |
resolveServiceFromAuthenticationRequest(org.springframework.webflow.execution.RequestContext context)
Resolve service from authentication request service.
|
protected org.apereo.cas.authentication.principal.Service |
resolveServiceFromAuthenticationRequest(org.apereo.cas.authentication.principal.Service service)
Resolve service from authentication request.
|
org.springframework.webflow.execution.Event |
resolveSingle(org.springframework.webflow.execution.RequestContext context)
Resolve single event.
|
protected org.springframework.webflow.execution.Event |
validateEventIdForMatchingTransitionInContext(java.lang.String eventId,
org.springframework.webflow.execution.RequestContext context,
java.util.Map<java.lang.String,java.lang.Object> attributes)
Validate event for transition.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetName, resolveInternal@Autowired protected org.springframework.context.ApplicationEventPublisher eventPublisher
@Autowired protected org.springframework.context.ConfigurableApplicationContext applicationContext
protected final org.apereo.cas.authentication.AuthenticationSystemSupport authenticationSystemSupport
protected final org.apereo.cas.CentralAuthenticationService centralAuthenticationService
protected final org.apereo.cas.services.ServicesManager servicesManager
protected final org.apereo.cas.ticket.registry.TicketRegistrySupport ticketRegistrySupport
protected final org.springframework.web.util.CookieGenerator warnCookieGenerator
protected final org.apereo.cas.authentication.AuthenticationServiceSelectionPlan authenticationRequestServiceSelectionStrategies
protected final org.apereo.cas.services.MultifactorAuthenticationProviderSelector multifactorAuthenticationProviderSelector
protected org.springframework.webflow.execution.Event newEvent(java.lang.String id,
java.lang.Exception error)
id - the iderror - the errorprotected org.springframework.webflow.execution.Event newEvent(java.lang.String id)
id - the idprotected org.springframework.webflow.execution.Event newEvent(java.lang.String id,
org.springframework.webflow.core.collection.AttributeMap attributes)
id - the idattributes - the attributesprotected org.apereo.cas.authentication.Credential getCredentialFromContext(org.springframework.webflow.execution.RequestContext context)
context - the contextprotected org.springframework.webflow.execution.Event grantTicketGrantingTicketToAuthenticationResult(org.springframework.webflow.execution.RequestContext context,
org.apereo.cas.authentication.AuthenticationResultBuilder authenticationResultBuilder,
org.apereo.cas.authentication.principal.Service service)
context - the contextauthenticationResultBuilder - the authentication result builderservice - the serviceprotected java.util.Collection<org.apereo.cas.services.MultifactorAuthenticationProvider> getAuthenticationProviderForService(org.apereo.cas.services.RegisteredService service)
service - the serviceprotected org.springframework.webflow.execution.Event validateEventIdForMatchingTransitionInContext(java.lang.String eventId,
org.springframework.webflow.execution.RequestContext context,
java.util.Map<java.lang.String,java.lang.Object> attributes)
eventId - the event idcontext - the contextattributes - the attributesprotected static java.util.Map<java.lang.String,java.lang.Object> buildEventAttributeMap(org.apereo.cas.authentication.principal.Principal principal,
org.apereo.cas.services.RegisteredService service,
org.apereo.cas.services.MultifactorAuthenticationProvider provider)
principal - the principalservice - the serviceprovider - the providerprotected java.util.Set<org.springframework.webflow.execution.Event> evaluateEventForProviderInContext(org.apereo.cas.authentication.principal.Principal principal,
org.apereo.cas.services.RegisteredService service,
org.springframework.webflow.execution.RequestContext context,
org.apereo.cas.services.MultifactorAuthenticationProvider provider)
principal - the principalservice - the servicecontext - the contextprovider - the providerprotected java.util.Set<org.springframework.webflow.execution.Event> resolveEventViaAuthenticationAttribute(org.apereo.cas.authentication.Authentication authentication,
java.util.Collection<java.lang.String> attributeNames,
org.apereo.cas.services.RegisteredService service,
org.springframework.webflow.execution.RequestContext context,
java.util.Collection<org.apereo.cas.services.MultifactorAuthenticationProvider> providers,
java.util.function.Predicate<java.lang.String> predicate)
authentication - the authenticationattributeNames - the attribute nameservice - the servicecontext - the contextproviders - the providerspredicate - the predicateprotected java.util.Set<org.springframework.webflow.execution.Event> resolveEventViaPrincipalAttribute(org.apereo.cas.authentication.principal.Principal principal,
java.util.Collection<java.lang.String> attributeNames,
org.apereo.cas.services.RegisteredService service,
org.springframework.webflow.execution.RequestContext context,
java.util.Collection<org.apereo.cas.services.MultifactorAuthenticationProvider> providers,
java.util.function.Predicate<java.lang.String> predicate)
principal - the principalattributeNames - the attribute nameservice - the servicecontext - the contextproviders - the providerspredicate - the predicatepublic java.util.Set<org.springframework.webflow.execution.Event> resolve(org.springframework.webflow.execution.RequestContext context)
CasWebflowEventResolverresolve in interface CasWebflowEventResolvercontext - the contextpublic org.springframework.webflow.execution.Event resolveSingle(org.springframework.webflow.execution.RequestContext context)
CasWebflowEventResolverresolveSingle in interface CasWebflowEventResolvercontext - the contextprotected java.util.Optional<org.apereo.cas.services.MultifactorAuthenticationProvider> getMultifactorAuthenticationProviderFromApplicationContext(java.lang.String providerId)
providerId - the provider idprotected void putResolvedEventsAsAttribute(org.springframework.webflow.execution.RequestContext context,
java.util.Set<org.springframework.webflow.execution.Event> resolvedEvents)
context - the contextresolvedEvents - the resolved eventsprotected org.apereo.cas.authentication.principal.Service resolveServiceFromAuthenticationRequest(org.apereo.cas.authentication.principal.Service service)
service - the serviceprotected org.apereo.cas.authentication.principal.Service resolveServiceFromAuthenticationRequest(org.springframework.webflow.execution.RequestContext context)
context - the contextprotected java.util.Set<org.springframework.webflow.execution.Event> getResolvedEventsAsAttribute(org.springframework.webflow.execution.RequestContext context)
context - the contextprotected java.util.Set<org.springframework.webflow.execution.Event> handleAuthenticationTransactionAndGrantTicketGrantingTicket(org.springframework.webflow.execution.RequestContext context)
context - the contextprotected java.util.Map<java.lang.String,java.lang.Object> getPrincipalAttributesForMultifactorAuthentication(org.apereo.cas.authentication.principal.Principal principal)
principal - the principal