Package org.gatein.sso.integration
Class SSOUtils
java.lang.Object
org.gatein.sso.integration.SSOUtils
Helper with various utils
- Author:
- Marek Posolda
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic StringgetSystemProperty(String key, String defaultValue) static booleanstatic Class<?> Attempt to load class from various available classloadersstatic StringsubstituteSystemProperty(String input) Replaces variables of ${var:default} with System.getProperty(var, default).
-
Constructor Details
-
SSOUtils
public SSOUtils()
-
-
Method Details
-
isSSOEnabled
public static boolean isSSOEnabled() -
getSystemProperty
-
loadClass
Attempt to load class from various available classloaders- Parameters:
filterClazz- class- Returns:
- loaded Class
-
substituteSystemProperty
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
-