| GDUtilityGetGDAuthToken Method |
Call this method to request a new BlackBerry Dynamics Auth token. Pass the challenge string and server name as parameters.
Namespace:
GD
Assembly:
GD (in GD.dll) Version: 255.255.255.255
Syntax public void GetGDAuthToken(
string challenge,
string serverName
)
public:
virtual void GetGDAuthToken(
[InAttribute] String^ challenge,
[InAttribute] String^ serverName
) sealed
function GetGDAuthToken(challenge, serverName);
Parameters
- challenge
- Type: SystemString
String containing the challenge string for the token. The challenge string can be empty. - serverName
- Type: SystemString
String containing additional identification, by convention the fully qualified domain name of the application server for which a token is being requested. Whatever value is passed here will also be returned to the server as part of the token validation response.
Remarks The delegate property must be set before this method is called.
This method requests a BlackBerry Dynamics Auth token from the SDK. The SDK might connect to the BlackBerry Dynamics infrastructure installed at the enterprise in order to service the request.
The request is asynchronous. If the request succeeds, the BlackBerry Dynamics Auth token will be passed to the OnGDAuthTokenSuccess(String) callback in the delegate. If the attempt fails, an error will be passed to the OnGDAuthTokenFailure(GDAuthErrorCode, String) callback in the delegate instead.
See Also