Class JoseUtils

java.lang.Object
org.apache.cxf.rs.security.jose.common.JoseUtils

public final class JoseUtils extends Object
  • Method Details

    • getCompactParts

      public static String[] getCompactParts(String compactContent)
    • setJoseContextProperty

      public static void setJoseContextProperty(JoseHeaders headers)
    • setJoseMessageContextProperty

      public static void setJoseMessageContextProperty(JoseHeaders headers, String value)
    • setMessageContextProperty

      public static void setMessageContextProperty(JoseHeaders headers)
    • validateRequestContextProperty

      public static void validateRequestContextProperty(JoseHeaders headers)
    • checkContentType

      public static String checkContentType(String contentType, String defaultType)
    • expandContentType

      public static String expandContentType(String contentType)
    • decodeToString

      public static String decodeToString(String encoded)
    • decode

      public static byte[] decode(String encoded)
    • validateCriticalHeaders

      public static boolean validateCriticalHeaders(JoseHeaders headers)
    • traceHeaders

      public static void traceHeaders(JoseHeaders headers)
    • checkBooleanProperty

      public static boolean checkBooleanProperty(JoseHeaders headers, Properties props, Message m, String propertyName)
    • getResourceStream

      public static InputStream getResourceStream(String loc, Bus bus) throws IOException
      Throws:
      IOException
    • getResourceURL

      public static URL getResourceURL(String loc, Bus bus) throws IOException
      Throws:
      IOException
    • getClasspathResourceURL

      public static URL getClasspathResourceURL(String path, Class<?> callingClass, Bus bus)
    • getResource

      public static <T> T getResource(String path, Class<T> resourceClass, Bus bus)
    • loadProperties

      public static Properties loadProperties(String propertiesLocation, Bus bus) throws IOException
      Throws:
      IOException