/** * <p>Configures the IDP trusted domains by looking at {@link SPSSODescriptorType} definitions along the metadata.</p> * * @param idpType * @param entities */ private void configureTrustedDomainsFromMetadata(IDPType idpType, EntitiesDescriptorType entities) { if (idpType.getTrust() == null) { idpType.setTrust(new TrustType()); } for (Object entityDescriptorObj : entities.getEntityDescriptor()) { EntityDescriptorType entityDescriptorType = (EntityDescriptorType) entityDescriptorObj; SPSSODescriptorType spDescriptor = CoreConfigUtil.getSPDescriptor(entityDescriptorType); if (spDescriptor != null) { for (IndexedEndpointType assertionConsumerService : spDescriptor.getAssertionConsumerService()) { URI location = assertionConsumerService.getLocation(); idpType.getTrust().addDomain(location.getHost()); } } } } }
/** * <p>Configures the IDP trusted domains by looking at {@link SPSSODescriptorType} definitions along the * metadata.</p> * * @param idpType * @param entities */ private void configureTrustedDomainsFromMetadata(IDPType idpType, EntitiesDescriptorType entities) { if (idpType.getTrust() == null) { idpType.setTrust(new TrustType()); } for (Object entityDescriptorObj : entities.getEntityDescriptor()) { EntityDescriptorType entityDescriptorType = (EntityDescriptorType) entityDescriptorObj; SPSSODescriptorType spDescriptor = CoreConfigUtil.getSPDescriptor(entityDescriptorType); if (spDescriptor != null) { for (IndexedEndpointType assertionConsumerService : spDescriptor.getAssertionConsumerService()) { URI location = assertionConsumerService.getLocation(); idpType.getTrust().addDomain(location.getHost()); } } } }
/** * <p>Configures the IDP trusted domains by looking at {@link SPSSODescriptorType} definitions along the * metadata.</p> * * @param idpType * @param entities */ private void configureTrustedDomainsFromMetadata(IDPType idpType, EntitiesDescriptorType entities) { if (idpType.getTrust() == null) { idpType.setTrust(new TrustType()); } for (Object entityDescriptorObj : entities.getEntityDescriptor()) { EntityDescriptorType entityDescriptorType = (EntityDescriptorType) entityDescriptorObj; SPSSODescriptorType spDescriptor = CoreConfigUtil.getSPDescriptor(entityDescriptorType); if (spDescriptor != null) { for (IndexedEndpointType assertionConsumerService : spDescriptor.getAssertionConsumerService()) { URI location = assertionConsumerService.getLocation(); idpType.getTrust().addDomain(location.getHost()); } } } }
/** * Given a metadata {@link EntityDescriptorType}, construct the Service provider configuration * * @param entityDescriptor * @param bindingURI * * @return */ public static ProviderType getSPConfiguration(EntityDescriptorType entityDescriptor, String bindingURI) { SPType spType = new SPType(); String identityURL = null; String serviceURL = null; if (identityURL == null) { IDPSSODescriptorType idpSSO = getIDPDescriptor(entityDescriptor); if (idpSSO != null) { identityURL = getIdentityURL(idpSSO, bindingURI); } spType.setIdentityURL(identityURL); } if (serviceURL == null) { SPSSODescriptorType spSSO = getSPDescriptor(entityDescriptor); if (spSSO != null) { serviceURL = getServiceURL(spSSO, bindingURI); } spType.setServiceURL(serviceURL); } return spType; }
/** * Given a metadata {@link EntityDescriptorType}, construct the Service provider configuration * * @param entityDescriptor * @param bindingURI * * @return */ public static ProviderType getSPConfiguration(EntityDescriptorType entityDescriptor, String bindingURI) { SPType spType = new SPType(); String identityURL = null; String serviceURL = null; if (identityURL == null) { IDPSSODescriptorType idpSSO = getIDPDescriptor(entityDescriptor); if (idpSSO != null) { identityURL = getIdentityURL(idpSSO, bindingURI); } spType.setIdentityURL(identityURL); } if (serviceURL == null) { SPSSODescriptorType spSSO = getSPDescriptor(entityDescriptor); if (spSSO != null) { serviceURL = getServiceURL(spSSO, bindingURI); } spType.setServiceURL(serviceURL); } return spType; }
SPSSODescriptorType spSSO = getSPDescriptor(entityDescriptor); if (spSSO != null)
SPSSODescriptorType spSSO = getSPDescriptor(entityDescriptor); if (spSSO != null)
if (entityDescriptors != null) { for (EntityDescriptorType entityDescriptorType : entityDescriptors) { SPSSODescriptorType spSSODescriptor = CoreConfigUtil.getSPDescriptor(entityDescriptorType); if (spSSODescriptor != null) { spSSOMetadataMap.put(entityDescriptorType.getEntityID(), spSSODescriptor);
if (entityDescriptors != null) { for (EntityDescriptorType entityDescriptorType : entityDescriptors) { SPSSODescriptorType spSSODescriptor = CoreConfigUtil.getSPDescriptor(entityDescriptorType); if (spSSODescriptor != null) { spSSOMetadataMap.put(entityDescriptorType.getEntityID(), spSSODescriptor);
if (entityDescriptors != null) { for (EntityDescriptorType entityDescriptorType : entityDescriptors) { SPSSODescriptorType spSSODescriptor = CoreConfigUtil.getSPDescriptor(entityDescriptorType); if (spSSODescriptor != null) { spSSOMetadataMap.put(entityDescriptorType.getEntityID(), spSSODescriptor);
if (entityDescriptors != null) { for (EntityDescriptorType entityDescriptorType : entityDescriptors) { SPSSODescriptorType spSSODescriptor = CoreConfigUtil.getSPDescriptor(entityDescriptorType); if (spSSODescriptor != null) { spSSOMetadataMap.put(entityDescriptorType.getEntityID(), spSSODescriptor);
if (entityDescriptors != null) { for (EntityDescriptorType entityDescriptorType : entityDescriptors) { SPSSODescriptorType spSSODescriptor = CoreConfigUtil.getSPDescriptor(entityDescriptorType); if (spSSODescriptor != null) { spSSOMetadataMap.put(entityDescriptorType.getEntityID(), spSSODescriptor);
if (entityDescriptors != null) { for (EntityDescriptorType entityDescriptorType : entityDescriptors) { SPSSODescriptorType spSSODescriptor = CoreConfigUtil.getSPDescriptor(entityDescriptorType); if (spSSODescriptor != null) { spSSOMetadataMap.put(entityDescriptorType.getEntityID(), spSSODescriptor);
/** * Given a metadata {@link EntityDescriptorType}, construct the Service provider configuration * * @param entityDescriptor * @param bindingURI * @return */ public static ProviderType getSPConfiguration(EntityDescriptorType entityDescriptor, String bindingURI) { SPType spType = new SPType(); String identityURL = null; String serviceURL = null; if (identityURL == null) { IDPSSODescriptorType idpSSO = getIDPDescriptor(entityDescriptor); if (idpSSO != null) { identityURL = getIdentityURL(idpSSO, bindingURI); spType.setIdentityURL(identityURL); spType.setLogoutUrl(getLogoutURL(idpSSO, bindingURI)); spType.setLogoutResponseLocation(getLogoutResponseLocation(idpSSO, bindingURI)); } } if (serviceURL == null) { SPSSODescriptorType spSSO = getSPDescriptor(entityDescriptor); if (spSSO != null) { serviceURL = getServiceURL(spSSO, bindingURI); } spType.setServiceURL(serviceURL); } return spType; }
spSSO = getSPDescriptor((EntityDescriptorType) theObject);
SPSSODescriptorType spSSO = getSPDescriptor((EntityDescriptorType) theObject); if (spSSO != null)
SPSSODescriptorType spSSO = getSPDescriptor((EntityDescriptorType) theObject); if (spSSO != null)
spSSO = getSPDescriptor(entityDescriptor);
spSSO = getSPDescriptor(entityDescriptor);