Tabnine Logo
SPSSODescriptor.getAttributeConsumingServices
Code IndexAdd Tabnine to your IDE (free)

How to use
getAttributeConsumingServices
method
in
org.opensaml.saml.saml2.metadata.SPSSODescriptor

Best Java code snippets using org.opensaml.saml.saml2.metadata.SPSSODescriptor.getAttributeConsumingServices (Showing top 7 results out of 315)

origin: org.opensaml/opensaml-saml-impl

/** {@inheritDoc} */
protected void processChildElement(XMLObject parentSAMLObject, XMLObject childSAMLObject)
    throws UnmarshallingException {
  SPSSODescriptor descriptor = (SPSSODescriptor) parentSAMLObject;
  if (childSAMLObject instanceof AssertionConsumerService) {
    descriptor.getAssertionConsumerServices().add((AssertionConsumerService) childSAMLObject);
  } else if (childSAMLObject instanceof AttributeConsumingService) {
    descriptor.getAttributeConsumingServices().add((AttributeConsumingService) childSAMLObject);
  } else {
    super.processChildElement(parentSAMLObject, childSAMLObject);
  }
}
origin: org.opensaml/opensaml-saml-api

  return ((SPSSODescriptor) roleDescriptor).getAttributeConsumingServices();
} else if (roleDescriptor instanceof AttributeQueryDescriptorType) {
  log.debug("Resolving AttributeConsumingService candidates from AttributeQueryDescriptorType");
origin: spring-projects/spring-security-saml

protected List<Attribute> getRequestAttributes(SPSSODescriptor desc) {
  List<Attribute> result = new LinkedList<>();
  if (desc.getDefaultAttributeConsumingService() != null) {
    result.addAll(getRequestedAttributes(desc.getDefaultAttributeConsumingService()
      .getRequestAttributes()));
  }
  else {
    for (AttributeConsumingService s :
      ofNullable(desc.getAttributeConsumingServices()).orElse(emptyList())) {
      if (s != null) {
        //take the first one
        result.addAll(getRequestedAttributes(s.getRequestAttributes()));
        break;
      }
    }
  }
  return result;
}
origin: org.apereo.cas/cas-server-support-saml-idp-core

  @Override
  protected Map<String, Object> getAttributesForSamlRegisteredService(final Map<String, Object> attributes,
                                    final SamlRegisteredService service, final ApplicationContext applicationContext,
                                    final SamlRegisteredServiceCachingMetadataResolver resolver,
                                    final SamlRegisteredServiceServiceProviderMetadataFacade facade,
                                    final EntityDescriptor entityDescriptor) {
    val releaseAttributes = new HashMap<String, Object>();
    val sso = facade.getSsoDescriptor();
    if (sso != null) {
      sso.getAttributeConsumingServices().forEach(svc -> svc.getRequestAttributes().stream().filter(attr -> {
        val name = this.useFriendlyName ? attr.getFriendlyName() : attr.getName();
        LOGGER.debug("Checking for requested attribute [{}] in metadata for [{}]", name, service.getName());
        return attributes.containsKey(name);
      }).forEach(attr -> {
        val name = this.useFriendlyName ? attr.getFriendlyName() : attr.getName();
        LOGGER.debug("Found requested attribute [{}] in metadata for [{}]", name, service.getName());
        releaseAttributes.put(name, attributes.get(name));
      }));
    }
    return releaseAttributes;
  }
}
origin: org.opensaml/opensaml-saml-impl

if (null != index) {
  log.debug("{} Request specified AttributeConsumingService index {}", getLogPrefix(), index);
  for (final AttributeConsumingService acsEntry : ssoDescriptor.getAttributeConsumingServices()) {
    if (index.intValue() == acsEntry.getIndex()) {
      acs = acsEntry;
origin: spring-projects/spring-security-saml

.getAttributeConsumingServices()
.add(getAttributeConsumingService(sp.getRequestedAttributes()));
origin: org.pac4j/pac4j-saml

spDescriptor.getAttributeConsumingServices().add(attributeService);
org.opensaml.saml.saml2.metadataSPSSODescriptorgetAttributeConsumingServices

Javadoc

Gets an list of attribute consuming service descriptors for this service.

Popular methods of SPSSODescriptor

  • getAssertionConsumerServices
    Gets an list of assertion consumer service Endpoints for this service.
  • getKeyDescriptors
  • getNameIDFormats
  • getSingleLogoutServices
  • setAuthnRequestsSigned
    Sets whether this service signs AuthN requests.
  • setWantAssertionsSigned
    Sets whether this service wants assertions signed.
  • addSupportedProtocol
  • isAuthnRequestsSigned
    Gets whether this service signs AuthN requests.
  • getWantAssertionsSigned
    Gets whether this service wants assertions signed.
  • getExtensions
  • getCacheDuration
  • getDefaultAttributeConsumingService
    Gets the default attribute consuming service. The selection algorithm used is: 1. Select the first s
  • getCacheDuration,
  • getDefaultAttributeConsumingService,
  • getEndpoints,
  • getOrganization,
  • getSupportedProtocols,
  • getValidUntil,
  • getArtifactResolutionServices,
  • getContactPersons,
  • getDefaultAssertionConsumerService

Popular in Java

  • Reactive rest calls using spring rest template
  • putExtra (Intent)
  • getExternalFilesDir (Context)
  • getApplicationContext (Context)
  • File (java.io)
    An "abstract" representation of a file system entity identified by a pathname. The pathname may be a
  • ResultSet (java.sql)
    An interface for an object which represents a database table entry, returned as the result of the qu
  • SortedSet (java.util)
    SortedSet is a Set which iterates over its elements in a sorted order. The order is determined eithe
  • Notification (javax.management)
  • ServletException (javax.servlet)
    Defines a general exception a servlet can throw when it encounters difficulty.
  • XPath (javax.xml.xpath)
    XPath provides access to the XPath evaluation environment and expressions. Evaluation of XPath Expr
  • Top Sublime Text plugins
Tabnine Logo
  • Products

    Search for Java codeSearch for JavaScript code
  • IDE Plugins

    IntelliJ IDEAWebStormVisual StudioAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimGoLandRubyMineEmacsJupyter NotebookJupyter LabRiderDataGripAppCode
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogTabnine AcademyTerms of usePrivacy policyJava Code IndexJavascript Code Index
Get Tabnine for your IDE now