本文整理了Java中org.springframework.security.saml.websso.WebSSOProfileOptions.setForceAuthN()
方法的一些代码示例,展示了WebSSOProfileOptions.setForceAuthN()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。WebSSOProfileOptions.setForceAuthN()
方法的具体详情如下:
包路径:org.springframework.security.saml.websso.WebSSOProfileOptions
类名称:WebSSOProfileOptions
方法名:setForceAuthN
暂无
代码示例来源:origin: OpenConext/Mujina
@Override
protected WebSSOProfileOptions getProfileOptions(SAMLMessageContext context, AuthenticationException exception) throws MetadataProviderException {
WebSSOProfileOptions profileOptions = super.getProfileOptions(context, exception);
InTransport inboundMessageTransport = context.getInboundMessageTransport();
if (inboundMessageTransport instanceof HttpServletRequestAdapter) {
HttpServletRequestAdapter messageTransport = (HttpServletRequestAdapter) inboundMessageTransport;
String forceAuthn = messageTransport.getParameterValue("force-authn");
if ("true".equals(forceAuthn)) {
profileOptions.setForceAuthN(true);
}
}
return profileOptions;
}
}
代码示例来源: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;
}
内容来源于网络,如有侵权,请联系作者删除!