Class EmbeddedAttachment
java.lang.Object
com.nimbusds.openid.connect.sdk.assurance.evidences.attachment.Attachment
com.nimbusds.openid.connect.sdk.assurance.evidences.attachment.EmbeddedAttachment
Embedded attachment.
Related specifications:
- OpenID Connect for Identity Assurance 1.0
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbooleanReturns the content.inthashCode()static EmbeddedAttachmentparse(net.minidev.json.JSONObject jsonObject) Parses an embedded attachment from the specified JSON object.net.minidev.json.JSONObjectReturns a JSON object representation of this attachment.Methods inherited from class com.nimbusds.openid.connect.sdk.assurance.evidences.attachment.Attachment
getDescriptionString, getType, parseList, toEmbeddedAttachment, toExternalAttachment
-
Constructor Details
-
EmbeddedAttachment
Creates a new embedded attachment.- Parameters:
content- The content. Must not benull.
-
-
Method Details
-
getContent
Returns the content.- Returns:
- The content.
-
toJSONObject
Description copied from class:AttachmentReturns a JSON object representation of this attachment.- Overrides:
toJSONObjectin classAttachment- Returns:
- The JSON object.
-
equals
- Overrides:
equalsin classAttachment
-
hashCode
- Overrides:
hashCodein classAttachment
-
parse
public static EmbeddedAttachment parse(net.minidev.json.JSONObject jsonObject) throws ParseException Parses an embedded attachment from the specified JSON object.- Parameters:
jsonObject- The JSON object. Must not benull.- Returns:
- The embedded attachment.
- Throws:
ParseException- If parsing failed.
-