Package io.smallrye.jwt.util
Class ResourceUtils
- java.lang.Object
-
- io.smallrye.jwt.util.ResourceUtils
-
public final class ResourceUtils extends Object
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classResourceUtils.UrlStreamResolver
-
Field Summary
Fields Modifier and Type Field Description static StringCLASSPATH_SCHEMEstatic StringFILE_SCHEMEstatic StringHTTP_BASED_SCHEME
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description static InputStreamgetAsClasspathResource(String location)static InputStreamgetAsFileSystemResource(String publicKeyLocation)static InputStreamgetResourceStream(String resourceLocation)static InputStreamgetResourceStream(String resourceLocation, ResourceUtils.UrlStreamResolver urlResolver)static ResourceUtils.UrlStreamResolvergetUrlResolver()static byte[]readBytes(InputStream is)static StringreadResource(String resourceLocation)static StringreadResource(String resourceLocation, ResourceUtils.UrlStreamResolver urlResolver)
-
-
-
Field Detail
-
HTTP_BASED_SCHEME
public static final String HTTP_BASED_SCHEME
- See Also:
- Constant Field Values
-
CLASSPATH_SCHEME
public static final String CLASSPATH_SCHEME
- See Also:
- Constant Field Values
-
FILE_SCHEME
public static final String FILE_SCHEME
- See Also:
- Constant Field Values
-
-
Method Detail
-
readResource
public static String readResource(String resourceLocation) throws IOException
- Throws:
IOException
-
readResource
public static String readResource(String resourceLocation, ResourceUtils.UrlStreamResolver urlResolver) throws IOException
- Throws:
IOException
-
getResourceStream
public static InputStream getResourceStream(String resourceLocation) throws IOException
- Throws:
IOException
-
getResourceStream
public static InputStream getResourceStream(String resourceLocation, ResourceUtils.UrlStreamResolver urlResolver) throws IOException
- Throws:
IOException
-
readBytes
public static byte[] readBytes(InputStream is) throws IOException
- Throws:
IOException
-
getUrlResolver
public static ResourceUtils.UrlStreamResolver getUrlResolver()
-
getAsFileSystemResource
public static InputStream getAsFileSystemResource(String publicKeyLocation) throws IOException
- Throws:
IOException
-
getAsClasspathResource
public static InputStream getAsClasspathResource(String location)
-
-