Class ChangePasswordRequest
java.lang.Object
co.ankatech.keymanagement.client.auth.model.ChangePasswordRequest
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.23.0")
public class ChangePasswordRequest
extends Object
Request to change the password of the account named by the access token. Carries no user, e-mail or tenant identifier: the subject is never negotiable.
-
Nested Class Summary
Nested Classes -
Field Summary
Fields -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncurrentPassword(String currentPassword) booleanstatic ChangePasswordRequestCreate an instance of ChangePasswordRequest given an JSON stringThe caller's current password.The replacement password.inthashCode()newPassword(String newPassword) voidsetCurrentPassword(String currentPassword) voidsetNewPassword(String newPassword) toJson()Convert an instance of ChangePasswordRequest to an JSON stringtoString()static voidvalidateJsonElement(com.google.gson.JsonElement jsonElement) Validates the JSON Element and throws an exception if issues foundstatic voidvalidateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare.
-
Field Details
-
SERIALIZED_NAME_CURRENT_PASSWORD
- See Also:
-
SERIALIZED_NAME_NEW_PASSWORD
- See Also:
-
openapiFields
-
openapiRequiredFields
-
-
Constructor Details
-
ChangePasswordRequest
public ChangePasswordRequest()
-
-
Method Details
-
currentPassword
-
getCurrentPassword
The caller's current password. Required even though the session is already valid: reauthentication is what makes a stolen access token insufficient to take the account over permanently.- Returns:
- currentPassword
-
setCurrentPassword
-
newPassword
-
getNewPassword
The replacement password. The password policy decides it: 15 to 128 characters, no composition rule, not a common or compromised password, not containing the local part of the e-mail address; a violation is refused with password-policy-violation naming the rule. It must also differ from the current password and the last 5, which is refused with the same body as a wrong current password.- Returns:
- newPassword
-
setNewPassword
-
equals
-
hashCode
public int hashCode() -
toString
-
validateJsonElement
Validates the JSON Element and throws an exception if issues found- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is invalid with respect to ChangePasswordRequest
-
validateJsonElementAsCandidate
public static void validateJsonElementAsCandidate(com.google.gson.JsonElement jsonElement) throws IOException Validates the JSON Element as a candidate of a oneOf schema: the checks ofvalidateJsonElement(JsonElement), and the element carries no member this model does not declare. A oneOf schema without a discriminator tells its candidates apart by their member sets, so a candidate is matched on its closed member set.- Parameters:
jsonElement- JSON Element- Throws:
IOException- if the JSON Element is not a ChangePasswordRequest
-
fromJson
Create an instance of ChangePasswordRequest given an JSON string- Parameters:
jsonString- JSON string- Returns:
- An instance of ChangePasswordRequest
- Throws:
IOException- if the JSON string is invalid with respect to ChangePasswordRequest
-
toJson
Convert an instance of ChangePasswordRequest to an JSON string- Returns:
- JSON string
-