Package org.keycloak.saml.common.util
Class SecurityActions
java.lang.Object
org.keycloak.saml.common.util.SecurityActions
Privileged Blocks
- Since:
- Dec 9, 2008
- Author:
- Anil.Saldhana@redhat.com
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic String
getSystemProperty
(String key, String defaultValue) Returns a system property value using the specifiedkey
.static ClassLoader
getTCCL()
Get the Thread Context ClassLoaderstatic Class<?>
Loads aClass
using thefullQualifiedName
supplied.static Class<?>
loadClass
(ClassLoader classLoader, String fullQualifiedName) Loads a class from the specifiedClassLoader
using thefullQualifiedName
supplied.static URL
loadResource
(Class<?> clazz, String resourceName) Load a resource based on the passedClass
classloader.static void
setSystemProperty
(String key, String value) Set the system propertystatic void
setTCCL
(ClassLoader paramCl) Set the Thread Context ClassLoader
-
Constructor Details
-
SecurityActions
public SecurityActions()
-
-
Method Details
-
loadClass
Loads a
Class
using thefullQualifiedName
supplied. This method tries first to load from the specifiedClass
, if not found it will try to load from using TCL.- Parameters:
theClass
-fullQualifiedName
-- Returns:
-
loadClass
Loads a class from the specified
ClassLoader
using thefullQualifiedName
supplied.- Parameters:
classLoader
-fullQualifiedName
-- Returns:
-
loadResource
Load a resource based on the passedClass
classloader. Failing which try with the Thread Context CL- Parameters:
clazz
-resourceName
-- Returns:
-
setSystemProperty
Set the system property- Parameters:
key
-defaultValue
-
-
getSystemProperty
Returns a system property value using the specified
key
. If not found thedefaultValue
will be returned.- Parameters:
key
-defaultValue
-- Returns:
-
getTCCL
Get the Thread Context ClassLoader- Returns:
-
setTCCL
Set the Thread Context ClassLoader- Parameters:
paramCl
-
-