public class AuthWebResponseExceptionTranslator extends Object implements org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator<org.springframework.security.oauth2.common.exceptions.OAuth2Exception>
Oauth2Server异常类型转换
用于对Oauth2Server中产生的异常进行异常转换, 该实例会被Oauth2Server收集,并通过 public void configure(AuthorizationServerEndpointsConfigurer endpoints) 配置到spring security中Oauth2Server
Constructor and Description |
---|
AuthWebResponseExceptionTranslator() |
Modifier and Type | Method and Description |
---|---|
org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> |
translate(Exception e) |
public org.springframework.http.ResponseEntity<org.springframework.security.oauth2.common.exceptions.OAuth2Exception> translate(Exception e) throws Exception
translate
in interface org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator<org.springframework.security.oauth2.common.exceptions.OAuth2Exception>
Exception
Copyright © 2021. All rights reserved.