11"
22A set of specific claims
3+
4+ The registered claim names are: iss, sub, aud, exp, nbf, iat, jti
5+ None of the claims defined are intended to be mandatory to use or implement in all cases, but rather they provide a starting point for a set of useful, interoperable claims.
36"
47Class {
58 #name : ' JWTClaimsSet' ,
@@ -29,7 +32,7 @@ JWTClaimsSet >> at: aString [
2932
3033 ^ strict
3134 ifTrue: [ claims at: aString ]
32- ifFalse: [ claims at: aString ifAbsent: [ ] ]
35+ ifFalse: [ claims at: aString ifAbsent: nil ]
3336]
3437
3538{ #category : ' accessing - basic' }
@@ -191,11 +194,41 @@ JWTClaimsSet >> issuer: anObject [
191194 self iss: anObject
192195]
193196
197+ { #category : ' accessing' }
198+ JWTClaimsSet >> jti [
199+ ^ self at: ' jti'
200+ ]
201+
202+ { #category : ' accessing' }
203+ JWTClaimsSet >> jti: aString [
204+ self at: ' jti' put: aString
205+ ]
206+
207+ { #category : ' accessing' }
208+ JWTClaimsSet >> jwtId [
209+ ^ self jti
210+ ]
211+
212+ { #category : ' accessing' }
213+ JWTClaimsSet >> jwtId: aString [
214+ self jti: aString
215+ ]
216+
194217{ #category : ' accessing' }
195218JWTClaimsSet >> mimeType [
196219 ^ ' JWT'
197220]
198221
222+ { #category : ' accessing' }
223+ JWTClaimsSet >> nbf [
224+ ^ self at: ' nbf'
225+ ]
226+
227+ { #category : ' accessing' }
228+ JWTClaimsSet >> nbf: aString [
229+ self at: ' nbf' put: aString
230+ ]
231+
199232{ #category : ' accessing' }
200233JWTClaimsSet >> nonce [
201234 ^ self at: ' nonce'
@@ -206,6 +239,16 @@ JWTClaimsSet >> nonce: anObject [
206239 self at: ' nonce' put: anObject
207240]
208241
242+ { #category : ' accessing' }
243+ JWTClaimsSet >> notBefore [
244+ ^ self nbf
245+ ]
246+
247+ { #category : ' accessing' }
248+ JWTClaimsSet >> notBefore: aString [
249+ self nbf: aString
250+ ]
251+
209252{ #category : ' accessing' }
210253JWTClaimsSet >> setClaims: aCollection [
211254 claims := aCollection
0 commit comments