/** * @see SAMLConfigurationProvider#getSPConfiguration() */ public SPType getSPConfiguration() throws ProcessingException { SPType spType = null; if (fileAvailable()) { try { EntitiesDescriptorType entities = parseMDFile(); spType = CoreConfigUtil.getSPConfiguration(entities, bindingURI); } catch (ParsingException e) { throw new ProcessingException(e); } } if (configParsedSPType != null) { spType.importFrom(configParsedSPType); } return spType; }
@Override public SPType getSPConfiguration() { ProviderType providerType = this.getPicketLinkConfiguration().getIdpOrSP(); if (providerType instanceof SPConfiguration) { SPConfiguration configuration = (SPConfiguration) providerType; if (configuration.isSupportMetadata()) { try { SPType metadataConfig; if (configuration.isPostBinding()) { metadataConfig = new SPPostMetadataConfigurationProvider().getSPConfiguration(); } else { metadataConfig = new SPRedirectMetadataConfigurationProvider().getSPConfiguration(); } metadataConfig.importFrom(configuration); providerType = metadataConfig; } catch (ProcessingException e) { throw PicketLinkLogger.ROOT_LOGGER.federationSAMLMetadataConfigError(configuration.getAlias(), e); } } if (configParsedSPType != null) { configuration.importFrom(configParsedSPType); } return (SPType) providerType; } return null; }
@Override public SPType getSPConfiguration() { ProviderType providerType = this.getPicketLinkConfiguration().getIdpOrSP(); if (providerType instanceof SPConfiguration) { SPConfiguration configuration = (SPConfiguration) providerType; if (configuration.isSupportMetadata()) { try { SPType metadataConfig; if (configuration.isPostBinding()) { metadataConfig = new SPPostMetadataConfigurationProvider().getSPConfiguration(); } else { metadataConfig = new SPRedirectMetadataConfigurationProvider().getSPConfiguration(); } metadataConfig.importFrom(configuration); providerType = metadataConfig; } catch (ProcessingException e) { throw PicketLinkLogger.ROOT_LOGGER.federationSAMLMetadataConfigError(configuration.getAlias(), e); } } if (configParsedSPType != null) { configuration.importFrom(configParsedSPType); } return (SPType) providerType; } return null; }
/** * @see SAMLConfigurationProvider#getSPConfiguration() */ public SPType getSPConfiguration() throws ProcessingException { SPType spType = null; if (fileAvailable()) { try { EntitiesDescriptorType entities = parseMDFile(); spType = CoreConfigUtil.getSPConfiguration(entities, bindingURI); } catch (ParsingException e) { throw new ProcessingException(e); } } if (configParsedSPType != null) { spType.importFrom(configParsedSPType); } return spType; }
/** * @see SAMLConfigurationProvider#getSPConfiguration() */ public SPType getSPConfiguration() throws ProcessingException { SPType spType = null; if (fileAvailable()) { try { EntitiesDescriptorType entities = parseMDFile(); spType = CoreConfigUtil.getSPConfiguration(entities, bindingURI); } catch (ParsingException e) { throw logger.processingError(e); } catch (ConfigurationException ce) { throw logger.processingError(ce); } } if (configParsedSPType != null) { spType.importFrom(configParsedSPType); } return spType; }