java.lang.Object
com.nimbusds.openid.connect.sdk.assurance.evidences.attachment.Content

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

    Constructors
    Constructor
    Description
    Content(com.nimbusds.common.contenttype.ContentType type, com.nimbusds.jose.util.Base64 base64, String description)
    Creates a new content instance.
  • Method Summary

    Modifier and Type
    Method
    Description
    boolean
     
    com.nimbusds.jose.util.Base64
    Returns the BASE64-encoded content.
    Returns the optional description.
    com.nimbusds.common.contenttype.ContentType
    Returns the content type.
    int
     

    Methods inherited from class java.lang.Object

    clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • 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 Details

    • 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

      Returns the optional description.
      Returns:
      The optional description, null if not specified.
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object