Package org.linphone.core
Interface AccountCreator
public interface AccountCreator
The object used to configure an account on a server via XML-RPC, see
https://wiki.linphone.org/xwiki/wiki/public/view/Lib/Features/Override%20account%20creator%20request/.
https://wiki.linphone.org/xwiki/wiki/public/view/Lib/Features/Override%20account%20creator%20request/.
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.11/06/2024 useAccountManagerServicesinsteadvoidaddListener(AccountCreatorListener listener) Deprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.05/05/2023 UsecreateAccountInCore()instead.Deprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadgetEmail()Deprecated.11/06/2024 useAccountManagerServicesinsteadgetHa1()Deprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadlongGets the native pointer used by this class to make native method calls.Deprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadgetRoute()Get the route.booleanDeprecated.11/06/2024 useAccountManagerServicesinsteadgetToken()Deprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadGets the object stored in this object user's dataDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadvoidremoveListener(AccountCreatorListener listener) Deprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadvoidreset()Deprecated.11/06/2024 useAccountManagerServicesinsteadvoidsetAccount(Account account) Deprecated.11/06/2024 useAccountManagerServicesinsteadvoidDeprecated.11/06/2024 useAccountManagerServicesinsteadsetActivationCode(String activationCode) Deprecated.11/06/2024 useAccountManagerServicesinsteadsetAlgorithm(String algorithm) Deprecated.11/06/2024 useAccountManagerServicesinsteadsetAsDefault(boolean setAsDefault) Deprecated.11/06/2024 useAccountManagerServicesinsteadsetDisplayName(String displayName) Deprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadDeprecated.11/06/2024 useAccountManagerServicesinsteadsetLanguage(String lang) Deprecated.11/06/2024 useAccountManagerServicesinsteadsetPassword(String password) Deprecated.11/06/2024 useAccountManagerServicesinsteadintsetPhoneNumber(String phoneNumber, String countryCode) Deprecated.11/06/2024 useAccountManagerServicesinsteadvoidsetPnParam(String pnParam) Deprecated.11/06/2024 useAccountManagerServicesinsteadvoidDeprecated.11/06/2024 useAccountManagerServicesinsteadvoidsetPnProvider(String pnProvider) Deprecated.11/06/2024 useAccountManagerServicesinsteadvoidDeprecated.11/06/2024 useAccountManagerServicesinsteadSet the route.voidDeprecated.11/06/2024 useAccountManagerServicesinsteadsetTransport(TransportType transport) Deprecated.11/06/2024 useAccountManagerServicesinsteadvoidsetUserData(Object data) Sets the object to store in this object user's datasetUsername(String username) Deprecated.11/06/2024 useAccountManagerServicesinsteadtoString()Deprecated.11/06/2024 useAccountManagerServicesinsteadvoidDeprecated.11/06/2024 useAccountManagerServicesinstead
-
Method Details
-
setAccount
Deprecated.11/06/2024 useAccountManagerServicesinsteadAssign a proxy config pointer to the LinphoneAccountCreator.
- Parameters:
account- The LinphoneAccount to associate with the
LinphoneAccountCreator.
-
getAccountCreationRequestToken
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the account creation request token received to be used to check user
validation.
- Returns:
- The token set, if any
-
setAccountCreationRequestToken
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the account creation request token received to be used to check user
validation.
- Parameters:
token- The token to set
-
getActivationCode
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the activation code.
- Returns:
- The activation code of the
AccountCreator.
-
setActivationCode
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the activation code.
- Parameters:
activationCode- The activation code to set- Returns:
AccountCreator.ActivationCodeStatus.Okif everything is OK, or a specific
error otherwise.
-
getAlgorithm
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the algorithm configured in the account creator.
- Returns:
- The algorithm of the
AccountCreator.
-
setAlgorithm
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the supported algorithm.
- Parameters:
algorithm- The algorithm to use- Returns:
- LinphoneAccountCreatorAlgoStatusOk if everything is OK, or a specific
error otherwise.
-
setAsDefault
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the set_as_default property.
- Parameters:
setAsDefault- true for the created proxy config to be set as default in
Core, false otherwise- Returns:
AccountCreator.Status.RequestOkif everything is OK, or a specific error
otherwise.
-
getDisplayName
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the display name.
- Returns:
- The display name of the
AccountCreator.
-
setDisplayName
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the display name.
- Parameters:
displayName- The display name to set- Returns:
AccountCreator.UsernameStatus.Okif everything is OK, or a specific error
otherwise.
-
getDomain
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the domain.
- Returns:
- The domain of the
AccountCreator.
-
setDomain
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the domain.
- Parameters:
domain- The domain to set- Returns:
AccountCreator.DomainStatus.Okif everything is OK, or a specific error
otherwise.
-
getEmail
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the email.
- Returns:
- The email of the
AccountCreator.
-
setEmail
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the email.
- Parameters:
email- The email to set- Returns:
AccountCreator.EmailStatus.Okif everything is OK, or a specific error
otherwise.
-
getHa1
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the ha1.
- Returns:
- The ha1 of the
AccountCreator.
-
setHa1
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the ha1.
- Parameters:
ha1- The ha1 to set- Returns:
AccountCreator.PasswordStatus.Okif everything is OK, or a specific error
otherwise.
-
getLanguage
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the language use in email of SMS.
- Returns:
- The language of the
AccountCreator.
-
setLanguage
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the language to use in email or SMS if supported.
- Parameters:
lang- The language to use- Returns:
AccountCreator.LanguageStatus.Okif everything is OK, or a specific error
otherwise.
-
getPassword
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the password.
- Returns:
- The password of the
AccountCreator.
-
setPassword
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the password.
- Parameters:
password- The password to set- Returns:
AccountCreator.PasswordStatus.Okif everything is OK, or specific(s) error(s)
otherwise.
-
getPhoneCountryCode
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the international prefix.
- Returns:
- The international prefix (or phone country code) of the
AccountCreator
.
-
getPhoneNumber
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the RFC 3966 normalized phone number.
- Returns:
- The phone number of the
AccountCreator.
-
getPnParam
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the param to be used by the backend to send the push notification to the
device asking for an auth token.
- Returns:
- The pn_param set, if any
-
setPnParam
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the param to be used by the backend to send the push notification to the
device asking for an auth token.
- Parameters:
pnParam- The pn_param to set
-
getPnPrid
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the prid to be used by the backend to send the push notification to the
device asking for an auth token.
- Returns:
- The pn_prid set, if any
-
setPnPrid
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the prid to be used by the backend to send the push notification to the
device asking for an auth token.
- Parameters:
pnPrid- The pn_prid to set
-
getPnProvider
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the provider to be used by the backend to send the push notification to the
device asking for an auth token.
- Returns:
- The pn_provider set, if any
-
setPnProvider
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the provider to be used by the backend to send the push notification to the
device asking for an auth token.
- Parameters:
pnProvider- The pn_provider to set
-
setProxyConfig
Deprecated.11/06/2024 useAccountManagerServicesinsteadAssign a proxy config pointer to the LinphoneAccountCreator.
- Parameters:
cfg- The LinphoneProxyConfig to associate with the
LinphoneAccountCreator.
-
getRoute
Get the route.
- Returns:
- The route of the
AccountCreator.
-
setRoute
Set the route.
- Parameters:
route- The route to set- Returns:
AccountCreator.Status.RequestOkif everything is OK, or a specific error
otherwise.
-
getSetAsDefault
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the set_as_default property.
- Returns:
- true if account will be set as default, false otherwise.
-
getToken
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the authentication token set (if any) to be used to authenticate next
queries, if required.
- Returns:
- The token set, if any
-
setToken
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the authentication token received by push notification to be used to
authenticate next queries, if required.
- Parameters:
token- The token to set
-
getTransport
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet Transport.
- Returns:
- The
TransportTypeof the creator.
-
setTransport
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet Transport.
- Parameters:
transport- TheTransportTypeto set- Returns:
AccountCreator.TransportStatus.Okif everything is OK, or a specific error
otherwise.
-
getUsername
Deprecated.11/06/2024 useAccountManagerServicesinsteadGet the username.
- Returns:
- The username of the
AccountCreator.
-
setUsername
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the username.
- Parameters:
username- The username to set- Returns:
AccountCreator.UsernameStatus.Okif everything is OK, or a specific error
otherwise.
-
activateAccount
Deprecated.11/06/2024 useAccountManagerServicesinsteadSend a request to activate an account on server.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
activateAlias
Deprecated.11/06/2024 useAccountManagerServicesinsteadSend a request to activate an alias.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
createAccount
Deprecated.11/06/2024 useAccountManagerServicesinsteadSend a request to create an account on server.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
createAccountInCore
Deprecated.11/06/2024 useAccountManagerServicesinstead- Returns:
- A
Accountobject if successful, null otherwise.
-
createProxyConfig
Deprecated.05/05/2023 UsecreateAccountInCore()instead.Create and configure a proxy config and a authentication info for an account
creator.
- Returns:
- A
ProxyConfigobject if successful, null otherwise.
-
createPushAccount
Deprecated.11/06/2024 useAccountManagerServicesinsteadSend a request to create a push account on server.
Push accounts are used in account dependent situation when account cannot send
push notifications. A username and password are automatically generated, an
account is automatically activated.- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
isAccountActivated
Deprecated.11/06/2024 useAccountManagerServicesinsteadSend a request to know if an account is activated on server.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
isAccountExist
Deprecated.11/06/2024 useAccountManagerServicesinsteadSend a request to know the existence of account on server.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
isAccountLinked
Deprecated.11/06/2024 useAccountManagerServicesinsteadSend a request to know if an account is linked.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
isAliasUsed
Deprecated.11/06/2024 useAccountManagerServicesinsteadSend a request to know if an alias is used.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
linkAccount
Deprecated.11/06/2024 useAccountManagerServicesinsteadSend a request to link an account to an alias.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
loginLinphoneAccount
Deprecated.11/06/2024 useAccountManagerServicesinsteadSend a request to get the password & algorithm of an account using the
confirmation key.
- Returns:
AccountCreator.Status.RequestOkif everything is OK, or a specific error
otherwise.
-
recoverAccount
Deprecated.11/06/2024 useAccountManagerServicesinsteadSend a request to recover an account.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
requestAccountCreationRequestToken
Deprecated.11/06/2024 useAccountManagerServicesinsteadRequest an account creation "request_token" to be used on account creations.
The request_token is retrieved from the callback
linphone_account_creator_cbs_get_account_creation_request_token- Returns:
AccountCreator.Status.RequestOkif everything is OK, or a specific error
otherwise.
-
requestAccountCreationTokenUsingRequestToken
Deprecated.11/06/2024 useAccountManagerServicesinsteadSend a request to get a token to be used for account creation from a
request_token.
The token is retrieved from the callback
linphone_account_creator_cbs_get_account_creation_token_using_request_token- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
requestAuthToken
Deprecated.11/06/2024 useAccountManagerServicesinsteadRequest an auth token to be send by the backend by push notification.
- Returns:
AccountCreator.Status.RequestOkif everything is OK, or a specific error
otherwise.
-
reset
Deprecated.11/06/2024 useAccountManagerServicesinsteadReset the account creator entries like username, password, phone number...
-
setPhoneNumber
Deprecated.11/06/2024 useAccountManagerServicesinsteadSet the phone number normalized.
- Parameters:
phoneNumber- The phone number to setcountryCode- Country code to associate phone number with- Returns:
AccountCreator.PhoneNumberStatus.Okif everything is OK, or specific(s)
error(s) otherwise.
-
updateAccount
Deprecated.11/06/2024 useAccountManagerServicesinsteadSend a request to update an account.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
useTestAdminAccount
Deprecated.11/06/2024 useAccountManagerServicesinsteadRequire the account creator to use special "test admin account".
warning: The "test admin account" is a special feature required for automated
test, and requires the APP_EVERYONE_IS_ADMIN property to be enabled on the
remote Flexisip Account Manager (FlexiAPI). This feature must never be turned
on for a production-stage app. -
create
Deprecated.11/06/2024 useAccountManagerServicesinstead- Parameters:
core- TheCoreused for the XML-RPC communication- Returns:
- The new
AccountCreatorobject.
-
addListener
-
removeListener
-
setUserData
Sets the object to store in this object user's data- Parameters:
data- the object to store
-
getUserData
Object getUserData()Gets the object stored in this object user's data- Returns:
- the object store if any, null otherwise
-
getNativePointer
long getNativePointer()Gets the native pointer used by this class to make native method calls.- Returns:
- the nativer pointer, as long
-
toString
String toString()
-
AccountManagerServicesinstead