
com.bcgdv.jwt.util.PropUtil Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of token-generation Show documentation
Show all versions of token-generation Show documentation
JWT token generation with encrypted payloads and CLI
/*
* PropUtil
*/
package com.bcgdv.jwt.util;
/**
* Get props from the environment or java args.
*/
public class PropUtil {
/**
* Fetch value as Java property or environment variable.
* @param key they key
* @return value as String
*/
public static String getEnvOrProperty(String key) {
String value = System.getProperty(key);
if (value == null) {
value = System.getenv(key);
}
return value;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy