public final class RegistrationManager extends Manager
| Modifier and Type | Method and Description |
|---|---|
AsyncResult<Void> |
cancelRegistration()
Cancels a registration.
|
AsyncResult<Void> |
changePassword(String username,
String password)
Changes the password for the current user.
|
AsyncResult<Registration> |
getRegistration()
Gets the registration data (instructions, fields and form) from the server.
|
AsyncResult<Boolean> |
isRegistrationSupported()
Determines, if in-band registration is supported by the server.
|
AsyncResult<Void> |
register(Registration registration)
Registers a new account.
|
isEnabled, setEnabledpublic final AsyncResult<Boolean> isRegistrationSupported()
public final AsyncResult<Registration> getRegistration()
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 andRegistration.isRegistered() returns true.Registrationpublic final AsyncResult<Void> register(Registration registration)
registration - The registration.public final AsyncResult<Void> cancelRegistration()
public final AsyncResult<Void> changePassword(String username, String password)
username - The user name.password - The password.Copyright © 2014–2017 XMPP.rocks. All rights reserved.