本文整理了Java中org.springframework.security.saml.websso.WebSSOProfileOptions.setBinding()
方法的一些代码示例,展示了WebSSOProfileOptions.setBinding()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebSSOProfileOptions.setBinding()
方法的具体详情如下:
包路径:org.springframework.security.saml.websso.WebSSOProfileOptions
类名称:WebSSOProfileOptions
方法名:setBinding
[英]Sets binding to be used for for sending SAML message to IDP.
[中]设置用于向IDP发送SAML消息的绑定。
代码示例来源:origin: metatron-app/metatron-discovery
@Bean
public WebSSOProfileOptions defaultWebSSOProfileOptions() {
WebSSOProfileOptions webSSOProfileOptions = new WebSSOProfileOptions();
webSSOProfileOptions.setIncludeScoping(false);
webSSOProfileOptions.setBinding(org.opensaml.common.xml.SAMLConstants.SAML2_POST_BINDING_URI);
return webSSOProfileOptions;
}
代码示例来源:origin: ulisesbocchio/spring-boot-security-saml
private WebSSOProfileOptions getProfileOptions() {
WebSSOProfileOptionProperties properties = config.getProfileOptions();
WebSSOProfileOptions options = new WebSSOProfileOptions();
options.setAllowCreate(properties.getAllowCreate());
options.setAllowedIDPs(properties.getAllowedIdps());
options.setAssertionConsumerIndex(properties.getAssertionConsumerIndex());
options.setAuthnContextComparison(properties.getAuthnContextComparison().getType());
options.setAuthnContexts(properties.getAuthnContexts());
options.setBinding(properties.getBinding());
options.setForceAuthN(properties.getForceAuthn());
options.setIncludeScoping(properties.getIncludeScoping());
options.setNameID(properties.getNameId());
options.setPassive(properties.getPassive());
options.setProviderName(properties.getProviderName());
options.setProxyCount(properties.getProxyCount());
options.setRelayState(properties.getRelayState());
return options;
}
内容来源于网络,如有侵权,请联系作者删除!