Specifying authentication credentials
Your application can encode requests so that each request automatically adds authentication credentials to the SOAP header. To encode the authentication credentials, you can use the utilws web service to encode the authentication credentials automatically or you can specify the authentication credentials manually.
To encode a string using the utilws web service, use the encodeUsername() method. To encode the credentials manually, create a string that uses the following format:
<usernameLength>,<domainLength>,<authenticatorTypeLength>,<authenticatorIDLength>,<organizationIDLength>;<username><domain><authenticatorType><authenticatorID><organizationID>.After the string is encoded, you can use the encoded credentials and your password to access all protected web services.
For more information about encoding credentials, and for code samples, see the API reference for the BlackBerry® Administration API.
Parent topic: Sending requests