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.
  • Field Details

  • Constructor Details

    • ChangePasswordRequest

      public ChangePasswordRequest()
  • Method Details

    • currentPassword

      public ChangePasswordRequest currentPassword(@Nonnull String currentPassword)
    • getCurrentPassword

      @Nonnull public String 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

      public void setCurrentPassword(@Nonnull String currentPassword)
    • newPassword

      public ChangePasswordRequest newPassword(@Nonnull String newPassword)
    • getNewPassword

      @Nonnull public String 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

      public void setNewPassword(@Nonnull String newPassword)
    • equals

      public boolean equals(Object o)
      Overrides:
      equals in class Object
    • hashCode

      public int hashCode()
      Overrides:
      hashCode in class Object
    • toString

      public String toString()
      Overrides:
      toString in class Object
    • validateJsonElement

      public static void validateJsonElement(com.google.gson.JsonElement jsonElement) throws IOException
      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 of validateJsonElement(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

      public static ChangePasswordRequest fromJson(String jsonString) throws IOException
      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

      public String toJson()
      Convert an instance of ChangePasswordRequest to an JSON string
      Returns:
      JSON string