mirror of
https://repository.entgra.net/community/device-mgt-core.git
synced 2025-10-06 02:01:45 +00:00
commit
59b862dfc7
@ -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;
|
||||||
Properties properties = new Properties();
|
try {
|
||||||
properties.load(propertyStream);
|
propertyStream = configFile.toURI().toURL().openStream();
|
||||||
jwtClientManagerService.setDefaultJWTClient(properties);
|
Properties properties = new Properties();
|
||||||
|
properties.load(propertyStream);
|
||||||
|
jwtClientManagerService.setDefaultJWTClient(properties);
|
||||||
|
} finally {
|
||||||
|
if (propertyStream != null) {
|
||||||
|
propertyStream.close();
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user