public class OAuth2AuthenticationEntryPoint extends AbstractOAuth2SecurityExceptionHandler implements org.springframework.security.web.AuthenticationEntryPoint
AuthenticationEntryPoint
in
the usual way.logger
Constructor and Description |
---|
OAuth2AuthenticationEntryPoint() |
Modifier and Type | Method and Description |
---|---|
void |
commence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException authException) |
protected org.springframework.http.ResponseEntity<?> |
enhanceResponse(org.springframework.http.ResponseEntity<?> response,
Exception exception)
Allow subclasses to manipulate the response before it is rendered.
|
void |
setRealmName(String realmName) |
void |
setTypeName(String typeName) |
doHandle, setExceptionRenderer, setExceptionTranslator
public void setRealmName(String realmName)
public void setTypeName(String typeName)
public void commence(javax.servlet.http.HttpServletRequest request, javax.servlet.http.HttpServletResponse response, org.springframework.security.core.AuthenticationException authException) throws IOException, javax.servlet.ServletException
commence
in interface org.springframework.security.web.AuthenticationEntryPoint
IOException
javax.servlet.ServletException
protected org.springframework.http.ResponseEntity<?> enhanceResponse(org.springframework.http.ResponseEntity<?> response, Exception exception)
AbstractOAuth2SecurityExceptionHandler
ResponseEntity
should be enhanced. If the
response body is to be customized, it should be done at the
WebResponseExceptionTranslator
level.enhanceResponse
in class AbstractOAuth2SecurityExceptionHandler
response
- the response that was generated by the
exception translator
.exception
- the authentication exception that is being handledCopyright © 2019. All rights reserved.