java.lang.Object
com.nimbusds.openid.connect.sdk.federation.trust.marks.TrustMarkEntry
All Implemented Interfaces:
Map.Entry<Identifier,com.nimbusds.jwt.SignedJWT>

@Immutable public final class TrustMarkEntry extends Object implements Map.Entry<Identifier,com.nimbusds.jwt.SignedJWT>
Trust mark entry.

Related specifications:

  • OpenID Connect Federation 1.0, sections 3.1 and 5.3.
  • Constructor Details

    • TrustMarkEntry

      public TrustMarkEntry(Identifier id, com.nimbusds.jwt.SignedJWT trustMark)
      Creates a new trust mark entry.
      Parameters:
      id - The identifier. Must not be null.
      trustMark - The trust mark. Must not be null.
  • Method Details

    • getID

      public Identifier getID()
      Returns the identifier.
      Returns:
      The identifier.
    • getTrustMark

      public com.nimbusds.jwt.SignedJWT getTrustMark()
      Returns the trust mark.
      Returns:
      The trust mark.
    • getKey

      public Identifier getKey()
      Specified by:
      getKey in interface Map.Entry<Identifier,com.nimbusds.jwt.SignedJWT>
    • getValue

      public com.nimbusds.jwt.SignedJWT getValue()
      Specified by:
      getValue in interface Map.Entry<Identifier,com.nimbusds.jwt.SignedJWT>
    • setValue

      public com.nimbusds.jwt.SignedJWT setValue(com.nimbusds.jwt.SignedJWT signedJWT)
      Specified by:
      setValue in interface Map.Entry<Identifier,com.nimbusds.jwt.SignedJWT>
    • toJSONObject

      public net.minidev.json.JSONObject toJSONObject()
      Returns a JSON object representation of this entry.
      Returns:
      The JSON object.
    • parse

      public static TrustMarkEntry parse(net.minidev.json.JSONObject jsonObject) throws ParseException
      Parses a trust mark entry from the specified JSON object.
      Parameters:
      jsonObject - The JSON object. Must not be null.
      Returns:
      The trust mark entry.
      Throws:
      ParseException - If parsing failed.