Package com.nimbusds.jose.util
Class Resource
java.lang.Object
com.nimbusds.jose.util.Resource
Resource with optional associated content type.
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionGets the content of this resource.Gets the content type of this resource.
-
Constructor Details
-
Resource
Creates a new resource with optional associated content type.- Parameters:
content
- The resource content, empty string if none. Must not benull
.contentType
- The resource content type,null
if not specified.
-
-
Method Details
-
getContent
Gets the content of this resource.- Returns:
- The content, empty string if none.
-
getContentType
Gets the content type of this resource.- Returns:
- The content type,
null
if not specified.
-