Class BearerTokenAccessDeniedHandler

    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void handle​(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, AccessDeniedException accessDeniedException)
      Collect error details from the provided parameters and format according to RFC 6750, specifically error, error_description, error_uri, and scope.
      void setRealmName​(java.lang.String realmName)
      Set the default realm name to use in the bearer token error response
      • Methods inherited from class java.lang.Object

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

      • BearerTokenAccessDeniedHandler

        public BearerTokenAccessDeniedHandler()
    • Method Detail

      • handle

        public void handle​(javax.servlet.http.HttpServletRequest request,
                           javax.servlet.http.HttpServletResponse response,
                           AccessDeniedException accessDeniedException)
        Collect error details from the provided parameters and format according to RFC 6750, specifically error, error_description, error_uri, and scope.
        Specified by:
        handle in interface AccessDeniedHandler
        Parameters:
        request - that resulted in an AccessDeniedException
        response - so that the user agent can be advised of the failure
        accessDeniedException - that caused the invocation
      • setRealmName

        public void setRealmName​(java.lang.String realmName)
        Set the default realm name to use in the bearer token error response
        Parameters:
        realmName -