Class AuthenticationExceptionMapper

java.lang.Object
ubic.gemma.rest.providers.AbstractExceptionMapper<org.springframework.security.core.AuthenticationException>
ubic.gemma.rest.providers.AuthenticationExceptionMapper
All Implemented Interfaces:
javax.ws.rs.ext.ExceptionMapper<org.springframework.security.core.AuthenticationException>

@Provider @Component public class AuthenticationExceptionMapper extends AbstractExceptionMapper<org.springframework.security.core.AuthenticationException>
Handles Spring Security AuthenticationException by producing a 403 Forbidden response.
  • Constructor Details

    • AuthenticationExceptionMapper

      @Autowired public AuthenticationExceptionMapper(@Value("${gemma.hosturl}") String hostUrl, io.swagger.v3.oas.models.OpenAPI spec, BuildInfo buildInfo)
  • Method Details

    • getStatus

      protected javax.ws.rs.core.Response.Status getStatus(org.springframework.security.core.AuthenticationException exception)
      Description copied from class: AbstractExceptionMapper
      Translate the exception to an HTTP Response.Status.
      Specified by:
      getStatus in class AbstractExceptionMapper<org.springframework.security.core.AuthenticationException>