use of org.picketlink.config.federation.parsers.STSConfigParser in project wildfly by wildfly.
the class EntityProviderService method createSTSType.
private STSType createSTSType() {
STSType stsType = null;
InputStream stream = null;
try {
URL url = getClass().getClassLoader().getResource("core-sts.xml");
if (url == null) {
url = Thread.currentThread().getContextClassLoader().getResource("core-sts");
}
if (url != null) {
stream = url.openStream();
stsType = (STSType) new STSConfigParser().parse(stream);
}
} catch (Exception e) {
throw PicketLinkLogger.ROOT_LOGGER.federationCouldNotParseSTSConfig(e);
} finally {
try {
if (stream != null) {
stream.close();
}
} catch (IOException ignored) {
}
}
return stsType;
}
Aggregations