Package com.vk.api.sdk.queries.account
Class AccountChangePasswordQuery
- java.lang.Object
-
- com.vk.api.sdk.client.ApiRequest<R>
-
- com.vk.api.sdk.client.AbstractQueryBuilder<AccountChangePasswordQuery,ChangePasswordResponse>
-
- com.vk.api.sdk.queries.account.AccountChangePasswordQuery
-
public class AccountChangePasswordQuery extends AbstractQueryBuilder<AccountChangePasswordQuery,ChangePasswordResponse>
Query for Account.changePassword method
-
-
Constructor Summary
Constructors Constructor Description AccountChangePasswordQuery(VkApiClient client, UserActor actor, java.lang.String newPassword)Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AccountChangePasswordQuerychangePasswordHash(java.lang.String value)Hash received after a successful OAuth authorization with a code got by SMS.protected java.util.List<java.lang.String>essentialKeys()Get list of required parameter namesprotected AccountChangePasswordQuerygetThis()Get reference to this objectprotected AccountChangePasswordQuerynewPassword(java.lang.String value)New password that will be set as a currentAccountChangePasswordQueryoldPassword(java.lang.String value)Current user password.AccountChangePasswordQueryrestoreSid(java.lang.String value)Session id received after the [vk.com/dev/auth.restore|auth.restore] method is executed.-
Methods inherited from class com.vk.api.sdk.client.AbstractQueryBuilder
accessToken, build, captchaKey, captchaSid, clientSecret, confirm, getBody, getMethod, getParams, lang, toString, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, unsafeParam, version
-
Methods inherited from class com.vk.api.sdk.client.ApiRequest
execute, executeAsRaw, executeAsString, getClient, getGson, getHeaders, getResponseClass, getUrl, setHeaders
-
-
-
-
Constructor Detail
-
AccountChangePasswordQuery
public AccountChangePasswordQuery(VkApiClient client, UserActor actor, java.lang.String newPassword)
Creates a AbstractQueryBuilder instance that can be used to build api request with various parameters- Parameters:
client- VK API clientactor- actor with access tokennewPassword- value of "new password" parameter.
-
-
Method Detail
-
restoreSid
public AccountChangePasswordQuery restoreSid(java.lang.String value)
Session id received after the [vk.com/dev/auth.restore|auth.restore] method is executed. (If the password is changed right after the access was restored)- Parameters:
value- value of "restore sid" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
changePasswordHash
public AccountChangePasswordQuery changePasswordHash(java.lang.String value)
Hash received after a successful OAuth authorization with a code got by SMS. (If the password is changed right after the access was restored)- Parameters:
value- value of "change password hash" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
oldPassword
public AccountChangePasswordQuery oldPassword(java.lang.String value)
Current user password.- Parameters:
value- value of "old password" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
newPassword
protected AccountChangePasswordQuery newPassword(java.lang.String value)
New password that will be set as a current- Parameters:
value- value of "new password" parameter.- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
getThis
protected AccountChangePasswordQuery getThis()
Description copied from class:AbstractQueryBuilderGet reference to this object- Specified by:
getThisin classAbstractQueryBuilder<AccountChangePasswordQuery,ChangePasswordResponse>- Returns:
- a reference to this
AbstractQueryBuilderobject to fulfill the "Builder" pattern.
-
essentialKeys
protected java.util.List<java.lang.String> essentialKeys()
Description copied from class:AbstractQueryBuilderGet list of required parameter names- Specified by:
essentialKeysin classAbstractQueryBuilder<AccountChangePasswordQuery,ChangePasswordResponse>- Returns:
- list of names
-
-