Package io.smallrye.jwt.util
Class ResourceUtils
java.lang.Object
io.smallrye.jwt.util.ResourceUtils
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic InputStreamgetAsClasspathResource(String location) static InputStreamgetAsFileSystemResource(String publicKeyLocation) static InputStreamgetResourceStream(String resourceLocation) static InputStreamgetResourceStream(String resourceLocation, ResourceUtils.UrlStreamResolver urlResolver) static byte[]readBytes(InputStream is) static StringreadResource(String resourceLocation) static StringreadResource(String resourceLocation, ResourceUtils.UrlStreamResolver urlResolver)
-
Field Details
-
HTTP_BASED_SCHEME
- See Also:
-
CLASSPATH_SCHEME
- See Also:
-
FILE_SCHEME
- See Also:
-
-
Method Details
-
readResource
- Throws:
IOException
-
readResource
public static String readResource(String resourceLocation, ResourceUtils.UrlStreamResolver urlResolver) throws IOException - Throws:
IOException
-
getResourceStream
- Throws:
IOException
-
getResourceStream
public static InputStream getResourceStream(String resourceLocation, ResourceUtils.UrlStreamResolver urlResolver) throws IOException - Throws:
IOException
-
readBytes
- Throws:
IOException
-
getUrlResolver
-
getAsFileSystemResource
- Throws:
IOException
-
getAsClasspathResource
-