use of org.picketlink.config.federation.IDPType in project wildfly by wildfly.
the class DomainModelConfigProvider method getIDPConfiguration.
@Override
public IDPType getIDPConfiguration() {
ProviderType providerType = getPicketLinkConfiguration().getIdpOrSP();
if (providerType instanceof IDPConfiguration) {
IDPConfiguration configuration = (IDPConfiguration) providerType;
if (configuration.isSupportMetadata()) {
try {
IDPType metadataConfig = new IDPMetadataConfigurationProvider().getIDPConfiguration();
metadataConfig.importFrom(configuration);
providerType = metadataConfig;
} catch (ProcessingException e) {
throw PicketLinkLogger.ROOT_LOGGER.federationSAMLMetadataConfigError(configuration.getAlias(), e);
}
}
if (configParsedIDPType != null) {
configuration.importFrom(configParsedIDPType);
}
return (IDPType) providerType;
}
return null;
}
Aggregations