public interface AccountCreator
Modifier and Type | Interface | Description |
---|---|---|
static class |
AccountCreator.ActivationCodeStatus |
|
static class |
AccountCreator.DomainStatus |
|
static class |
AccountCreator.EmailStatus |
|
static class |
AccountCreator.LanguageStatus |
|
static class |
AccountCreator.PasswordStatus |
|
static class |
AccountCreator.PhoneNumberStatus |
|
static class |
AccountCreator.Status |
|
static class |
AccountCreator.TransportStatus |
|
static class |
AccountCreator.UsernameStatus |
Modifier and Type | Method | Description |
---|---|---|
AccountCreator.Status |
activateAccount() |
Send a request to activate an account on server.
|
AccountCreator.Status |
activateAlias() |
Send a request to activate an alias.
|
void |
addListener(AccountCreatorListener listener) |
|
AccountCreator |
create(Core core) |
Create a
AccountCreator and set Linphone Request callbacks. |
AccountCreator.Status |
createAccount() |
Send a request to create an account on server.
|
Account |
createAccountInCore() |
|
ProxyConfig |
createProxyConfig() |
Deprecated.
05/05/2023 Use
createAccountInCore() instead. |
java.lang.String |
getAccountCreationRequestToken() |
Get the account creation request token received to be used to check user
validation. |
java.lang.String |
getActivationCode() |
Get the activation code.
|
java.lang.String |
getAlgorithm() |
Get the algorithm configured in the account creator.
|
java.lang.String |
getDisplayName() |
Get the display name.
|
java.lang.String |
getDomain() |
Get the domain.
|
java.lang.String |
getEmail() |
Get the email.
|
java.lang.String |
getHa1() |
Get the ha1.
|
java.lang.String |
getLanguage() |
Get the language use in email of SMS.
|
long |
getNativePointer() |
Gets the native pointer used by this class to make native method calls.
|
java.lang.String |
getPassword() |
Get the password.
|
java.lang.String |
getPhoneCountryCode() |
Get the international prefix.
|
java.lang.String |
getPhoneNumber() |
Get the RFC 3966 normalized phone number.
|
java.lang.String |
getPnParam() |
Get the param to be used by the backend to send the push notification to the
device asking for an auth token. |
java.lang.String |
getPnPrid() |
Get the prid to be used by the backend to send the push notification to the
device asking for an auth token. |
java.lang.String |
getPnProvider() |
Get the provider to be used by the backend to send the push notification to the
device asking for an auth token. |
java.lang.String |
getRoute() |
Get the route.
|
boolean |
getSetAsDefault() |
Get the set_as_default property.
|
java.lang.String |
getToken() |
Get the authentication token set (if any) to be used to authenticate next
queries, if required. |
TransportType |
getTransport() |
Get Transport.
|
java.lang.Object |
getUserData() |
Gets the object stored in this object user's data
|
java.lang.String |
getUsername() |
Get the username.
|
AccountCreator.Status |
isAccountActivated() |
Send a request to know if an account is activated on server.
|
AccountCreator.Status |
isAccountExist() |
Send a request to know the existence of account on server.
|
AccountCreator.Status |
isAccountLinked() |
Send a request to know if an account is linked.
|
AccountCreator.Status |
isAliasUsed() |
Send a request to know if an alias is used.
|
AccountCreator.Status |
linkAccount() |
Send a request to link an account to an alias.
|
AccountCreator.Status |
loginLinphoneAccount() |
Send a request to get the password & algorithm of an account using the
confirmation key. |
AccountCreator.Status |
recoverAccount() |
Send a request to recover an account.
|
void |
removeListener(AccountCreatorListener listener) |
|
AccountCreator.Status |
requestAccountCreationRequestToken() |
Request an account creation "request_token" to be used on account creations.
|
AccountCreator.Status |
requestAccountCreationTokenUsingRequestToken() |
Send a request to get a token to be used for account creation from a
request_token. |
AccountCreator.Status |
requestAuthToken() |
Request an auth token to be send by the backend by push notification.
|
void |
reset() |
Reset the account creator entries like username, password, phone number...
|
void |
setAccountCreationRequestToken(java.lang.String token) |
Set the account creation request token received to be used to check user
validation. |
AccountCreator.ActivationCodeStatus |
setActivationCode(java.lang.String activationCode) |
Set the activation code.
|
AccountCreatorAlgoStatus |
setAlgorithm(java.lang.String algorithm) |
Set the supported algorithm.
|
AccountCreator.Status |
setAsDefault(boolean setAsDefault) |
Set the set_as_default property.
|
AccountCreator.UsernameStatus |
setDisplayName(java.lang.String displayName) |
Set the display name.
|
AccountCreator.DomainStatus |
setDomain(java.lang.String domain) |
Set the domain.
|
AccountCreator.EmailStatus |
setEmail(java.lang.String email) |
Set the email.
|
AccountCreator.PasswordStatus |
setHa1(java.lang.String ha1) |
Set the ha1.
|
AccountCreator.LanguageStatus |
setLanguage(java.lang.String lang) |
Set the language to use in email or SMS if supported.
|
AccountCreator.PasswordStatus |
setPassword(java.lang.String password) |
Set the password.
|
int |
setPhoneNumber(java.lang.String phoneNumber,
java.lang.String countryCode) |
Set the phone number normalized.
|
void |
setPnParam(java.lang.String pnParam) |
Set the param to be used by the backend to send the push notification to the
device asking for an auth token. |
void |
setPnPrid(java.lang.String pnPrid) |
Set the prid to be used by the backend to send the push notification to the
device asking for an auth token. |
void |
setPnProvider(java.lang.String pnProvider) |
Set the provider to be used by the backend to send the push notification to the
device asking for an auth token. |
void |
setProxyConfig(ProxyConfig cfg) |
Assign a proxy config pointer to the LinphoneAccountCreator.
|
AccountCreator.Status |
setRoute(java.lang.String route) |
Set the route.
|
void |
setToken(java.lang.String token) |
Set the authentication token received by push notification to be used to
authenticate next queries, if required. |
AccountCreator.TransportStatus |
setTransport(TransportType transport) |
Set Transport.
|
void |
setUserData(java.lang.Object data) |
Sets the object to store in this object user's data
|
AccountCreator.UsernameStatus |
setUsername(java.lang.String username) |
Set the username.
|
java.lang.String |
toString() |
|
AccountCreator.Status |
updateAccount() |
Send a request to update an account.
|
void |
useTestAdminAccount() |
Require the account creator to use special "test admin account".
|
@Nullable java.lang.String getAccountCreationRequestToken()
void setAccountCreationRequestToken(@Nullable java.lang.String token)
token
- The token to set @Nullable java.lang.String getActivationCode()
AccountCreator
. AccountCreator.ActivationCodeStatus setActivationCode(@Nullable java.lang.String activationCode)
activationCode
- The activation code to set AccountCreator.ActivationCodeStatus.Ok
if everything is OK, or a specific@Nullable java.lang.String getAlgorithm()
AccountCreator
. AccountCreatorAlgoStatus setAlgorithm(@Nullable java.lang.String algorithm)
algorithm
- The algorithm to use AccountCreator.Status setAsDefault(boolean setAsDefault)
setAsDefault
- true for the created proxy config to be set as default inCore
, false otherwise AccountCreator.Status.RequestOk
if everything is OK, or a specific error@Nullable java.lang.String getDisplayName()
AccountCreator
. AccountCreator.UsernameStatus setDisplayName(@Nullable java.lang.String displayName)
displayName
- The display name to set AccountCreator.UsernameStatus.Ok
if everything is OK, or a specific error@Nullable java.lang.String getDomain()
AccountCreator
. AccountCreator.DomainStatus setDomain(@Nullable java.lang.String domain)
domain
- The domain to set AccountCreator.DomainStatus.Ok
if everything is OK, or a specific error@Nullable java.lang.String getEmail()
AccountCreator
. AccountCreator.EmailStatus setEmail(@Nullable java.lang.String email)
email
- The email to set AccountCreator.EmailStatus.Ok
if everything is OK, or a specific error@Nullable java.lang.String getHa1()
AccountCreator
. AccountCreator.PasswordStatus setHa1(@Nullable java.lang.String ha1)
ha1
- The ha1 to set AccountCreator.PasswordStatus.Ok
if everything is OK, or a specific error@Nullable java.lang.String getLanguage()
AccountCreator
. AccountCreator.LanguageStatus setLanguage(@Nullable java.lang.String lang)
lang
- The language to use AccountCreator.LanguageStatus.Ok
if everything is OK, or a specific error@Nullable java.lang.String getPassword()
AccountCreator
. AccountCreator.PasswordStatus setPassword(@Nullable java.lang.String password)
password
- The password to set AccountCreator.PasswordStatus.Ok
if everything is OK, or specific(s) error(s)@Nullable java.lang.String getPhoneCountryCode()
AccountCreator
@Nullable java.lang.String getPhoneNumber()
AccountCreator
. @Nullable java.lang.String getPnParam()
void setPnParam(@Nullable java.lang.String pnParam)
pnParam
- The pn_param to set @Nullable java.lang.String getPnPrid()
void setPnPrid(@Nullable java.lang.String pnPrid)
pnPrid
- The pn_prid to set @Nullable java.lang.String getPnProvider()
void setPnProvider(@Nullable java.lang.String pnProvider)
pnProvider
- The pn_provider to set void setProxyConfig(@Nullable ProxyConfig cfg)
cfg
- The LinphoneProxyConfig to associate with the@Nullable java.lang.String getRoute()
AccountCreator
. AccountCreator.Status setRoute(@Nullable java.lang.String route)
route
- The route to set AccountCreator.Status.RequestOk
if everything is OK, or a specific errorboolean getSetAsDefault()
@Nullable java.lang.String getToken()
void setToken(@Nullable java.lang.String token)
token
- The token to set TransportType getTransport()
TransportType
of the creator. AccountCreator.TransportStatus setTransport(TransportType transport)
transport
- The TransportType
to set AccountCreator.TransportStatus.Ok
if everything is OK, or a specific error@Nullable java.lang.String getUsername()
AccountCreator
. AccountCreator.UsernameStatus setUsername(@Nullable java.lang.String username)
username
- The username to set AccountCreator.UsernameStatus.Ok
if everything is OK, or a specific errorAccountCreator.Status activateAccount()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status activateAlias()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status createAccount()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
@Nullable Account createAccountInCore()
Account
object if successful, null otherwise. @Deprecated @Nullable ProxyConfig createProxyConfig()
createAccountInCore()
instead. ProxyConfig
object if successful, null otherwise. AccountCreator.Status isAccountActivated()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status isAccountExist()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status isAccountLinked()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status isAliasUsed()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status linkAccount()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status loginLinphoneAccount()
AccountCreator.Status.RequestOk
if everything is OK, or a specific errorAccountCreator.Status recoverAccount()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status requestAccountCreationRequestToken()
AccountCreator.Status.RequestOk
if everything is OK, or a specific errorAccountCreator.Status requestAccountCreationTokenUsingRequestToken()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
AccountCreator.Status requestAuthToken()
AccountCreator.Status.RequestOk
if everything is OK, or a specific errorvoid reset()
int setPhoneNumber(@Nullable java.lang.String phoneNumber, @Nullable java.lang.String countryCode)
phoneNumber
- The phone number to set countryCode
- Country code to associate phone number with AccountCreator.PhoneNumberStatus.Ok
if everything is OK, or specific(s)AccountCreator.Status updateAccount()
AccountCreator.Status.RequestOk
if the request has been sent, AccountCreator.Status.RequestFailed
void useTestAdminAccount()
@NonNull AccountCreator create(@NonNull Core core)
core
- The Core
used for the XML-RPC communication AccountCreator
object. void addListener(AccountCreatorListener listener)
void removeListener(AccountCreatorListener listener)
void setUserData(java.lang.Object data)
data
- the object to storejava.lang.Object getUserData()
long getNativePointer()
java.lang.String toString()
toString
in class java.lang.Object