Class RegistrationManager


  • public final class RegistrationManager
    extends Manager
    This manager allows to register, cancel an existing registration (i.e. remove an account) or change the password with a host.
    • Method Detail

      • isRegistrationSupported

        public final AsyncResult<Boolean> isRegistrationSupported()
        Determines, if in-band registration is supported by the server.
        Returns:
        The async result with true, if registration is supported by the server; otherwise false.
      • getRegistration

        public final AsyncResult<Registration> getRegistration()
        Gets the registration data (instructions, fields and form) from the server.

        In order to check if a field is required, you should check if a field is not null.

        If you are already registered to the server, this method returns your registration data and Registration.isRegistered() returns true.

        Returns:
        The async result with the registration data.
        See Also:
        3.1 Entity Registers with a Host, Registration
      • changePassword

        public final AsyncResult<Void> changePassword​(String username,
                                                      String password)
        Changes the password for the current user. This method must be called after having authenticated to the server.
        Parameters:
        username - The user name.
        password - The password.
        Returns:
        The async result.
        See Also:
        3.3 User Changes Password