|
|
@ -116,10 +116,18 @@ public class JWTClientUtil {
|
|
|
|
throws RegistryException, IOException, JWTClientConfigurationException {
|
|
|
|
throws RegistryException, IOException, JWTClientConfigurationException {
|
|
|
|
File configFile = new File(SUPERTENANT_JWT_CONFIG_LOCATION);
|
|
|
|
File configFile = new File(SUPERTENANT_JWT_CONFIG_LOCATION);
|
|
|
|
if (configFile.exists()) {
|
|
|
|
if (configFile.exists()) {
|
|
|
|
InputStream propertyStream = configFile.toURI().toURL().openStream();
|
|
|
|
InputStream propertyStream = null;
|
|
|
|
|
|
|
|
try {
|
|
|
|
|
|
|
|
propertyStream = configFile.toURI().toURL().openStream();
|
|
|
|
Properties properties = new Properties();
|
|
|
|
Properties properties = new Properties();
|
|
|
|
properties.load(propertyStream);
|
|
|
|
properties.load(propertyStream);
|
|
|
|
jwtClientManagerService.setDefaultJWTClient(properties);
|
|
|
|
jwtClientManagerService.setDefaultJWTClient(properties);
|
|
|
|
|
|
|
|
} finally {
|
|
|
|
|
|
|
|
if (propertyStream != null) {
|
|
|
|
|
|
|
|
propertyStream.close();
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|