Class JoseUtils
java.lang.Object
org.apache.cxf.rs.security.jose.common.JoseUtils
-
Method Summary
Modifier and TypeMethodDescriptionstatic booleancheckBooleanProperty(JoseHeaders headers, Properties props, org.apache.cxf.message.Message m, String propertyName) static StringcheckContentType(String contentType, String defaultType) static AlgorithmParameterSpeccreatePSSParameterSpec(String size) static byte[]static StringdecodeToString(String encoded) static StringexpandContentType(String contentType) static URLgetClasspathResourceURL(String path, Class<?> callingClass, org.apache.cxf.Bus bus) static String[]getCompactParts(String compactContent) static <T> TgetResource(String path, Class<T> resourceClass, org.apache.cxf.Bus bus) static InputStreamgetResourceStream(String loc, org.apache.cxf.Bus bus) static URLgetResourceURL(String loc, org.apache.cxf.Bus bus) static PropertiesloadProperties(String propertiesLocation, org.apache.cxf.Bus bus) static voidsetJoseContextProperty(JoseHeaders headers) static voidsetJoseMessageContextProperty(JoseHeaders headers, String value) static voidsetMessageContextProperty(JoseHeaders headers) static voidtraceHeaders(JoseHeaders headers) static booleanvalidateCriticalHeaders(JoseHeaders headers) static void
-
Method Details
-
getCompactParts
-
setJoseContextProperty
-
setJoseMessageContextProperty
-
setMessageContextProperty
-
validateRequestContextProperty
-
checkContentType
-
expandContentType
-
decodeToString
-
decode
-
validateCriticalHeaders
-
traceHeaders
-
checkBooleanProperty
public static boolean checkBooleanProperty(JoseHeaders headers, Properties props, org.apache.cxf.message.Message m, String propertyName) -
getResourceStream
- Throws:
IOException
-
getResourceURL
- Throws:
IOException
-
getClasspathResourceURL
-
getResource
-
loadProperties
public static Properties loadProperties(String propertiesLocation, org.apache.cxf.Bus bus) throws IOException - Throws:
IOException
-
createPSSParameterSpec
-