gpt4 book ai didi

org.springframework.security.saml.websso.WebSSOProfileECPImpl类的使用及代码示例

转载 作者:知者 更新时间:2024-03-22 10:53:05 26 4
gpt4 key购买 nike

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

WebSSOProfileECPImpl介绍

[英]Class implementing the SAML ECP Profile and offers capabilities for SP initialized SSO and process Response coming from IDP or IDP initialized SSO. PAOS Binding is supported
[中]类实现SAML ECP配置文件,并提供SP初始化SSO和来自IDP或IDP初始化SSO的进程响应的功能。支持PAOS绑定

代码示例

代码示例来源:origin: com.netflix.genie/genie-web

/**
 * SAML 2.0 ECP profile.
 *
 * @return The ECP profile
 * @see WebSSOProfileECPImpl
 */
@Bean
public WebSSOProfileECPImpl ecpprofile() {
  return new WebSSOProfileECPImpl();
}

代码示例来源:origin: org.springframework.security.extensions/spring-security-saml2-core

@Override
public void sendAuthenticationRequest(SAMLMessageContext context, WebSSOProfileOptions options)
    throws SAMLException, MetadataProviderException, MessageEncodingException {
  SPSSODescriptor spDescriptor = (SPSSODescriptor) context.getLocalEntityRoleMetadata();
  AssertionConsumerService assertionConsumer = getAssertionConsumerService(options, null, spDescriptor);
  // The last parameter refers to the IdP that should receive the message. However,
  // in ECP, we don't know in advance which IdP will be contacted.
  AuthnRequest authRequest = getAuthnRequest(context, options, assertionConsumer, null);
  context.setCommunicationProfileId(getProfileIdentifier());
  context.setOutboundMessage(getEnvelope());
  context.setOutboundSAMLMessage(authRequest);
  SOAPHelper.addHeaderBlock(context, getPAOSRequest(assertionConsumer));
  SOAPHelper.addHeaderBlock(context, getECPRequest(context, options));
  sendMessage(context, spDescriptor.isAuthnRequestsSigned(), SAMLConstants.SAML2_PAOS_BINDING_URI);
  
  HTTPOutTransport outTransport = (HTTPOutTransport) context.getOutboundMessageTransport();
  outTransport.setHeader("Content-Type", "application/vnd.paos+xml");
  SAMLMessageStorage messageStorage = context.getMessageStorage();
  if (messageStorage != null) {
    messageStorage.storeMessage(authRequest.getID(), authRequest);
  }
}

代码示例来源:origin: org.springframework.security.extensions/spring-security-saml2-core

protected Request getECPRequest(SAMLMessageContext context, WebSSOProfileOptions options) {
  SAMLObjectBuilder<Request> ecpRequestBuilder = (SAMLObjectBuilder<Request>) builderFactory.getBuilder(Request.DEFAULT_ELEMENT_NAME);
  Request ecpRequest = ecpRequestBuilder.buildObject();
  ecpRequest.setSOAP11Actor(Request.SOAP11_ACTOR_NEXT);
  ecpRequest.setSOAP11MustUnderstand(true);
  ecpRequest.setPassive(options.getPassive());
  ecpRequest.setProviderName(options.getProviderName());
  ecpRequest.setIssuer(getIssuer(context.getLocalEntityId()));
  Set<String> idpEntityNames = options.getAllowedIDPs();
  if (options.isIncludeScoping() && idpEntityNames != null) {
    ecpRequest.setIDPList(buildIDPList(idpEntityNames, null));
  }
  return ecpRequest;
}

代码示例来源:origin: metatron-app/metatron-discovery

@Bean
public WebSSOProfileECPImpl ecpprofile() {
 return new WebSSOProfileECPImpl();
}

代码示例来源:origin: vdenotaris/spring-boot-security-saml-sample

@Bean
public WebSSOProfileECPImpl ecpprofile() {
  return new WebSSOProfileECPImpl();
}

代码示例来源:origin: OpenConext/Mujina

@Bean
public WebSSOProfileECPImpl ecpprofile() {
 return new WebSSOProfileECPImpl();
}

代码示例来源:origin: ulisesbocchio/spring-boot-security-saml-samples

@Bean
public WebSSOProfileECPImpl ecpProfile() {
  return new WebSSOProfileECPImpl();
}

代码示例来源:origin: ulisesbocchio/spring-boot-security-saml

@VisibleForTesting
  protected WebSSOProfileECPImpl createDefaultWebSSOProfileECP() {
    return new WebSSOProfileECPImpl();
  }
}

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com