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, section 5.1.2.1.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionboolean
Returns the content.int
hashCode()
static EmbeddedAttachment
parse
(net.minidev.json.JSONObject jsonObject) Parses an embedded attachment from the specified JSON object.net.minidev.json.JSONObject
Returns 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:Attachment
Returns a JSON object representation of this attachment.- Overrides:
toJSONObject
in classAttachment
- Returns:
- The JSON object.
-
equals
- Overrides:
equals
in classAttachment
-
hashCode
- Overrides:
hashCode
in 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.
-