ArcGIS Runtime SDK for iOS: AGSAuthenticationChallenge.h Source File
ArcGIS Runtime SDK for iOS  100.9
AGSAuthenticationChallenge.h
Go to the documentation of this file.
1 /*
2  COPYRIGHT 1995-2020 ESRI
3 
4  TRADE SECRETS: ESRI PROPRIETARY AND CONFIDENTIAL
5  Unpublished material - all rights reserved under the
6  Copyright Laws of the United States and applicable international
7  laws, treaties, and conventions.
8 
9  For additional information, contact:
10  Environmental Systems Research Institute, Inc.
11  Attn: Contracts and Legal Services Department
12  380 New York Street
13  Redlands, California, 92373
14  USA
15 
16  email: contracts@esri.com
17  */
18  //Required for Globals API doc
20 
21 #import <Foundation/Foundation.h>
22 
23 
24 
29 typedef NS_ENUM(NSInteger, AGSAuthenticationChallengeType) {
35 };
36 
37 @protocol AGSRemoteResource;
38 @class AGSCredential;
39 
53 @interface AGSAuthenticationChallenge : NSObject
54 
58 @property (nonatomic, assign, readonly) NSUInteger failureCount;
59 
63 @property (nullable, nonatomic, weak, readonly) id<AGSRemoteResource> remoteResource;
64 
69 @property (nullable, nonatomic, strong, readonly) AGSCredential *proposedCredential;
70 
74 @property (nullable, nonatomic, strong, readonly) NSURLProtectionSpace *protectionSpace;
75 
80 @property (nonatomic, strong, readonly) NSError *error;
81 
86 @property (nonatomic, copy, readonly) NSURLRequest *request;
87 
92 @property (nonatomic, copy, readonly) NSString *authenticatingHost;
93 
97 @property (nullable, nonatomic, strong, readonly) NSURL *portalURL;
98 
102 @property (nonatomic, assign, readonly) AGSAuthenticationChallengeType type;
103 
109 -(void)continueWithCredential:(nullable AGSCredential*)credential;
110 
115 -(void)trustHostAndContinue;
116 
120 -(void)cancel;
121 
131 
135 - (BOOL)isRemoteResourceFederatedWithPortalURL:(NSURL*)portalURL;
136 
137 @end
138 
139 
Definition: AGSAuthenticationChallenge.h:30
NSURLRequest * request
Definition: AGSAuthenticationChallenge.h:86
AGSAuthenticationChallengeType
Definition: AGSAuthenticationChallenge.h:29
Definition: AGSAuthenticationChallenge.h:31
AGSAuthenticationChallengeType type
Definition: AGSAuthenticationChallenge.h:102
NSURL * portalURL
Definition: AGSAuthenticationChallenge.h:97
Represents an authentication challenge when accessing secured resources.
Definition: AGSAuthenticationChallenge.h:53
Represents an credential to access a secured resource.
Definition: AGSCredential.h:46
Definition: AGSAuthenticationChallenge.h:32
Definition: AGSAuthenticationChallenge.h:34
NSString * authenticatingHost
Definition: AGSAuthenticationChallenge.h:92
AGSCredential * proposedCredential
Definition: AGSAuthenticationChallenge.h:69
NSUInteger failureCount
Definition: AGSAuthenticationChallenge.h:58
Definition: AGSAuthenticationChallenge.h:33
A protocol adopted by classes that access remote network resources that have the potential to be secu...
Definition: AGSRemoteResource.h:34
NSURLProtectionSpace * protectionSpace
Definition: AGSAuthenticationChallenge.h:74
id< AGSRemoteResource > remoteResource
Definition: AGSAuthenticationChallenge.h:63
NSError * error
Definition: AGSAuthenticationChallenge.h:80