WACloudAccessControlClient Class Reference
Inherits from | NSObject |
Declared in | WACloudAccessControlClient.h |
Overview
A class that represents a client used to authenticate against the Windows Azure Access Control Service (ACS).
Tasks
-
realm
The ACS realm for the client.
property -
serviceNamespace
The service namespace for the client.
property -
+ accessControlClientForNamespace:realm:
Create an access control client initialized with the given service namespace and realm.
-
– createViewControllerAllowsClose:withCompletionHandler:
Creates a new view controller that contains the authentication user interface.
-
– showInViewController:allowsClose:withCompletionHandler:
Present the authentication user interface in a given controler.
-
+ sharedToken
The security token that was set when the user authenticated through a call to requestAccessInViewController:withCompletionHandler:.
-
+ logOut
Instructs the client to release the shared token.
Properties
realm
The ACS realm for the client.
@property (readonly) NSString *realm
Declared In
WACloudAccessControlClient.h
Class Methods
accessControlClientForNamespace:realm:
Create an access control client initialized with the given service namespace and realm.
+ (WACloudAccessControlClient *)accessControlClientForNamespace:(NSString *)serviceNamespace realm:(NSString *)realm
Return Value
The newly initialized WACloudAccessControlClient object.
Declared In
WACloudAccessControlClient.h
Instance Methods
createViewControllerAllowsClose:withCompletionHandler:
Creates a new view controller that contains the authentication user interface.
- (UIViewController *)createViewControllerAllowsClose:(BOOL)allowsClose withCompletionHandler:(void ( ^ ) ( BOOL authenticated ))block
Parameters
- allowsClose
Determines if the user interface can be closed.
- block
The completion handler is called when the process is completed and contains if the user is authenticated or not.
Return Value
A UIViewController to display the authentication view.
Declared In
WACloudAccessControlClient.h
showInViewController:allowsClose:withCompletionHandler:
Present the authentication user interface in a given controler.
- (void)showInViewController:(UIViewController *)controller allowsClose:(BOOL)allowsClose withCompletionHandler:(void ( ^ ) ( BOOL authenticated ))block
Parameters
- controller
The controller to display the view.
- allowsClose
Determines if the user interface can be closed.
- block
The completion handler is called when the process is completed and contains if the user is authenticated or not.
Declared In
WACloudAccessControlClient.h