AuthorizationManagement Class Reference
| Inherits from | DefaultConfiguration : NSObject |
|---|---|
| Declared in | AuthorizationManagement.h |
– getNewAuthorizationTokenWithUsername:andPassword:
Get the JWT token for the user.
- (CloudResponse *)getNewAuthorizationTokenWithUsername:(NSString *)username andPassword:(NSString *)passwordParameters
username |
the user name that identifies the user. This is usually an email address. |
|---|---|
password |
the password for the user. |
Return Value
For async model, return CloudResponse which wraps true if the request of REST call is valid; otherwise false. The actual result from the REST call is return asynchronously as part HttpResponseDelegatee of DefaultConfiguration. For synch model, return CloudResponse which wraps HTTP return code and response.
Declared In
AuthorizationManagement.h
– getAuthorizationTokenInfo
Get user JWT token information.
- (CloudResponse *)getAuthorizationTokenInfoReturn Value
For async model, return CloudResponse which wraps true if the request of REST call is valid; otherwise false. The actual result from the REST call is return asynchronously as part HttpResponseDelegatee of DefaultConfiguration. For synch model, return CloudResponse which wraps HTTP return code and response.
Declared In
AuthorizationManagement.h
– validateAuthorizationToken
Validate the token. This is basically the same call as getAuthorizationTokenInfo() to verify that JWT token info can be retrieved.
- (CloudResponse *)validateAuthorizationTokenReturn Value
For async model, return CloudResponse which wraps true if the request of REST call is valid; otherwise false. The actual result from the REST call is return asynchronously as part HttpResponseDelegatee of DefaultConfiguration. For synch model, return CloudResponse which wraps HTTP return code and response.
Declared In
AuthorizationManagement.h