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

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

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

WebSSOProfileImpl介绍

[英]Class implements WebSSO profile and offers capabilities for SP initialized SSO and process Response coming from IDP or IDP initialized SSO. HTTP-POST and HTTP-Redirect bindings are supported.
[中]类实现WebSO配置文件,并提供SP初始化SSO和来自IDP或IDP初始化SSO的进程响应的功能。支持HTTP-POST和HTTP重定向绑定。

代码示例

代码示例来源:origin: cloudfoundry/uaa

@Override
  protected SingleSignOnService getSingleSignOnService(WebSSOProfileOptions options, IDPSSODescriptor idpssoDescriptor, SPSSODescriptor spDescriptor) throws MetadataProviderException {
    try {
      return super.getSingleSignOnService(options, idpssoDescriptor, spDescriptor);
    } catch (MetadataProviderException e) {
      throw new SamlBindingNotSupportedException(e.getMessage(), e);
    }
  }
}

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

@Bean
public WebSSOProfile webSSOprofile() {
 return new WebSSOProfileImpl();
}

代码示例来源:origin: spring-projects/spring-security-saml-dsl

private WebSSOProfile webSSOProfile() {
  WebSSOProfileImpl webSSOProfile = new WebSSOProfileImpl(samlProcessor, cachingMetadataManager);
  webSSOProfile.setResponseSkew(serviceProvider.responseSkew);
  return webSSOProfile;
}

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

@Bean
@Autowired
public WebSSOProfile webSSOprofile(SAMLProcessor samlProcessor) {
 WebSSOProfileImpl webSSOProfile = new WebSSOProfileImpl();
 webSSOProfile.setProcessor(samlProcessor);
 return webSSOProfile;
}

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

SingleSignOnService ssoService = getSingleSignOnService(options, idpssoDescriptor, spDescriptor);
AssertionConsumerService consumerService = getAssertionConsumerService(options, idpssoDescriptor, spDescriptor);
AuthnRequest authRequest = getAuthnRequest(context, options, consumerService, ssoService);
context.setCommunicationProfileId(getProfileIdentifier());
context.setOutboundMessage(authRequest);
context.setOutboundSAMLMessage(authRequest);
sendMessage(context, sign);

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

/**
 * Returns AuthnRequest SAML message to be used to demand authentication from an IDP described using
 * idpEntityDescriptor, with an expected response to the assertionConsumer address.
 *
 * @param context           message context
 * @param options           preferences of message creation
 * @param assertionConsumer assertion consumer where the IDP should respond
 * @param bindingService    service used to deliver the request
 * @return authnRequest ready to be sent to IDP
 * @throws SAMLException             error creating the message
 * @throws MetadataProviderException error retreiving metadata
 */
protected AuthnRequest getAuthnRequest(SAMLMessageContext context, WebSSOProfileOptions options,
                    AssertionConsumerService assertionConsumer,
                    SingleSignOnService bindingService) throws SAMLException, MetadataProviderException {
  SAMLObjectBuilder<AuthnRequest> builder = (SAMLObjectBuilder<AuthnRequest>) builderFactory.getBuilder(AuthnRequest.DEFAULT_ELEMENT_NAME);
  AuthnRequest request = builder.buildObject();
  request.setIsPassive(options.getPassive());
  request.setForceAuthn(options.getForceAuthN());
  request.setProviderName(options.getProviderName());
  request.setVersion(SAMLVersion.VERSION_20);
  buildCommonAttributes(context.getLocalEntityId(), request, bindingService);
  buildScoping(request, bindingService, options);
  builNameIDPolicy(request, options);
  buildAuthnContext(request, options);
  buildReturnAddress(request, assertionConsumer);
  return request;
}

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

/**
 * SAML 2.0 Web SSO profile.
 *
 * @return The web profile
 * @see WebSSOProfile
 * @see WebSSOProfileImpl
 */
@Bean
public WebSSOProfile webSSOprofile() {
  return new WebSSOProfileImpl();
}

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

@Bean
public WebSSOProfile webSSOprofile() {
  return new WebSSOProfileImpl();
}

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

@Bean
public WebSSOProfile webSSOprofile() {
  return new WebSSOProfileImpl();
}

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

@VisibleForTesting
  protected WebSSOProfile createDefaultWebSSOProfile() {
    return new WebSSOProfileImpl();
  }
}

相关文章

WebSSOProfileImpl类方法