Class Content


  • public class Content
    extends Object
    Content with type and optional description.
    • Constructor Detail

      • Content

        public Content​(com.nimbusds.common.contenttype.ContentType type,
                       com.nimbusds.jose.util.Base64 base64,
                       String description)
        Creates a new content instance.
        Parameters:
        type - The content type. Must not be null.
        base64 - The BASE64-encoded content. Must not be null.
        description - The optional description, null if not specified.
    • Method Detail

      • getType

        public com.nimbusds.common.contenttype.ContentType getType()
        Returns the content type.
        Returns:
        The content type.
      • getBase64

        public com.nimbusds.jose.util.Base64 getBase64()
        Returns the BASE64-encoded content.
        Returns:
        The BASE64-encoded content.
      • getDescription

        public String getDescription()
        Returns the optional description.
        Returns:
        The optional description, null if not specified.