AppAuth
OIDIDToken.h
Go to the documentation of this file.
1 
18 #import <Foundation/Foundation.h>
19 
20 NS_ASSUME_NONNULL_BEGIN
21 
32 @interface OIDIDToken : NSObject
33 
37 - (instancetype)init NS_UNAVAILABLE;
38 
42 - (nullable instancetype)initWithIDTokenString:(NSString *)idToken;
43 
46 @property(nonatomic, readonly) NSDictionary *header;
47 
50 @property(nonatomic, readonly) NSDictionary *claims;
51 
56 @property(nonatomic, readonly) NSURL *issuer;
57 
62 @property(nonatomic, readonly) NSString *subject;
63 
68 @property(nonatomic, readonly) NSArray *audience;
69 
74 @property(nonatomic, readonly) NSDate *expiresAt;
75 
80 @property(nonatomic, readonly) NSDate *issuedAt;
81 
87 @property(nonatomic, readonly, nullable) NSString *nonce;
88 
89 @end
90 
91 NS_ASSUME_NONNULL_END
OIDIDToken::subject
NSString * subject
Subject Identifier.
Definition: OIDIDToken.h:62
OIDIDToken::audience
NSArray * audience
Audience(s) that this ID Token is intended for.
Definition: OIDIDToken.h:68
OIDIDToken
A convenience class that parses an ID Token and extracts the claims but does not verify its signature...
Definition: OIDIDToken.h:32
OIDIDToken::issuer
NSURL * issuer
Issuer Identifier for the Issuer of the response.
Definition: OIDIDToken.h:56
OIDIDToken::header
NSDictionary * header
The header JWT values.
Definition: OIDIDToken.h:46
OIDIDToken::expiresAt
NSDate * expiresAt
Expiration time on or after which the ID Token MUST NOT be accepted for processing.
Definition: OIDIDToken.h:74
OIDIDToken::claims
NSDictionary * claims
All ID Token claims.
Definition: OIDIDToken.h:50
OIDIDToken::issuedAt
NSDate * issuedAt
Time at which the JWT was issued.
Definition: OIDIDToken.h:80
OIDIDToken::nonce
NSString * nonce
String value used to associate a Client session with an ID Token, and to mitigate replay attacks.
Definition: OIDIDToken.h:87