本文整理汇总了Java中org.springframework.security.saml.context.SAMLContextProviderImpl类的典型用法代码示例。如果您正苦于以下问题:Java SAMLContextProviderImpl类的具体用法?Java SAMLContextProviderImpl怎么用?Java SAMLContextProviderImpl使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
SAMLContextProviderImpl类属于org.springframework.security.saml.context包,在下文中一共展示了SAMLContextProviderImpl类的6个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: SAMLContext
import org.springframework.security.saml.context.SAMLContextProviderImpl; //导入依赖的package包/类
public SAMLContext(final HttpServletRequest request, final SAMLConfig configuration) throws ConfigurationException, CertificateException, UnsupportedEncodingException, MetadataProviderException, ServletException, ResourceException {
configuration.setDefaultBaseUrl(getDefaultBaseURL(request));
idpKeyManager = new IdpKeyManager(configuration.getIdpEntityId(), configuration.getX509Certificate());
SpMetadataGenerator spMetadataGenerator = new SpMetadataGenerator();
MetadataProvider spMetadataProvider = spMetadataGenerator.generate(configuration);
IdpMetadataGenerator idpMetadataGenerator = new IdpMetadataGenerator();
MetadataProvider idpMetadataProvider = idpMetadataGenerator.generate(configuration);
metadataManager = new MetadataManager(Arrays.asList(spMetadataProvider, idpMetadataProvider));
metadataManager.setKeyManager(idpKeyManager);
metadataManager.setHostedSPName(configuration.getSpEntityId());
metadataManager.refreshMetadata();
messageContextProvider = new SAMLContextProviderImpl();
messageContextProvider.setMetadata(metadataManager);
messageContextProvider.setKeyManager(idpKeyManager);
messageContextProvider.afterPropertiesSet();
}
开发者ID:italia,项目名称:spid-spring,代码行数:20,代码来源:SAMLContext.java
示例2: contextProvider
import org.springframework.security.saml.context.SAMLContextProviderImpl; //导入依赖的package包/类
@Bean
public SAMLContextProviderImpl contextProvider() throws MalformedURLException {
MultiKeyDecrypterSAMLContextProvider samlContextProviderLB = new MultiKeyDecrypterSAMLContextProvider();
// This is here because apparently spring saml expects ../saml/SSO request to use http if server is answering from http
URL url = new URL(environment.getProperty("app.baseURL"));
samlContextProviderLB.setScheme(url.getProtocol());
samlContextProviderLB.setServerName(url.getHost());
samlContextProviderLB.setContextPath(url.getPath());
return samlContextProviderLB;
}
开发者ID:solita,项目名称:kansalaisaloite,代码行数:13,代码来源:WebSecurityConfig.java
示例3: createDefaultSamlContextProvider
import org.springframework.security.saml.context.SAMLContextProviderImpl; //导入依赖的package包/类
@VisibleForTesting
protected SAMLContextProvider createDefaultSamlContextProvider() {
return new SAMLContextProviderImpl();
}
开发者ID:ulisesbocchio,项目名称:spring-boot-security-saml,代码行数:5,代码来源:SAMLContextProviderConfigurer.java
示例4: contextProvider
import org.springframework.security.saml.context.SAMLContextProviderImpl; //导入依赖的package包/类
@Bean
public SAMLContextProviderImpl contextProvider() {
return new SAMLContextProviderImpl();
}
开发者ID:lhartikk,项目名称:spring-tsers-auth,代码行数:5,代码来源:WebSecurityConfig.java
示例5: getImplProvider
import org.springframework.security.saml.context.SAMLContextProviderImpl; //导入依赖的package包/类
public SAMLContextProviderImpl getImplProvider() {
return implProvider;
}
开发者ID:pentaho,项目名称:pentaho-engineering-samples,代码行数:4,代码来源:PentahoSamlContextProviderDelegate.java
示例6: setImplProvider
import org.springframework.security.saml.context.SAMLContextProviderImpl; //导入依赖的package包/类
public void setImplProvider( SAMLContextProviderImpl implProvider ) {
this.implProvider = implProvider;
}
开发者ID:pentaho,项目名称:pentaho-engineering-samples,代码行数:4,代码来源:PentahoSamlContextProviderDelegate.java
注:本文中的org.springframework.security.saml.context.SAMLContextProviderImpl类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论