Remote Java Interface description

Source: Internet
Author: User

Remote Java Interface descriptionset interface Access user name and passwordConfiguration location: System Management ==>> parameter settings ==>> general parameters

Examples such as:

To ensure the security of the system, each calling interface needs to provide the correct user name and password.

API Call Environment class

Class name: Turbomail.api.remote. Env;

Description: The ENV class provides communication and configuration management for the entire API and server;

Method: public static Env getEnv (string URL, string username, string password);

Description: A class instance can be obtained by this method;

Parameter description: Url:webmail server root URL, that is, webmail mailmain Servlet Access access path, such as: Http://localhost:8080/mailmain;

Username:api Access user name;

PASSWORD:API access Password

Return value: Env object: Success: Env object

Null: Failed

account Operation Class
        class Name: Turbomail.api.remote.user. R_useraccount;
    Description: The UserAccount class provides all user management related functions, including new, deleted, modified users, and access to user-related information;
          properties: Public useraccount m_useraccount M_useraccount provides user account details;
          method: public static int Createuseraccount (env env, R_useraccount UA);
          Description: Used to create a new user;
          parameter Description:
      1) Env:env Object
2) Ua:r_useraccount object, the R_useraccount object passes the user account details through the M_useraccount property. return value:

0: Success

-1: Out of allocated space

-2: User already exists

-3: Failure

-4: Number of allocated users exceeded

Example: public static int Createuseraccount (env env) for reference attachment, public static int Changeuserpassword (env env, R_useraccount UA);

Description: Used to change the user password.

Parameter description:

      Env:env Object
The Ua:r_useraccount object, R_useraccount object, passes the user account details through the M_useraccount property.

return value:

0: Success

-1: Failure

Example: public static int Changeuserpassword (env env) for reference attachment, public static int Deleteuseraccount (env env, R_useraccount UA);

Description: Used to delete a user.

Parameter description:

        Env:env Object
The Ua:r_useraccount object, R_useraccount object, passes the user account details through the M_useraccount property.

return value:

0: Success

-1: Failure

Example: public static int Deleteuseraccount (env env) for reference attachment: public static int auth (env env, String username,string domain,str ing password);

Description: Used to authenticate users

Parameter description:

        Domain: Domains
Password: password

 

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.