Package org.gatein.sso.integration
Class SSOUtils
- java.lang.Object
-
- org.gatein.sso.integration.SSOUtils
-
public class SSOUtils extends Object
Helper with various utils- Author:
- Marek Posolda
-
-
Constructor Summary
Constructors Constructor Description SSOUtils()
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetSystemProperty(String key, String defaultValue)static booleanisSSOEnabled()static Class<?>loadClass(String filterClazz)Attempt to load class from various available classloadersstatic StringsubstituteSystemProperty(String input)Replaces variables of ${var:default} with System.getProperty(var, default).
-
-
-
Method Detail
-
isSSOEnabled
public static boolean isSSOEnabled()
-
loadClass
public static Class<?> loadClass(String filterClazz)
Attempt to load class from various available classloaders- Parameters:
filterClazz- class- Returns:
- loaded Class
-
substituteSystemProperty
public static String substituteSystemProperty(String input)
Replaces variables of ${var:default} with System.getProperty(var, default). If no variables are found, returns the same string, otherwise a copy of the string with variables substituted- Parameters:
input-- Returns:
- A string with vars replaced, or the same string if no vars found
-
-