Package org.apache.cxf.rt.security.utils
Class SecurityUtils
- java.lang.Object
-
- org.apache.cxf.rt.security.utils.SecurityUtils
-
public final class SecurityUtils extends Object
Some common functionality
-
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static CallbackHandlergetCallbackHandler(Object o)static URLgetConfigFileURL(Message message, String configFileKey, String configFileDefault)static booleangetSecurityPropertyBoolean(String property, Message message, boolean defaultValue)Get the security property boolean for the given property.static ObjectgetSecurityPropertyValue(String property, Message message)Get the security property value for the given property.static PropertiesloadProperties(Object o)static PropertiesloadProperties(ResourceManager manager, Object o)static URLloadResource(Object o)static URLloadResource(Message message, Object o)static URLloadResource(ResourceManager manager, Object o)
-
-
-
Method Detail
-
getCallbackHandler
public static CallbackHandler getCallbackHandler(Object o) throws Exception
- Throws:
Exception
-
getConfigFileURL
public static URL getConfigFileURL(Message message, String configFileKey, String configFileDefault)
-
loadResource
public static URL loadResource(ResourceManager manager, Object o)
-
loadProperties
public static Properties loadProperties(Object o)
-
loadProperties
public static Properties loadProperties(ResourceManager manager, Object o)
-
getSecurityPropertyValue
public static Object getSecurityPropertyValue(String property, Message message)
Get the security property value for the given property. It also checks for the older "ws-"* property values.
-
getSecurityPropertyBoolean
public static boolean getSecurityPropertyBoolean(String property, Message message, boolean defaultValue)
Get the security property boolean for the given property. It also checks for the older "ws-"* property values. If none is configured, then the defaultValue parameter is returned.
-
-