Initializes a new instance of the ArcGisPortalSecurityContext class.
The base URL of the ArcGIS Portal instance represented by this instance of the ArcGisPortalSecurityContext.
The collection of domains that the token result should be applied to.
The ID of the client application.
The base URL of the ArcGIS Portal instance (eg. "http://www.arcgis.com/sharing/")
The client ID (or application ID) of the application that we're accessing resources on behalf of.
A collection of domains that the token should be applied to. In other words, the ArcGIS Online token will be applied to any of the domains that match this collection.
An error if there is one. For example, if the user cancelled the log on process.
The stored token result.
Determines if the portal security represented by this instance should be applied to a particular service, located at the specified URI.
Gets the URL of the OAuth2 login page (base url + oauth2/authorize).
Gets an ArcGIS Portal token for the service located at the specified URI, or null if a Portal token is not assigned to this service.
The portal service URI.
Ensures that we have a token available from an OAuth2 log on. Will redirect to the login page if a token has not yet been supplied in the URL.
The ArcGisPortalSecurityContext contains the necessary information to be able to authenticate with ArcGIS Online, to initiate the authentication (perform a redirect to their OAuth login page), and to register a token with the {@link esri.IdentityManager} so that map service requests will use the supplied token from ArcGIS Online. All of these actions are performed through the initiate method.