MSALDeviceTokenResult
Objective-C
@interface MSALDeviceTokenResult : NSObject
/**
The access token returned with the device token result.
*/
@property (nonatomic, readonly, nonnull) NSString *accessToken;
/**
Additional device information returned with the device token result.
*/
@property (nonatomic, readonly, nullable) NSString *deviceInformation;
/**
The expiration date of the access token.
*/
@property (nonatomic, readonly, nullable) NSDate *expiresOn;
/**
The scopes returned with the device token result.
*/
@property (nonatomic, readonly, nonnull) NSArray<NSString *> *scopes;
/**
The authority associated with the device token result.
*/
@property (nonatomic, readonly, nullable) MSALAuthority *authority;
- (nonnull instancetype)initWithAccessToken:(nonnull NSString *)accessToken
deviceInformation:(nullable NSString *)deviceInformation
expiresOn:(nullable NSDate *)expiresOn
scopes:(nonnull NSArray<NSString *> *)scopes
authority:(nullable MSALAuthority *)authority NS_DESIGNATED_INITIALIZER;
- (instancetype)init NS_UNAVAILABLE;
+ (instancetype)new NS_UNAVAILABLE;
@end
Swift
class MSALDeviceTokenResult : NSObject
Undocumented
-
The access token returned with the device token result.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSString *accessToken;Swift
var accessToken: String { get } -
Additional device information returned with the device token result.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSString *deviceInformation;Swift
var deviceInformation: String? { get } -
The expiration date of the access token.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) NSDate *expiresOn;Swift
var expiresOn: Date? { get } -
The scopes returned with the device token result.
Declaration
Objective-C
@property (nonatomic, readonly, nonnull) NSArray<NSString *> *scopes;Swift
var scopes: [String] { get } -
The authority associated with the device token result.
Declaration
Objective-C
@property (nonatomic, readonly, nullable) MSALAuthority *authority;Swift
var authority: MSALAuthority? { get } -
Undocumented
Declaration
Objective-C
- (nonnull instancetype)initWithAccessToken:(nonnull NSString *)accessToken deviceInformation:(nullable NSString *)deviceInformation expiresOn:(nullable NSDate *)expiresOn scopes:(nonnull NSArray<NSString *> *)scopes authority:(nullable MSALAuthority *)authority NS_DESIGNATED_INITIALIZER;Swift
init(accessToken: String, deviceInformation: String?, expiresOn: Date?, scopes: [String], authority: MSALAuthority?) -
Unavailable
Undocumented
Declaration
Objective-C
- (instancetype)init NS_UNAVAILABLE; -
Unavailable
Undocumented
Declaration
Objective-C
+ (instancetype)new NS_UNAVAILABLE;
View on GitHub