Class TrustMarkClaimsSet

  • All Implemented Interfaces:
    net.minidev.json.JSONAware

    public class TrustMarkClaimsSet
    extends CommonClaimsSet
    Federation trust mark claims set, serialisable to a JSON object.

    Example claims set:

     {
       "iss" : "https://swamid.sunet.se",
       "sub" : "https://umu.se/op",
       "iat" : 1577833200,
       "exp" : 1609369200,
       "id"  : "https://refeds.org/wp-content/uploads/2016/01/Sirtfi-1.0.pdf"
     }
     

    Related specifications:

    • OpenID Connect Federation 1.0, section 4.3.
    • Constructor Detail

      • TrustMarkClaimsSet

        public TrustMarkClaimsSet​(Issuer iss,
                                  Subject sub,
                                  Identifier id,
                                  Date iat)
        Creates a new trust mark claims set with the minimum required claims.
        Parameters:
        iss - The issuer. Corresponds to the iss claim. Must not be null.
        sub - The subject. Corresponds to the sub claim. Must not be null.
        id - The identifier. Corresponds to the id claim. Must not be null.
        iat - The issue time. Corresponds to the iat claim. Must not be null.
      • TrustMarkClaimsSet

        public TrustMarkClaimsSet​(com.nimbusds.jwt.JWTClaimsSet jwtClaimsSet)
                           throws ParseException
        Creates a new trust mark claims set from the specified JWT claims set.
        Parameters:
        jwtClaimsSet - The JWT claims set. Must not be null.
        Throws:
        ParseException - If the JWT claims set doesn't represent a valid trust mark claims set.
    • Method Detail

      • getID

        public Identifier getID()
        Returns the identifier. Corresponds to the id claim.
        Returns:
        The identifier.
      • getMark

        public URI getMark()
        Gets the mark URI. Corresponds to the mark claim.
        Returns:
        The mark URI, null if not specified or parsing failed.
      • setMark

        public void setMark​(URI markURI)
        Sets the mark URI. Corresponds to the mark claim.
        Parameters:
        markURI - The mark URI, null if not specified.
      • getExpirationTime

        public Date getExpirationTime()
        Gets the expiration time. Corresponds to the exp claim.
        Returns:
        The expiration time, null if not specified or parsing failed.
      • setExpirationTime

        public void setExpirationTime​(Date exp)
        Sets the expiration time. Corresponds to the exp claim.
        Parameters:
        exp - The expiration time, null if not specified.
      • getReference

        public URI getReference()
        Gets the reference URI. Corresponds to the ref claim.
        Returns:
        The reference URI, null if not specified or parsing failed.
      • setReference

        public void setReference​(URI refURI)
        Sets the reference URI. Corresponds to the ref claim.
        Parameters:
        refURI - The reference URI, null if not specified.