Codota Logo
SPSSODescriptor.getAssertionConsumerServices
Code IndexAdd Codota to your IDE (free)

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

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

  • Common ways to obtain SPSSODescriptor
private void myMethod () {
SPSSODescriptor s =
  • Codota IconEntityDescriptor entityDescriptor;String supportedProtocol;entityDescriptor.getSPSSODescriptor(supportedProtocol)
  • Codota IconSAMLObjectBuilder sAMLObjectBuilder;sAMLObjectBuilder.buildObject()
  • Smart code suggestions by Codota
}
origin: line/armeria

final List<AssertionConsumerService> services = spSsoDescriptor.getAssertionConsumerServices();
for (final SamlAssertionConsumerConfig acs : assertionConsumerConfigs) {
  services.add(buildAssertionConsumerServiceElement(acs, portConfig, defaultHostname, acsIndex++));
origin: line/armeria

assertThat(slo.get(1).getBinding()).isEqualTo(SAMLConstants.SAML2_REDIRECT_BINDING_URI);
final List<AssertionConsumerService> acs = sp.getAssertionConsumerServices();
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: net.shibboleth.idp/idp-cas-impl

/** Does the {@link EntityDescriptor} have a {@link MetadataServiceRegistry#PROXY_BINDING} acs. 
 * @param entity  what to look at
 * @return Whether is is authorized to proxy
 */
private boolean isAuthorizedToProxy(@Nonnull final EntityDescriptor entity) {
  final SPSSODescriptor descriptor = entity.getSPSSODescriptor(AbstractProtocolConfiguration.PROTOCOL_URI);
  if (descriptor != null) {
    for (final AssertionConsumerService acs : descriptor.getAssertionConsumerServices()) {
      if (PROXY_BINDING.equals(acs.getBinding())) {
        return true;
      }
    }
  }
  return false;
}
origin: org.pac4j/pac4j-saml

public final AssertionConsumerService getSPAssertionConsumerService(final String acsIndex) {
  final SPSSODescriptor spssoDescriptor = getSPSSODescriptor();
  final List<AssertionConsumerService> services = spssoDescriptor.getAssertionConsumerServices();
  // Get by index
  if (acsIndex != null) {
    for (final AssertionConsumerService service : services) {
      if (Integer.valueOf(acsIndex).equals(service.getIndex())) {
        return service;
      }
    }
    throw new SAMLException("Assertion consumer service with index " + acsIndex
        + " could not be found for spDescriptor " + spssoDescriptor);
  }
  // Get default
  if (spssoDescriptor.getDefaultAssertionConsumerService() != null) {
    return spssoDescriptor.getDefaultAssertionConsumerService();
  }
  // Get first
  if (!services.isEmpty()) {
    return services.iterator().next();
  }
  throw new SAMLException("No assertion consumer services could be found for " + spssoDescriptor);
}
origin: com.linecorp.armeria/armeria-saml

final List<AssertionConsumerService> services = spSsoDescriptor.getAssertionConsumerServices();
for (final SamlAssertionConsumerConfig acs : assertionConsumerConfigs) {
  services.add(buildAssertionConsumerServiceElement(acs, portConfig, defaultHostname, acsIndex++));
origin: codice/ddf

assertionConsumerService.setIndex(acsIndex++);
assertionConsumerService.setLocation(assertionConsumerServiceLocationRedirect);
spSsoDescriptor.getAssertionConsumerServices().add(assertionConsumerService);
assertionConsumerService.setIndex(acsIndex++);
assertionConsumerService.setLocation(assertionConsumerServiceLocationPost);
spSsoDescriptor.getAssertionConsumerServices().add(assertionConsumerService);
assertionConsumerServicePaos.setIndex(acsIndex);
assertionConsumerServicePaos.setLocation(assertionConsumerServiceLocationPaos);
spSsoDescriptor.getAssertionConsumerServices().add(assertionConsumerServicePaos);
origin: org.apereo.cas/cas-server-support-saml-idp-core

it.forEach(entityDescriptor -> {
  val spssoDescriptor = entityDescriptor.getSPSSODescriptor(SAMLConstants.SAML20P_NS);
  val acsEndpoints = spssoDescriptor.getAssertionConsumerServices();
  if (acsEndpoints.isEmpty()) {
    throw new IllegalArgumentException("Metadata resolved for entity id " + issuer + " has no defined ACS endpoints");
origin: org.pac4j/pac4j-saml

spDescriptor.getAssertionConsumerServices()
  .add(getAssertionConsumerService(SAMLConstants.SAML2_POST_BINDING_URI, index++, this.defaultACSIndex == index));
spDescriptor.getSingleLogoutServices().add(getSingleLogoutService(SAMLConstants.SAML2_POST_BINDING_URI));
origin: spring-projects/spring-security-saml

descriptor.getAssertionConsumerServices().add(getAssertionConsumerService(ep, i));
origin: org.apache.syncope.ext.saml2sp/syncope-ext-saml2sp-logic

assertionConsumerService.setBinding(bindingType.getUri());
assertionConsumerService.setLocation(getAssertionConsumerURL(spEntityID, urlContext));
spSSODescriptor.getAssertionConsumerServices().add(assertionConsumerService);
spEntityDescriptor.getRoleDescriptors().add(spSSODescriptor);
origin: spring-projects/spring-security-saml

provider.setAuthnRequestsSigned(desc.isAuthnRequestsSigned());
provider.setWantAssertionsSigned(desc.getWantAssertionsSigned());
provider.setAssertionConsumerService(getEndpoints(desc.getAssertionConsumerServices()));
provider.setRequestedAttributes(getRequestAttributes(desc));
provider.setKeys(getProviderKeys(descriptor));
org.opensaml.saml.saml2.metadataSPSSODescriptorgetAssertionConsumerServices

Javadoc

Gets an list of assertion consumer service Endpoints for this service.

Popular methods of SPSSODescriptor

  • getKeyDescriptors
  • getNameIDFormats
  • getSingleLogoutServices
  • setAuthnRequestsSigned
    Sets whether this service signs AuthN requests.
  • setWantAssertionsSigned
    Sets whether this service wants assertions signed.
  • addSupportedProtocol
  • getAttributeConsumingServices
    Gets an list of attribute consuming service descriptors for this service.
  • 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

  • Start an intent from android
  • onCreateOptionsMenu (Activity)
  • putExtra (Intent)
  • setContentView (Activity)
  • URL (java.net)
    A Uniform Resource Locator that identifies the location of an Internet resource as specified by RFC
  • Path (java.nio.file)
  • Set (java.util)
    A collection that contains no duplicate elements. More formally, sets contain no pair of elements e1
  • ConcurrentHashMap (java.util.concurrent)
    A hash table supporting full concurrency of retrievals and adjustable expected concurrency for updat
  • Logger (org.apache.log4j)
    This is the central class in the log4j package. Most logging operations, except configuration, are d
  • IsNull (org.hamcrest.core)
    Is the value null?
Codota Logo
  • Products

    Search for Java codeSearch for JavaScript codeEnterprise
  • IDE Plugins

    IntelliJ IDEAWebStormAndroid StudioEclipseVisual Studio CodePyCharmSublime TextPhpStormVimAtomGoLandRubyMineEmacsJupyter
  • Company

    About UsContact UsCareers
  • Resources

    FAQBlogCodota Academy Plugin user guide Terms of usePrivacy policyJava Code IndexJavascript Code Index
Get Codota for your IDE now