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
ConstructorsConstructorDescriptionTrustMarkEntry(Identifier id, com.nimbusds.jwt.SignedJWT trustMark) Creates a new trust mark entry. -
Method Summary
Modifier and TypeMethodDescriptiongetID()Returns the identifier.getKey()com.nimbusds.jwt.SignedJWTReturns 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.JSONObjectReturns a JSON object representation of this entry.
-
Constructor Details
-
TrustMarkEntry
Creates a new trust mark entry.- Parameters:
id- The identifier. Must not benull.trustMark- The trust mark. Must not benull.
-
-
Method Details
-
getID
Returns the identifier.- Returns:
- The identifier.
-
getTrustMark
Returns the trust mark.- Returns:
- The trust mark.
-
getKey
- Specified by:
getKeyin interfaceMap.Entry<Identifier,com.nimbusds.jwt.SignedJWT>
-
getValue
- Specified by:
getValuein interfaceMap.Entry<Identifier,com.nimbusds.jwt.SignedJWT>
-
setValue
- Specified by:
setValuein interfaceMap.Entry<Identifier,com.nimbusds.jwt.SignedJWT>
-
toJSONObject
Returns a JSON object representation of this entry.- Returns:
- The JSON object.
-
parse
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.
-