Class OidcHandlerInterceptorAdapter

  • All Implemented Interfaces:
    org.springframework.web.servlet.AsyncHandlerInterceptor, org.springframework.web.servlet.HandlerInterceptor

    public class OidcHandlerInterceptorAdapter
    extends org.apereo.cas.support.oauth.web.OAuth20HandlerInterceptorAdapter
    Since:
    5.1.0
    • Field Summary

      • Fields inherited from class org.apereo.cas.support.oauth.web.OAuth20HandlerInterceptorAdapter

        requiresAuthenticationAccessTokenInterceptor, requiresAuthenticationAuthorizeInterceptor
    • Constructor Summary

      Constructors 
      Constructor Description
      OidcHandlerInterceptorAdapter​(org.springframework.web.servlet.handler.HandlerInterceptorAdapter requiresAuthenticationAccessTokenInterceptor, org.springframework.web.servlet.handler.HandlerInterceptorAdapter requiresAuthenticationAuthorizeInterceptor, org.springframework.web.servlet.handler.HandlerInterceptorAdapter requiresAuthenticationDynamicRegistrationInterceptor, org.apereo.cas.oidc.OidcConstants.DynamicClientRegistrationMode dynamicClientRegistrationMode, java.util.Collection<org.apereo.cas.support.oauth.web.response.accesstoken.ext.AccessTokenGrantRequestExtractor> accessTokenGrantRequestExtractors)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected boolean isDynamicClientRegistrationRequest​(java.lang.String requestPath)
      Is dynamic client registration request.
      boolean preHandle​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, java.lang.Object handler)  
      • Methods inherited from class org.apereo.cas.support.oauth.web.OAuth20HandlerInterceptorAdapter

        doesUriMatchPattern, isAccessTokenRequest, isAuthorizationRequest, isDeviceTokenRequest, requestRequiresAuthentication
      • Methods inherited from class org.springframework.web.servlet.handler.HandlerInterceptorAdapter

        afterCompletion, afterConcurrentHandlingStarted, postHandle
      • Methods inherited from class java.lang.Object

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

      • OidcHandlerInterceptorAdapter

        public OidcHandlerInterceptorAdapter​(org.springframework.web.servlet.handler.HandlerInterceptorAdapter requiresAuthenticationAccessTokenInterceptor,
                                             org.springframework.web.servlet.handler.HandlerInterceptorAdapter requiresAuthenticationAuthorizeInterceptor,
                                             org.springframework.web.servlet.handler.HandlerInterceptorAdapter requiresAuthenticationDynamicRegistrationInterceptor,
                                             org.apereo.cas.oidc.OidcConstants.DynamicClientRegistrationMode dynamicClientRegistrationMode,
                                             java.util.Collection<org.apereo.cas.support.oauth.web.response.accesstoken.ext.AccessTokenGrantRequestExtractor> accessTokenGrantRequestExtractors)
    • Method Detail

      • preHandle

        public boolean preHandle​(javax.servlet.http.HttpServletRequest request,
                                 javax.servlet.http.HttpServletResponse response,
                                 java.lang.Object handler)
                          throws java.lang.Exception
        Specified by:
        preHandle in interface org.springframework.web.servlet.HandlerInterceptor
        Overrides:
        preHandle in class org.apereo.cas.support.oauth.web.OAuth20HandlerInterceptorAdapter
        Throws:
        java.lang.Exception
      • isDynamicClientRegistrationRequest

        protected boolean isDynamicClientRegistrationRequest​(java.lang.String requestPath)
        Is dynamic client registration request.
        Parameters:
        requestPath - the request path
        Returns:
        the boolean