Package com.nimbusds.jose.util
Class Resource
- java.lang.Object
-
- com.nimbusds.jose.util.Resource
-
@Immutable public class Resource extends java.lang.ObjectResource with optional associated content type.
-
-
Constructor Summary
Constructors Constructor Description Resource(java.lang.String content, java.lang.String contentType)Creates a new resource with optional associated content type.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.lang.StringgetContent()Gets the content of this resource.java.lang.StringgetContentType()Gets the content type of this resource.
-
-
-
Constructor Detail
-
Resource
public Resource(java.lang.String content, java.lang.String contentType)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,nullif not specified.
-
-