@Deprecated public class OAuth2AuthenticationEntryPoint extends AbstractOAuth2SecurityExceptionHandler implements org.springframework.security.web.AuthenticationEntryPoint
AuthenticationEntryPoint in
the usual way.
logger| Constructor and Description |
|---|
OAuth2AuthenticationEntryPoint()
Deprecated.
|
| Modifier and Type | Method and Description |
|---|---|
void |
commence(javax.servlet.http.HttpServletRequest request,
javax.servlet.http.HttpServletResponse response,
org.springframework.security.core.AuthenticationException authException)
Deprecated.
|
protected org.springframework.http.ResponseEntity<?> |
enhanceResponse(org.springframework.http.ResponseEntity<?> response,
Exception exception)
Deprecated.
Allow subclasses to manipulate the response before it is rendered.
|
void |
setRealmName(String realmName)
Deprecated.
|
void |
setTypeName(String typeName)
Deprecated.
|
doHandle, setExceptionRenderer, setExceptionTranslatorpublic OAuth2AuthenticationEntryPoint()
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.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 © 2021. All rights reserved.