Class AbstractCasWebflowEventResolver

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected org.springframework.webflow.execution.Event getAuthenticationFailureErrorEvent​(org.springframework.webflow.execution.RequestContext context, java.lang.Exception exception)
      Gets authentication failure error event.
      protected org.apereo.cas.authentication.Credential getCredentialFromContext​(org.springframework.webflow.execution.RequestContext context)
      Gets credential from context.
      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, java.lang.Throwable error)
      New event based on the id, which contains an error attribute referring to the exception occurred.
      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.
      java.util.Set<org.springframework.webflow.execution.Event> resolve​(org.springframework.webflow.execution.RequestContext context)
      Resolve event.
      protected org.apereo.cas.authentication.principal.Service resolveServiceFromAuthenticationRequest​(org.apereo.cas.authentication.principal.Service service)
      Resolve service from authentication request.
      protected org.apereo.cas.authentication.principal.Service resolveServiceFromAuthenticationRequest​(org.springframework.webflow.execution.RequestContext context)
      Resolve service from authentication request service.
      org.springframework.webflow.execution.Event resolveSingle​(org.springframework.webflow.execution.RequestContext context)
      Resolve single event.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • AbstractCasWebflowEventResolver

        public AbstractCasWebflowEventResolver()
    • Method Detail

      • newEvent

        protected org.springframework.webflow.execution.Event newEvent​(java.lang.String id,
                                                                       java.lang.Throwable error)
        New event based on the id, which contains an error attribute referring to the exception occurred.
        Parameters:
        id - the id
        error - the error
        Returns:
        the event
      • newEvent

        protected org.springframework.webflow.execution.Event newEvent​(java.lang.String id)
        New event event.
        Parameters:
        id - the id
        Returns:
        the event
      • newEvent

        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.
        Parameters:
        id - the id
        attributes - the attributes
        Returns:
        the event
      • getCredentialFromContext

        protected org.apereo.cas.authentication.Credential getCredentialFromContext​(org.springframework.webflow.execution.RequestContext context)
        Gets credential from context.
        Parameters:
        context - the context
        Returns:
        the credential from context
      • grantTicketGrantingTicketToAuthenticationResult

        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.
        Parameters:
        context - the context
        authenticationResultBuilder - the authentication result builder
        service - the service
        Returns:
        the event
      • resolve

        public java.util.Set<org.springframework.webflow.execution.Event> resolve​(org.springframework.webflow.execution.RequestContext context)
        Description copied from interface: CasWebflowEventResolver
        Resolve event.
        Specified by:
        resolve in interface CasWebflowEventResolver
        Parameters:
        context - the context
        Returns:
        the event
      • resolveSingle

        public org.springframework.webflow.execution.Event resolveSingle​(org.springframework.webflow.execution.RequestContext context)
        Description copied from interface: CasWebflowEventResolver
        Resolve single event.
        Specified by:
        resolveSingle in interface CasWebflowEventResolver
        Parameters:
        context - the context
        Returns:
        the event
      • resolveServiceFromAuthenticationRequest

        protected org.apereo.cas.authentication.principal.Service resolveServiceFromAuthenticationRequest​(org.apereo.cas.authentication.principal.Service service)
        Resolve service from authentication request.
        Parameters:
        service - the service
        Returns:
        the service
      • resolveServiceFromAuthenticationRequest

        protected org.apereo.cas.authentication.principal.Service resolveServiceFromAuthenticationRequest​(org.springframework.webflow.execution.RequestContext context)
        Resolve service from authentication request service.
        Parameters:
        context - the context
        Returns:
        the service
      • handleAuthenticationTransactionAndGrantTicketGrantingTicket

        protected java.util.Set<org.springframework.webflow.execution.Event> handleAuthenticationTransactionAndGrantTicketGrantingTicket​(org.springframework.webflow.execution.RequestContext context)
        Handle authentication transaction and grant ticket granting ticket.
        Parameters:
        context - the context
        Returns:
        the set
      • getAuthenticationFailureErrorEvent

        protected org.springframework.webflow.execution.Event getAuthenticationFailureErrorEvent​(org.springframework.webflow.execution.RequestContext context,
                                                                                                 java.lang.Exception exception)
        Gets authentication failure error event.
        Parameters:
        context - the context
        exception - the exception
        Returns:
        the authentication failure error event