本文整理汇总了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;
}
开发者ID:cloudfoundry-incubator,项目名称:credhub,代码行数:19,代码来源:AuditOAuth2AccessDeniedHandler.java
示例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;
}
开发者ID:gravitee-io,项目名称:graviteeio-access-management,代码行数:7,代码来源:RevokeTokenEndpoint.java
示例3: getExceptionTranslator
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator; //导入依赖的package包/类
protected WebResponseExceptionTranslator getExceptionTranslator() {
return providerExceptionHandler;
}
开发者ID:yjmyzz,项目名称:spring-oauth-server,代码行数:4,代码来源:OAuthRestController.java
示例4: getExceptionTranslator
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator; //导入依赖的package包/类
public WebResponseExceptionTranslator getExceptionTranslator() {
return providerExceptionHandler;
}
开发者ID:cuba-platform,项目名称:cuba,代码行数:4,代码来源:IdpAuthController.java
示例5: setExceptionTranslator
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator; //导入依赖的package包/类
public void setExceptionTranslator(WebResponseExceptionTranslator providerExceptionHandler) {
this.providerExceptionHandler = providerExceptionHandler;
}
开发者ID:cuba-platform,项目名称:cuba,代码行数:4,代码来源:IdpAuthController.java
示例6: webResponseExceptionTranslator
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator; //导入依赖的package包/类
@Bean
public WebResponseExceptionTranslator webResponseExceptionTranslator() {
return new DefaultWebResponseExceptionTranslator();
}
开发者ID:cloudfoundry-incubator,项目名称:credhub,代码行数:5,代码来源:OAuth2Configuration.java
示例7: setProviderExceptionHandler
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator; //导入依赖的package包/类
public void setProviderExceptionHandler(WebResponseExceptionTranslator providerExceptionHandler) {
this.providerExceptionHandler = providerExceptionHandler;
}
开发者ID:jungyang,项目名称:oauth-client-master,代码行数:4,代码来源:AbstractEndpoint.java
示例8: getExceptionTranslator
import org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator; //导入依赖的package包/类
protected WebResponseExceptionTranslator getExceptionTranslator() {
return providerExceptionHandler;
}
开发者ID:jungyang,项目名称:oauth-client-master,代码行数:4,代码来源:AbstractEndpoint.java
注:本文中的org.springframework.security.oauth2.provider.error.WebResponseExceptionTranslator类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论