本文整理汇总了Java中org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator类的典型用法代码示例。如果您正苦于以下问题:Java WebResponseExceptionTranslator类的具体用法?Java WebResponseExceptionTranslator怎么用?Java WebResponseExceptionTranslator使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
WebResponseExceptionTranslator类属于org.springframework.security.oauth2.provider.error包,在下文中一共展示了WebResponseExceptionTranslator类的8个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: AuditOAuth2AccessDeniedHandler
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator; //导入依赖的package包/类
@Autowired
public AuditOAuth2AccessDeniedHandler(
TokenStore tokenStore,
RequestAuditRecordDataService requestAuditRecordDataService,
SecurityEventsLogService securityEventsLogService,
UserContextFactory userContextFactory,
WebResponseExceptionTranslator exceptionTranslator,
AuditLogFactory auditLogFactory,
MessageSourceAccessor messageSourceAccessor
) {
this.userContextFactory = userContextFactory;
this.tokenStore = tokenStore;
this.requestAuditRecordDataService = requestAuditRecordDataService;
this.securityEventsLogService = securityEventsLogService;
this.exceptionTranslator = exceptionTranslator;
this.auditLogFactory = auditLogFactory;
this.messageSourceAccessor = messageSourceAccessor;
}
示例2: setExceptionTranslator
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator; //导入依赖的package包/类
/**
* @param exceptionTranslator the exception translator to set
*/
public void setExceptionTranslator(WebResponseExceptionTranslator exceptionTranslator) {
this.exceptionTranslator = exceptionTranslator;
}
示例3: getExceptionTranslator
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator; //导入依赖的package包/类
protected WebResponseExceptionTranslator getExceptionTranslator() {
return providerExceptionHandler;
}
示例4: getExceptionTranslator
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator; //导入依赖的package包/类
public WebResponseExceptionTranslator getExceptionTranslator() {
return providerExceptionHandler;
}
示例5: setExceptionTranslator
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator; //导入依赖的package包/类
public void setExceptionTranslator(WebResponseExceptionTranslator providerExceptionHandler) {
this.providerExceptionHandler = providerExceptionHandler;
}
示例6: webResponseExceptionTranslator
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator; //导入依赖的package包/类
@Bean
public WebResponseExceptionTranslator webResponseExceptionTranslator() {
return new DefaultWebResponseExceptionTranslator();
}
示例7: setProviderExceptionHandler
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator; //导入依赖的package包/类
public void setProviderExceptionHandler(WebResponseExceptionTranslator providerExceptionHandler) {
this.providerExceptionHandler = providerExceptionHandler;
}
示例8: getExceptionTranslator
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator; //导入依赖的package包/类
protected WebResponseExceptionTranslator getExceptionTranslator() {
return providerExceptionHandler;
}