|
BlackBerry Administration API v5.0.3.29 |
||||||||
| PREV CLASS NEXT CLASS | utilws.BAAUtil NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||

public interface BAAUtil
Util web service that contains utility APIs for all platforms. The APIs in this class do not require users to be logged in.
| Method Summary | |
|---|---|
java.lang.String |
encodeUsername(java.lang.String username,
java.lang.String domain,
ExternalAuthenticatorTypesEnum type,
int identifier,
java.lang.String credentialType)
Encodes a username so that it contains extra authentication information to be used for http basic authentication. |
java.util.List<Authenticator> |
findAuthenticators(java.lang.String locale)
Returns a list of authenticators. |
java.util.List<java.lang.String> |
findLocales()
Returns a list of locales. |
MailPlatform |
getMailPlatform()
This method returns the server's mail platform |
| Method Detail |
|---|
java.util.List<Authenticator> findAuthenticators(java.lang.String locale)
locale - Return names of the authenticators in this locale
Java CXF
List<Authenticator> authenticators=utilWebService.findAuthenticators("en_US");
for (Authenticator itr:authenticators) {
System.out.println(itr.getName() + ", " + itr.getId() + ", " + itr.findAuthenticatorType().getEnum().value() );
}
java.lang.String encodeUsername(java.lang.String username,
java.lang.String domain,
ExternalAuthenticatorTypesEnum type,
int identifier,
java.lang.String credentialType)
username - user's login namedomain - the domain in which the user belongs totype - authentication typeidentifier - the id of the external authenticator if using external authentication.credentialType - the credential type
Java CXF
//using BlackBerry Administration Service as the authenticator
String encodedUsername=utilWebService.encodeUsername("admin",null,null,0,"0");
Java CXF
//using Active Directory as the authenticator
Authenticator activeDirectoryAuthenticator=null;
List<Authenticator> authenticators=utilWebService.findAuthenticators("en_US");
for (Authenticator itr:authenticators) {
if (itr.getName().equalsIgnoreCase("Active Directory")) {
activeDirectoryAuthenticator=itr;
}
}
String encodedUsername=utilWebService.encodeUsername("admin","test.rim.net",activeDirectoryAuthenticator.getAuthenticatorType(),activeDirectoryAuthenticator.getId(),"0");
java.util.List<java.lang.String> findLocales()
Java CXF
List<String> locales= utilWebService.findLocales();
for (String itr: locales) {
System.out.println(itr);
}
MailPlatform getMailPlatform()
Java CXF
MailPlatform platform= utilWebService.getMailPlatform();
System.out.println(platform.value());
C#
getMailPlatform request = new getMailPlatform();
getMailPlatformResponse response = utilWebService.getMailPlatform(request);
MailPlatform mailPlatform = response.returnValue;
System.Console.WriteLine("Mail platform is: " + mailPlatform.ToString());
|
BlackBerry Administration API v5.0.3.29 |
||||||||
| PREV CLASS NEXT CLASS | utilws.BAAUtil NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||