Package org.keycloak.saml.common.util
Class SecurityActions
- java.lang.Object
- 
- org.keycloak.saml.common.util.SecurityActions
 
- 
 public class SecurityActions extends Object Privileged Blocks- Since:
- Dec 9, 2008
- Author:
- Anil.Saldhana@redhat.com
 
- 
- 
Constructor SummaryConstructors Constructor Description SecurityActions()
 - 
Method SummaryAll Methods Static Methods Concrete Methods Modifier and Type Method Description static StringgetSystemProperty(String key, String defaultValue)Returns a system property value using the specifiedkey.static ClassLoadergetTCCL()Get the Thread Context ClassLoaderstatic Class<?>loadClass(Class<?> theClass, String fullQualifiedName)Loads aClassusing thefullQualifiedNamesupplied.static Class<?>loadClass(ClassLoader classLoader, String fullQualifiedName)Loads a class from the specifiedClassLoaderusing thefullQualifiedNamesupplied.static URLloadResource(Class<?> clazz, String resourceName)Load a resource based on the passedClassclassloader.static voidsetSystemProperty(String key, String value)Set the system propertystatic voidsetTCCL(ClassLoader paramCl)Set the Thread Context ClassLoader
 
- 
- 
- 
Method Detail- 
loadClasspublic static Class<?> loadClass(Class<?> theClass, String fullQualifiedName) Loads a Classusing thefullQualifiedNamesupplied. This method tries first to load from the specifiedClass, if not found it will try to load from using TCL.- Parameters:
- theClass-
- fullQualifiedName-
- Returns:
 
 - 
loadClasspublic static Class<?> loadClass(ClassLoader classLoader, String fullQualifiedName) Loads a class from the specified ClassLoaderusing thefullQualifiedNamesupplied.- Parameters:
- classLoader-
- fullQualifiedName-
- Returns:
 
 - 
loadResourcepublic static URL loadResource(Class<?> clazz, String resourceName) Load a resource based on the passedClassclassloader. Failing which try with the Thread Context CL- Parameters:
- clazz-
- resourceName-
- Returns:
 
 - 
setSystemPropertypublic static void setSystemProperty(String key, String value) Set the system property- Parameters:
- key-
- defaultValue-
 
 - 
getSystemPropertypublic static String getSystemProperty(String key, String defaultValue) Returns a system property value using the specified key. If not found thedefaultValuewill be returned.- Parameters:
- key-
- defaultValue-
- Returns:
 
 - 
getTCCLpublic static ClassLoader getTCCL() Get the Thread Context ClassLoader- Returns:
 
 - 
setTCCLpublic static void setTCCL(ClassLoader paramCl) Set the Thread Context ClassLoader- Parameters:
- paramCl-
 
 
- 
 
-