Class PrincipalFromRequestUserPrincipalNonInteractiveCredentialsAction

  • All Implemented Interfaces:
    PrincipalFromRequestExtractorAction, org.springframework.beans.factory.InitializingBean, org.springframework.core.Ordered, org.springframework.webflow.execution.Action

    public class PrincipalFromRequestUserPrincipalNonInteractiveCredentialsAction
    extends BasePrincipalFromNonInteractiveCredentialsAction
    Implementation of the AbstractNonInteractiveCredentialsAction that looks for a user principal that is set in the HttpServletRequest and attempts to construct a Principal (and thus a PrincipalBearingCredential). If it doesn't find one, this class returns and error event which tells the web flow it could not find any credentials.
    Since:
    3.0.5
    • Field Summary

      • Fields inherited from class org.springframework.webflow.action.AbstractAction

        logger
      • Fields inherited from interface org.springframework.core.Ordered

        HIGHEST_PRECEDENCE, LOWEST_PRECEDENCE
    • Constructor Summary

      Constructors 
      Constructor Description
      PrincipalFromRequestUserPrincipalNonInteractiveCredentialsAction​(org.apereo.cas.web.flow.resolver.CasDelegatingWebflowEventResolver initialAuthenticationAttemptWebflowEventResolver, org.apereo.cas.web.flow.resolver.CasWebflowEventResolver serviceTicketRequestWebflowEventResolver, org.apereo.cas.authentication.adaptive.AdaptiveAuthenticationPolicy adaptiveAuthenticationPolicy, org.apereo.cas.authentication.principal.PrincipalFactory principalFactory, RemoteRequestPrincipalAttributesExtractor extractor)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      java.lang.String getRemotePrincipalId​(javax.servlet.http.HttpServletRequest request)
      Gets remote principal id.
      • Methods inherited from class org.apereo.cas.web.flow.actions.AbstractNonInteractiveCredentialsAction

        doPreExecute, onError
      • Methods inherited from class org.apereo.cas.web.flow.actions.AbstractAuthenticationAction

        doExecute, onSuccess, onWarn
      • Methods inherited from class org.springframework.webflow.action.AbstractAction

        afterPropertiesSet, doPostExecute, error, error, execute, getActionNameForLogging, getEventFactorySupport, initAction, no, result, result, result, result, success, success, yes
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
      • Methods inherited from interface org.springframework.webflow.execution.Action

        execute
      • Methods inherited from interface org.springframework.core.Ordered

        getOrder
    • Constructor Detail

      • PrincipalFromRequestUserPrincipalNonInteractiveCredentialsAction

        public PrincipalFromRequestUserPrincipalNonInteractiveCredentialsAction​(org.apereo.cas.web.flow.resolver.CasDelegatingWebflowEventResolver initialAuthenticationAttemptWebflowEventResolver,
                                                                                org.apereo.cas.web.flow.resolver.CasWebflowEventResolver serviceTicketRequestWebflowEventResolver,
                                                                                org.apereo.cas.authentication.adaptive.AdaptiveAuthenticationPolicy adaptiveAuthenticationPolicy,
                                                                                org.apereo.cas.authentication.principal.PrincipalFactory principalFactory,
                                                                                RemoteRequestPrincipalAttributesExtractor extractor)
    • Method Detail

      • getRemotePrincipalId

        public java.lang.String getRemotePrincipalId​(javax.servlet.http.HttpServletRequest request)
        Description copied from interface: PrincipalFromRequestExtractorAction
        Gets remote principal id.
        Parameters:
        request - the request
        Returns:
        the remote principal id