Package org.linphone.core
Interface AccountCreator
public interface AccountCreator
The object used to configure an account on a server via XML-RPC See: Override
account creator request
The object used to configure an account on a server via XML-RPC See: Override
account creator request
account creator request
The object used to configure an account on a server via XML-RPC See: Override
account creator request
-
Nested Class Summary
Nested ClassesModifier and TypeInterfaceDescriptionstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enumstatic enum -
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.voidaddListener(AccountCreatorListener listener) Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getEmail()Deprecated.getHa1()Deprecated.Deprecated.longGets the native pointer used by this class to make native method calls.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.getRoute()Get the route.booleanDeprecated.getToken()Deprecated.Deprecated.Gets the object stored in this object user's dataDeprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.Deprecated.voidremoveListener(AccountCreatorListener listener) Deprecated.Deprecated.Deprecated.voidreset()Deprecated.voidsetAccount(Account account) Deprecated.voidDeprecated.setActivationCode(String activationCode) Deprecated.setAlgorithm(String algorithm) Deprecated.setAsDefault(boolean setAsDefault) Deprecated.setDisplayName(String displayName) Deprecated.Deprecated.Deprecated.Deprecated.setLanguage(String lang) Deprecated.setPassword(String password) Deprecated.intsetPhoneNumber(String phoneNumber, String countryCode) Deprecated.voidsetPnParam(String pnParam) Deprecated.voidDeprecated.voidsetPnProvider(String pnProvider) Deprecated.voidDeprecated.Set the route.voidDeprecated.setTransport(TransportType transport) Deprecated.voidsetUserData(Object data) Sets the object to store in this object user's datasetUsername(String username) Deprecated.toString()Deprecated.voidDeprecated.
-
Method Details
-
setAccount
Deprecated.Assign a proxy config pointer to the LinphoneAccountCreator.
- Parameters:
account- The LinphoneAccount to associate with the
LinphoneAccountCreator.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getAccountCreationRequestToken
Deprecated.Get the account creation request token received to be used to check user
validation.
- Returns:
- The token set, if any
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setAccountCreationRequestToken
Deprecated.Set the account creation request token received to be used to check user
validation.
- Parameters:
token- The token to set
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getActivationCode
Deprecated.Get the activation code.
- Returns:
- The activation code of the
AccountCreator.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setActivationCode
Deprecated.Set the activation code.
- Parameters:
activationCode- The activation code to set- Returns:
AccountCreator.ActivationCodeStatus.Okif everything is OK, or a specific
error otherwise.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getAlgorithm
Deprecated.Get the algorithm configured in the account creator.
- Returns:
- The algorithm of the
AccountCreator.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setAlgorithm
Deprecated.Set the supported algorithm.
- Parameters:
algorithm- The algorithm to use- Returns:
- LinphoneAccountCreatorAlgoStatusOk if everything is OK, or a specific
error otherwise.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setAsDefault
Deprecated.Set 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.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getDisplayName
Deprecated.Get the display name.
- Returns:
- The display name of the
AccountCreator.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setDisplayName
Deprecated.Set the display name.
- Parameters:
displayName- The display name to set- Returns:
AccountCreator.UsernameStatus.Okif everything is OK, or a specific error
otherwise.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getDomain
Deprecated.Get the domain.
- Returns:
- The domain of the
AccountCreator.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setDomain
Deprecated.Set the domain.
- Parameters:
domain- The domain to set- Returns:
AccountCreator.DomainStatus.Okif everything is OK, or a specific error
otherwise.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getEmail
Deprecated.Get the email.
- Returns:
- The email of the
AccountCreator.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setEmail
Deprecated.Set the email.
- Parameters:
email- The email to set- Returns:
AccountCreator.EmailStatus.Okif everything is OK, or a specific error
otherwise.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getHa1
Deprecated.Get the ha1.
- Returns:
- The ha1 of the
AccountCreator.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setHa1
Deprecated.Set the ha1.
- Parameters:
ha1- The ha1 to set- Returns:
AccountCreator.PasswordStatus.Okif everything is OK, or a specific error
otherwise.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getLanguage
Deprecated.Get the language use in email of SMS.
- Returns:
- The language of the
AccountCreator.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setLanguage
Deprecated.Set 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.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getPassword
Deprecated.Get the password.
- Returns:
- The password of the
AccountCreator.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setPassword
Deprecated.Set the password.
- Parameters:
password- The password to set- Returns:
AccountCreator.PasswordStatus.Okif everything is OK, or specific(s) error(s)
otherwise.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getPhoneCountryCode
Deprecated.Get the international prefix.
- Returns:
- The international prefix (or phone country code) of the
AccountCreator
.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getPhoneNumber
Deprecated.Get the RFC 3966 normalized phone number.
- Returns:
- The phone number of the
AccountCreator.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getPnParam
Deprecated.Get 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
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setPnParam
Deprecated.Set 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
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getPnPrid
Deprecated.Get 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
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setPnPrid
Deprecated.Set 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
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getPnProvider
Deprecated.Get 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
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setPnProvider
Deprecated.Set 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
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setProxyConfig
Deprecated.Assign a proxy config pointer to the LinphoneAccountCreator.
- Parameters:
cfg- The LinphoneProxyConfig to associate with the
LinphoneAccountCreator.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
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.Get the set_as_default property.
- Returns:
- true if account will be set as default, false otherwise.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getToken
Deprecated.Get the authentication token set (if any) to be used to authenticate next
queries, if required.
- Returns:
- The token set, if any
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setToken
Deprecated.Set the authentication token received by push notification to be used to
authenticate next queries, if required.
- Parameters:
token- The token to set
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getTransport
Deprecated.Get Transport.
- Returns:
- The
TransportTypeof the creator.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setTransport
Deprecated.Set Transport.
- Parameters:
transport- TheTransportTypeto set- Returns:
AccountCreator.TransportStatus.Okif everything is OK, or a specific error
otherwise.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
getUsername
Deprecated.Get the username.
- Returns:
- The username of the
AccountCreator.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
setUsername
Deprecated.Set the username.
- Parameters:
username- The username to set- Returns:
AccountCreator.UsernameStatus.Okif everything is OK, or a specific error
otherwise.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
activateAccount
Deprecated.Send a request to activate an account on server.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
activateAlias
Deprecated.Send a request to activate an alias.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
createAccount
Deprecated.Send a request to create an account on server.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
createAccountInCore
Deprecated.- Returns:
- A
Accountobject if successful, null otherwise.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
createProxyConfig
Deprecated.Create and configure a proxy config and a authentication info for an account
creator.
- Returns:
- A
ProxyConfigobject if successful, null otherwise.
deprecated: 05/05/2023 UsecreateAccountInCore()instead.
-
createPushAccount
Deprecated.Send 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
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
isAccountActivated
Deprecated.Send a request to know if an account is activated on server.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
isAccountExist
Deprecated.Send a request to know the existence of account on server.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
isAccountLinked
Deprecated.Send a request to know if an account is linked.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
isAliasUsed
Deprecated.Send a request to know if an alias is used.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
linkAccount
Deprecated.Send a request to link an account to an alias.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
loginLinphoneAccount
Deprecated.Send 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.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
recoverAccount
Deprecated.Send a request to recover an account.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
requestAccountCreationRequestToken
Deprecated.Request 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.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
requestAccountCreationTokenUsingRequestToken
Deprecated.Send 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
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
requestAuthToken
Deprecated.Request an auth token to be send by the backend by push notification.
- Returns:
AccountCreator.Status.RequestOkif everything is OK, or a specific error
otherwise.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
reset
Deprecated.Reset the account creator entries like username, password, phone number...
deprecated: 11/06/2024 useAccountManagerServicesinstead -
setPhoneNumber
Deprecated.Set 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.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
updateAccount
Deprecated.Send a request to update an account.
- Returns:
AccountCreator.Status.RequestOkif the request has been sent,AccountCreator.Status.RequestFailed
otherwise
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
useTestAdminAccount
Deprecated.Require 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.
deprecated: 11/06/2024 useAccountManagerServicesinstead -
create
Deprecated.- Parameters:
core- TheCoreused for the XML-RPC communication- Returns:
- The new
AccountCreatorobject.
deprecated: 11/06/2024 useAccountManagerServicesinstead
-
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()
-