本文整理汇总了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();
}
示例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;
}
示例3: createDefaultSamlContextProvider
import org.springframework.security.saml.context.SAMLContextProviderImpl; //导入依赖的package包/类
@VisibleForTesting
protected SAMLContextProvider createDefaultSamlContextProvider() {
return new SAMLContextProviderImpl();
}
示例4: contextProvider
import org.springframework.security.saml.context.SAMLContextProviderImpl; //导入依赖的package包/类
@Bean
public SAMLContextProviderImpl contextProvider() {
return new SAMLContextProviderImpl();
}
示例5: getImplProvider
import org.springframework.security.saml.context.SAMLContextProviderImpl; //导入依赖的package包/类
public SAMLContextProviderImpl getImplProvider() {
return implProvider;
}
示例6: setImplProvider
import org.springframework.security.saml.context.SAMLContextProviderImpl; //导入依赖的package包/类
public void setImplProvider( SAMLContextProviderImpl implProvider ) {
this.implProvider = implProvider;
}