SstJwtClaims
RFC 7519
Implements the JWT claims and their validation.
Class Methods
from:
  Answer a new instance of a JWT Claims Set derived from @anObject
     
     Known Implementors:
        <KeyedCollection> - with <String> key claim name , <String> value claim value
     
     Arguments:
        anObject - @see implementors of #asJwtClaimsSet
     Answers:
        <SstJwtClaimsSet>
     Raises:
        <SstJwkException> 
            Invalid argument
Instance Methods
audience
  Set the audience (aud) claim.
     @see RFC7519 (section 4.1.3) for more details
     
     Answers:
        <OrderedCollection> of <String>
audience:
  Set the audience (aud) claim.
     @see RFC7519 (section 4.1.3) for more details
     
     Arguments:
        aCollection - <SequenceableCollection> of <String> - or <String>
expiration
  Answers the expiration (exp) claim.
     
     Answers:
        <Integer>
expiration:
  Set the expiration (exp) claim.
          
     Arguments:
        anInteger - <Integer>
id
  Answers the JWT id (yti) claim.
          
     Answers:
        <String>
id:
  Set the JWT id (jti) claim.
          
     Arguments:
        aValue - <String>
issuedAt
  Answers the expiration (iss) claim.
          
     Answers:
        <Integer>
issuedAt:
  Set the issuedAt (iat) claim.
          
     Arguments:
        anInteger - <Integer>
issuer
  Answers the issuer (iss) claim.
     @see setter for more info
     
     Answers:
        <String>
issuer:
  Set the issuer (iss) claim.
     @see RFC7519 (section 4.1.1) for more details
     
     Arguments:
        aValue - <String>
notBefore
  Answers the not before (nbf) claim.
          
     Answers:
        <Integer>
notBefore:
  Set the not before (iat) claim.
          
     Arguments:
        anInteger - <Integer>
subject
  Answers the subject (sub) claim.
     @see setter for more info
     
     Answers:
        <String>
subject:
  Set the subject (sub) claim.
     @see RFC7519 (section 4.1.2) for more details
     
     Arguments:
        aValue - <String>
validateWithTolerance:issuer:audience:
  Validate the JWT claims. 
     Raises an exception when the validation fails, answers self otherwise.
     
     Arguments:
        clockLeewaySeconds - <Integer> allowed maximal deviation of the clock in seconds to validate the expiration time claim.
        expectedIssuer - <String> the expected value for the issuer (iss) claim. Requires byte equivalence.
        expectedAudience - <String> the expected value for the audience (aud) claim. Requires byte equivalence with at least one of the audience values.
    Raises:
        <SstJwtException>
Last modified date: 01/09/2026