/** * @see SAMLConfigurationProvider#getIDPConfiguration() */ public IDPType getIDPConfiguration() throws ProcessingException { IDPType idpType = null; if (fileAvailable()) { try { EntitiesDescriptorType entities = parseMDFile(); IDPSSODescriptorType idpSSO = CoreConfigUtil.getIDPDescriptor(entities); if (idpSSO != null) { idpType = CoreConfigUtil.getIDPType(idpSSO); } } catch (ParsingException e) { throw new ProcessingException(e); } } if (configParsedIDPType != null) { idpType.importFrom(configParsedIDPType); } return idpType; }
/** * @see SAMLConfigurationProvider#getIDPConfiguration() */ public IDPType getIDPConfiguration() throws ProcessingException { IDPType idpType = null; if (fileAvailable()) { try { EntitiesDescriptorType entities = parseMDFile(); IDPSSODescriptorType idpSSO = CoreConfigUtil.getIDPDescriptor(entities); if (idpSSO != null) { idpType = CoreConfigUtil.getIDPType(idpSSO); } } catch (ParsingException e) { throw new ProcessingException(e); } } if (configParsedIDPType != null) { idpType.importFrom(configParsedIDPType); } return idpType; }
/** * @see SAMLConfigurationProvider#getIDPConfiguration() */ public IDPType getIDPConfiguration() throws ProcessingException { IDPType idpType = null; if (fileAvailable()) { try { EntitiesDescriptorType entities = parseMDFile(); IDPSSODescriptorType idpSSO = CoreConfigUtil.getIDPDescriptor(entities); if (idpSSO != null) { idpType = CoreConfigUtil.getIDPType(idpSSO); } configureTrustedDomainsFromMetadata(idpType, entities); } catch (ParsingException e) { throw logger.processingError(e); } } else { throw logger.nullValueError(IDP_MD_FILE); } if (configParsedIDPType != null) { idpType.importFrom(configParsedIDPType); } return idpType; }
/** * @see org.picketlink.identity.federation.web.util.SAMLConfigurationProvider#getIDPConfiguration() */ public IDPType getIDPConfiguration() throws ProcessingException { IDPType idpType = null; if (fileAvailable()) { try { EntitiesDescriptorType entities = parseMDFile(); if(entities == null){ throw logger.nullValueError("entities"); } IDPSSODescriptorType idpSSO = CoreConfigUtil.getIDPDescriptor(entities); if (idpSSO != null) { idpType = CoreConfigUtil.getIDPType(idpSSO); } configureTrustedDomainsFromMetadata(idpType, entities); } catch (ParsingException e) { throw logger.processingError(e); } } else { throw logger.nullValueError(getIdpMetadataLocation()); } if (configParsedIDPType != null) { idpType.importFrom(configParsedIDPType); } return idpType; }
/** * @see org.picketlink.identity.federation.web.util.SAMLConfigurationProvider#getIDPConfiguration() */ public IDPType getIDPConfiguration() throws ProcessingException { IDPType idpType = null; if (fileAvailable()) { try { EntitiesDescriptorType entities = parseMDFile(); if(entities == null){ throw logger.nullValueError("entities"); } IDPSSODescriptorType idpSSO = CoreConfigUtil.getIDPDescriptor(entities); if (idpSSO != null) { idpType = CoreConfigUtil.getIDPType(idpSSO); } configureTrustedDomainsFromMetadata(idpType, entities); } catch (ParsingException e) { throw logger.processingError(e); } } else { throw logger.nullValueError(getIdpMetadataLocation()); } if (configParsedIDPType != null) { idpType.importFrom(configParsedIDPType); } return idpType; }