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 enum
static enum
static enum
static enum
static enum
static enum
static enum
static enum
static enum
static enum
static enum
-
Method Summary
Modifier and TypeMethodDescriptionDeprecated.Deprecated.11/06/2024 useAccountManagerServices
insteadvoid
addListener
(AccountCreatorListener listener) Deprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.05/05/2023 UsecreateAccountInCore()
instead.Deprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadgetEmail()
Deprecated.11/06/2024 useAccountManagerServices
insteadgetHa1()
Deprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadlong
Gets the native pointer used by this class to make native method calls.Deprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadgetRoute()
Get the route.boolean
Deprecated.11/06/2024 useAccountManagerServices
insteadgetToken()
Deprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadGets the object stored in this object user's dataDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadvoid
removeListener
(AccountCreatorListener listener) Deprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadvoid
reset()
Deprecated.11/06/2024 useAccountManagerServices
insteadvoid
setAccount
(Account account) Deprecated.11/06/2024 useAccountManagerServices
insteadvoid
Deprecated.11/06/2024 useAccountManagerServices
insteadsetActivationCode
(String activationCode) Deprecated.11/06/2024 useAccountManagerServices
insteadsetAlgorithm
(String algorithm) Deprecated.11/06/2024 useAccountManagerServices
insteadsetAsDefault
(boolean setAsDefault) Deprecated.11/06/2024 useAccountManagerServices
insteadsetDisplayName
(String displayName) Deprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadDeprecated.11/06/2024 useAccountManagerServices
insteadsetLanguage
(String lang) Deprecated.11/06/2024 useAccountManagerServices
insteadsetPassword
(String password) Deprecated.11/06/2024 useAccountManagerServices
insteadint
setPhoneNumber
(String phoneNumber, String countryCode) Deprecated.11/06/2024 useAccountManagerServices
insteadvoid
setPnParam
(String pnParam) Deprecated.11/06/2024 useAccountManagerServices
insteadvoid
Deprecated.11/06/2024 useAccountManagerServices
insteadvoid
setPnProvider
(String pnProvider) Deprecated.11/06/2024 useAccountManagerServices
insteadvoid
Deprecated.11/06/2024 useAccountManagerServices
insteadSet the route.void
Deprecated.11/06/2024 useAccountManagerServices
insteadsetTransport
(TransportType transport) Deprecated.11/06/2024 useAccountManagerServices
insteadvoid
setUserData
(Object data) Sets the object to store in this object user's datasetUsername
(String username) Deprecated.11/06/2024 useAccountManagerServices
insteadtoString()
Deprecated.11/06/2024 useAccountManagerServices
insteadvoid
Deprecated.11/06/2024 useAccountManagerServices
instead
-
Method Details
-
setAccount
Deprecated.11/06/2024 useAccountManagerServices
insteadAssign a proxy config pointer to the LinphoneAccountCreator.
- Parameters:
account
- The LinphoneAccount to associate with the
LinphoneAccountCreator.
-
getAccountCreationRequestToken
Deprecated.11/06/2024 useAccountManagerServices
insteadGet the account creation request token received to be used to check user
validation.
- Returns:
- The token set, if any
-
setAccountCreationRequestToken
Deprecated.11/06/2024 useAccountManagerServices
insteadSet the account creation request token received to be used to check user
validation.
- Parameters:
token
- The token to set
-
getActivationCode
Deprecated.11/06/2024 useAccountManagerServices
insteadGet the activation code.
- Returns:
- The activation code of the
AccountCreator
.
-
setActivationCode
Deprecated.11/06/2024 useAccountManagerServices
insteadSet the activation code.
- Parameters:
activationCode
- The activation code to set- Returns:
AccountCreator.ActivationCodeStatus.Ok
if everything is OK, or a specific
error otherwise.
-
getAlgorithm
Deprecated.11/06/2024 useAccountManagerServices
insteadGet the algorithm configured in the account creator.
- Returns:
- The algorithm of the
AccountCreator
.
-
setAlgorithm
Deprecated.11/06/2024 useAccountManagerServices
insteadSet 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 useAccountManagerServices
insteadSet 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.RequestOk
if everything is OK, or a specific error
otherwise.
-
getDisplayName
Deprecated.11/06/2024 useAccountManagerServices
insteadGet the display name.
- Returns:
- The display name of the
AccountCreator
.
-
setDisplayName
Deprecated.11/06/2024 useAccountManagerServices
insteadSet the display name.
- Parameters:
displayName
- The display name to set- Returns:
AccountCreator.UsernameStatus.Ok
if everything is OK, or a specific error
otherwise.
-
getDomain
Deprecated.11/06/2024 useAccountManagerServices
insteadGet the domain.
- Returns:
- The domain of the
AccountCreator
.
-
setDomain
Deprecated.11/06/2024 useAccountManagerServices
insteadSet the domain.
- Parameters:
domain
- The domain to set- Returns:
AccountCreator.DomainStatus.Ok
if everything is OK, or a specific error
otherwise.
-
getEmail
Deprecated.11/06/2024 useAccountManagerServices
insteadGet the email.
- Returns:
- The email of the
AccountCreator
.
-
setEmail
Deprecated.11/06/2024 useAccountManagerServices
insteadSet the email.
- Parameters:
email
- The email to set- Returns:
AccountCreator.EmailStatus.Ok
if everything is OK, or a specific error
otherwise.
-
getHa1
Deprecated.11/06/2024 useAccountManagerServices
insteadGet the ha1.
- Returns:
- The ha1 of the
AccountCreator
.
-
setHa1
Deprecated.11/06/2024 useAccountManagerServices
insteadSet the ha1.
- Parameters:
ha1
- The ha1 to set- Returns:
AccountCreator.PasswordStatus.Ok
if everything is OK, or a specific error
otherwise.
-
getLanguage
Deprecated.11/06/2024 useAccountManagerServices
insteadGet the language use in email of SMS.
- Returns:
- The language of the
AccountCreator
.
-
setLanguage
Deprecated.11/06/2024 useAccountManagerServices
insteadSet the language to use in email or SMS if supported.
- Parameters:
lang
- The language to use- Returns:
AccountCreator.LanguageStatus.Ok
if everything is OK, or a specific error
otherwise.
-
getPassword
Deprecated.11/06/2024 useAccountManagerServices
insteadGet the password.
- Returns:
- The password of the
AccountCreator
.
-
setPassword
Deprecated.11/06/2024 useAccountManagerServices
insteadSet the password.
- Parameters:
password
- The password to set- Returns:
AccountCreator.PasswordStatus.Ok
if everything is OK, or specific(s) error(s)
otherwise.
-
getPhoneCountryCode
Deprecated.11/06/2024 useAccountManagerServices
insteadGet the international prefix.
- Returns:
- The international prefix (or phone country code) of the
AccountCreator
.
-
getPhoneNumber
Deprecated.11/06/2024 useAccountManagerServices
insteadGet the RFC 3966 normalized phone number.
- Returns:
- The phone number of the
AccountCreator
.
-
getPnParam
Deprecated.11/06/2024 useAccountManagerServices
insteadGet 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 useAccountManagerServices
insteadSet 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 useAccountManagerServices
insteadGet 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 useAccountManagerServices
insteadSet 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 useAccountManagerServices
insteadGet 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 useAccountManagerServices
insteadSet 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 useAccountManagerServices
insteadAssign 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.RequestOk
if everything is OK, or a specific error
otherwise.
-
getSetAsDefault
Deprecated.11/06/2024 useAccountManagerServices
insteadGet the set_as_default property.
- Returns:
- true if account will be set as default, false otherwise.
-
getToken
Deprecated.11/06/2024 useAccountManagerServices
insteadGet 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 useAccountManagerServices
insteadSet 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 useAccountManagerServices
insteadGet Transport.
- Returns:
- The
TransportType
of the creator.
-
setTransport
Deprecated.11/06/2024 useAccountManagerServices
insteadSet Transport.
- Parameters:
transport
- TheTransportType
to set- Returns:
AccountCreator.TransportStatus.Ok
if everything is OK, or a specific error
otherwise.
-
getUsername
Deprecated.11/06/2024 useAccountManagerServices
insteadGet the username.
- Returns:
- The username of the
AccountCreator
.
-
setUsername
Deprecated.11/06/2024 useAccountManagerServices
insteadSet the username.
- Parameters:
username
- The username to set- Returns:
AccountCreator.UsernameStatus.Ok
if everything is OK, or a specific error
otherwise.
-
activateAccount
Deprecated.11/06/2024 useAccountManagerServices
insteadSend a request to activate an account on server.
- Returns:
AccountCreator.Status.RequestOk
if the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
activateAlias
Deprecated.11/06/2024 useAccountManagerServices
insteadSend a request to activate an alias.
- Returns:
AccountCreator.Status.RequestOk
if the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
createAccount
Deprecated.11/06/2024 useAccountManagerServices
insteadSend a request to create an account on server.
- Returns:
AccountCreator.Status.RequestOk
if the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
createAccountInCore
Deprecated.11/06/2024 useAccountManagerServices
instead- Returns:
- A
Account
object 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
ProxyConfig
object if successful, null otherwise.
-
createPushAccount
Deprecated.11/06/2024 useAccountManagerServices
insteadSend 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.RequestOk
if the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
isAccountActivated
Deprecated.11/06/2024 useAccountManagerServices
insteadSend a request to know if an account is activated on server.
- Returns:
AccountCreator.Status.RequestOk
if the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
isAccountExist
Deprecated.11/06/2024 useAccountManagerServices
insteadSend a request to know the existence of account on server.
- Returns:
AccountCreator.Status.RequestOk
if the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
isAccountLinked
Deprecated.11/06/2024 useAccountManagerServices
insteadSend a request to know if an account is linked.
- Returns:
AccountCreator.Status.RequestOk
if the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
isAliasUsed
Deprecated.11/06/2024 useAccountManagerServices
insteadSend a request to know if an alias is used.
- Returns:
AccountCreator.Status.RequestOk
if the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
linkAccount
Deprecated.11/06/2024 useAccountManagerServices
insteadSend a request to link an account to an alias.
- Returns:
AccountCreator.Status.RequestOk
if the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
loginLinphoneAccount
Deprecated.11/06/2024 useAccountManagerServices
insteadSend a request to get the password & algorithm of an account using the
confirmation key.
- Returns:
AccountCreator.Status.RequestOk
if everything is OK, or a specific error
otherwise.
-
recoverAccount
Deprecated.11/06/2024 useAccountManagerServices
insteadSend a request to recover an account.
- Returns:
AccountCreator.Status.RequestOk
if the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
requestAccountCreationRequestToken
Deprecated.11/06/2024 useAccountManagerServices
insteadRequest 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.RequestOk
if everything is OK, or a specific error
otherwise.
-
requestAccountCreationTokenUsingRequestToken
Deprecated.11/06/2024 useAccountManagerServices
insteadSend 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.RequestOk
if the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
requestAuthToken
Deprecated.11/06/2024 useAccountManagerServices
insteadRequest an auth token to be send by the backend by push notification.
- Returns:
AccountCreator.Status.RequestOk
if everything is OK, or a specific error
otherwise.
-
reset
Deprecated.11/06/2024 useAccountManagerServices
insteadReset the account creator entries like username, password, phone number...
-
setPhoneNumber
Deprecated.11/06/2024 useAccountManagerServices
insteadSet the phone number normalized.
- Parameters:
phoneNumber
- The phone number to setcountryCode
- Country code to associate phone number with- Returns:
AccountCreator.PhoneNumberStatus.Ok
if everything is OK, or specific(s)
error(s) otherwise.
-
updateAccount
Deprecated.11/06/2024 useAccountManagerServices
insteadSend a request to update an account.
- Returns:
AccountCreator.Status.RequestOk
if the request has been sent,AccountCreator.Status.RequestFailed
otherwise
-
useTestAdminAccount
Deprecated.11/06/2024 useAccountManagerServices
insteadRequire 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 useAccountManagerServices
instead- Parameters:
core
- TheCore
used for the XML-RPC communication- Returns:
- The new
AccountCreator
object.
-
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()
-
AccountManagerServices
instead