org.springframework.security.saml.websso.WebSSOProfileOptions.setBinding()方法的使用及代码示例

x33g5p2x  于2022-02-03 转载在 其他  
字(1.8k)|赞(0)|评价(0)|浏览(149)

本文整理了Java中org.springframework.security.saml.websso.WebSSOProfileOptions.setBinding()方法的一些代码示例,展示了WebSSOProfileOptions.setBinding()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebSSOProfileOptions.setBinding()方法的具体详情如下:
包路径:org.springframework.security.saml.websso.WebSSOProfileOptions
类名称:WebSSOProfileOptions
方法名:setBinding

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;
}

相关文章