Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
grada84 committed Nov 4, 2024
1 parent 2a176a4 commit a386de9
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

public class PortalWSClient {

public static final String confDir = System.getProperty("jboss.server.config.dir");
public static final String CONF_DIR = System.getProperty("jboss.server.config.dir");

private static final String URL_PORTAL_WS = "URL_PORTAL_WS";
private static final String PORTAL_AUTHORIZATION = "Authorization";
Expand All @@ -26,10 +26,6 @@ public class PortalWSClient {
private static final String PORTAL_PASS = "PORTAL_PASS";
private static final String PORTAL_TOTP = "PORTAL_TOTP";

public PortalWSClient() {

}

public static TokenData getTokenData(String token) {
try {
String jsonData = readUrlToken((getURLWS() + "/authorization"), token);
Expand All @@ -46,6 +42,7 @@ public static TokenData getTokenData(String token) {
}

public static void print(String printeable) {
// utils print
System.out.println("*******************");
System.out.println(printeable);
System.out.println("*******************");
Expand Down Expand Up @@ -136,7 +133,7 @@ private static String getURLWS() {

public static Properties getPaiProperties() {
Properties prop = new Properties();
try (InputStream input = new FileInputStream(confDir.concat("/pai.properties"))) {
try (InputStream input = new FileInputStream(CONF_DIR.concat("/pai.properties"))) {
prop.load(input);
} catch (IOException ex) {
ex.printStackTrace();
Expand Down

0 comments on commit a386de9

Please sign in to comment.