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, setExceptionTranslatorpublic 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.AuthenticationEntryPointIOExceptionjavax.servlet.ServletExceptionprotected org.springframework.http.ResponseEntity<?> enhanceResponse(org.springframework.http.ResponseEntity<?> response,
Exception exception)
AbstractOAuth2SecurityExceptionHandlerResponseEntity should be enhanced. If the
response body is to be customized, it should be done at the
WebResponseExceptionTranslator level.enhanceResponse in class AbstractOAuth2SecurityExceptionHandlerresponse - the response that was generated by the
exception translator.exception - the authentication exception that is being handledCopyright © 2019. All rights reserved.