• BlackBerry Dynamics
  • Runtime library for iOS applications
  • 12.0.1.79
BlackBerry Enterprise Identity JWT request callback

Typedefs

typedef void(^ BBDJWTCompletion) (NSString *JWT, BBDJWTStatusCode status, int error)
 Completion Block definition for JWT retrieval. More...
 

Enumerations

enum  BBDJWTStatusCode {
  BBDJWTStatusOK = 0,
  BBDJWTStatusUnknownError,
  BBDJWTMTDNotEnabled,
  BBDJWTServerError,
  BBDJWTServerUnreachable,
  BBDJWTAuthFailure,
  BBDJWTPendingActivation
}
 Status codes from BlackBerry Enterprise Identity JWT request. More...
 

Detailed Description

Typedef Documentation

◆ BBDJWTCompletion

typedef void(^ BBDJWTCompletion) (NSString *JWT, BBDJWTStatusCode status, int error)
Parameters
JWTIf successful an NSString object pointer containing the JWT. Empty otherwise.
statusA BBDJWTStatusCode value indicating the status of the request.
See also
BBDJWTStatusCode
Parameters
errorAn additional error parameter which may contain the HTTP status code of a server related failure, 0 on success.

Enumeration Type Documentation

◆ BBDJWTStatusCode

These constants can be used for handling errors returned from JWT retrieval

See also
GDUtility class reference.
Enumerator
BBDJWTStatusOK 

Request successful.

BBDJWTStatusUnknownError 

A general error occurred not covered by other status codes.

BBDJWTMTDNotEnabled 

MTD is not enabled (only for MTD related requests)

BBDJWTServerError 

Server responded with an error.

BBDJWTServerUnreachable 

Server not reachable or cannot establish a connection.

BBDJWTAuthFailure 

Client is not authorised to make this request.

For Zero Sign On (ZSO), a valid certificate is not enrolled.

BBDJWTPendingActivation 

Server has not yet updated to accept a recently enrolled authorisation.

Eg a ZSO is enrolled but not yet activated on the server. This is temporary and can be retried.