@Provider public class AuthenticationExceptionMapper extends AbstractExceptionMapper<org.springframework.security.core.AuthenticationException>
AuthenticationException
by producing a 403 Forbidden response.Constructor and Description |
---|
AuthenticationExceptionMapper() |
Modifier and Type | Method and Description |
---|---|
protected javax.ws.rs.core.Response.Status |
getStatus(org.springframework.security.core.AuthenticationException exception)
Translate the exception to an HTTP
Response.Status . |
protected boolean |
logException()
Indicate if the exception should be logged.
|
getWellComposedErrorBody, toResponse
protected javax.ws.rs.core.Response.Status getStatus(org.springframework.security.core.AuthenticationException exception)
AbstractExceptionMapper
Response.Status
.getStatus
in class AbstractExceptionMapper<org.springframework.security.core.AuthenticationException>
protected boolean logException()
AbstractExceptionMapper
logException
in class AbstractExceptionMapper<org.springframework.security.core.AuthenticationException>
Copyright © 2005–2023 Pavlidis lab, Michael Smith Laboratories and Department of Psychiatry, University of British Columbia. All rights reserved.