Class EmbeddedAttachment
- java.lang.Object
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.attachment.Attachment
-
- com.nimbusds.openid.connect.sdk.assurance.evidences.attachment.EmbeddedAttachment
-
@Immutable public class EmbeddedAttachment extends Attachment
Embedded attachment.Related specifications:
- OpenID Connect for Identity Assurance 1.0, section 5.1.2.1.
-
-
Constructor Summary
Constructors Constructor Description EmbeddedAttachment(Content content)Creates a new embedded attachment.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleanequals(Object o)ContentgetContent()Returns the content.inthashCode()static EmbeddedAttachmentparse(net.minidev.json.JSONObject jsonObject)Parses an embedded attachment from the specified JSON object.net.minidev.json.JSONObjecttoJSONObject()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 Detail
-
EmbeddedAttachment
public EmbeddedAttachment(Content content)
Creates a new embedded attachment.- Parameters:
content- The content. Must not benull.
-
-
Method Detail
-
getContent
public Content getContent()
Returns the content.- Returns:
- The content.
-
toJSONObject
public net.minidev.json.JSONObject toJSONObject()
Description copied from class:AttachmentReturns a JSON object representation of this attachment.- Overrides:
toJSONObjectin classAttachment- Returns:
- The JSON object.
-
equals
public boolean equals(Object o)
- Overrides:
equalsin classAttachment
-
hashCode
public int 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.
-
-