Class AuthAdapterExceptionHandler


  • @RestControllerAdvice
    @Order(-2147483648)
    public class AuthAdapterExceptionHandler
    extends Object
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> authManagerException​(javax.servlet.http.HttpServletRequest httpServletRequest, AuthManagerException e)  
      org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> authNException​(javax.servlet.http.HttpServletRequest httpServletRequest, io.mosip.kernel.core.authmanager.exception.AuthNException e)  
      org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> authZException​(javax.servlet.http.HttpServletRequest httpServletRequest, io.mosip.kernel.core.authmanager.exception.AuthZException e)  
      org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> onAccessDeniedException​(javax.servlet.http.HttpServletRequest httpServletRequest, org.springframework.security.access.AccessDeniedException e)  
      org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> onAuthenticationException​(javax.servlet.http.HttpServletRequest httpServletRequest, org.springframework.security.core.AuthenticationException e)  
    • Constructor Detail

      • AuthAdapterExceptionHandler

        public AuthAdapterExceptionHandler()
    • Method Detail

      • onAuthenticationException

        @ExceptionHandler(org.springframework.security.core.AuthenticationException.class)
        public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> onAuthenticationException​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                                                                                                                                                         org.springframework.security.core.AuthenticationException e)
                                                                                                                                                                  throws IOException
        Throws:
        IOException
      • onAccessDeniedException

        @ExceptionHandler(org.springframework.security.access.AccessDeniedException.class)
        public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> onAccessDeniedException​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                                                                                                                                                       org.springframework.security.access.AccessDeniedException e)
                                                                                                                                                                throws IOException
        Throws:
        IOException
      • authManagerException

        @ExceptionHandler(AuthManagerException.class)
        public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> authManagerException​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                                                                                                                                                    AuthManagerException e)
                                                                                                                                                             throws IOException
        Throws:
        IOException
      • authNException

        @ExceptionHandler(io.mosip.kernel.core.authmanager.exception.AuthNException.class)
        public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> authNException​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                                                                                                                                              io.mosip.kernel.core.authmanager.exception.AuthNException e)
                                                                                                                                                       throws IOException
        Throws:
        IOException
      • authZException

        @ExceptionHandler(io.mosip.kernel.core.authmanager.exception.AuthZException.class)
        public org.springframework.http.ResponseEntity<io.mosip.kernel.core.http.ResponseWrapper<io.mosip.kernel.core.exception.ServiceError>> authZException​(javax.servlet.http.HttpServletRequest httpServletRequest,
                                                                                                                                                              io.mosip.kernel.core.authmanager.exception.AuthZException e)
                                                                                                                                                       throws IOException
        Throws:
        IOException