Class TrustMarkEntry
- 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 Summary
Constructors Constructor Description TrustMarkEntry(Identifier id, com.nimbusds.jwt.SignedJWT trustMark)Creates a new trust mark entry.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description IdentifiergetID()Returns the identifier.IdentifiergetKey()com.nimbusds.jwt.SignedJWTgetTrustMark()Returns the trust mark.com.nimbusds.jwt.SignedJWTgetValue()static TrustMarkEntryparse(net.minidev.json.JSONObject jsonObject)Parses a trust mark entry from the specified JSON object.com.nimbusds.jwt.SignedJWTsetValue(com.nimbusds.jwt.SignedJWT signedJWT)net.minidev.json.JSONObjecttoJSONObject()Returns a JSON object representation of this entry.
-
-
-
Constructor Detail
-
TrustMarkEntry
public TrustMarkEntry(Identifier id, com.nimbusds.jwt.SignedJWT trustMark)
Creates a new trust mark entry.- Parameters:
id- The identifier. Must not benull.trustMark- The trust mark. Must not benull.
-
-
Method Detail
-
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:
getKeyin interfaceMap.Entry<Identifier,com.nimbusds.jwt.SignedJWT>
-
getValue
public com.nimbusds.jwt.SignedJWT getValue()
- Specified by:
getValuein interfaceMap.Entry<Identifier,com.nimbusds.jwt.SignedJWT>
-
setValue
public com.nimbusds.jwt.SignedJWT setValue(com.nimbusds.jwt.SignedJWT signedJWT)
- Specified by:
setValuein interfaceMap.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 benull.- Returns:
- The trust mark entry.
- Throws:
ParseException- If parsing failed.
-
-