Class PasswordChangeTicket

java.lang.Object
com.auth0.json.mgmt.tickets.PasswordChangeTicket

public class PasswordChangeTicket extends Object
Class that represents an Auth0 Password Change Ticket object. Related to the TicketsEntity entity.
  • Constructor Details

    • PasswordChangeTicket

      public PasswordChangeTicket(String userId)
    • PasswordChangeTicket

      public PasswordChangeTicket(String email, String connectionId)
  • Method Details

    • setUserId

      public void setUserId(String userId)
      Setter for the id of the user for whom the ticket should be created.
      Parameters:
      userId - the user id to set.
    • setClientId

      public void setClientId(String clientId)
      Setter for the client_id
      Parameters:
      clientId - the ID of the client to set
    • setIncludeEmailInRedirect

      public void setIncludeEmailInRedirect(Boolean includeEmailInRedirect)
    • setResultUrl

      public void setResultUrl(String resultUrl)
      Setter for the url the user will be redirected to after using the ticket.
      Parameters:
      resultUrl - the result url.
    • setTTLSeconds

      public void setTTLSeconds(Integer seconds)
      The ticket's lifetime in seconds starting from the moment of creation. After expiration the ticket can not be used to verify the users's email. If not specified or if you send 0 the Auth0 default lifetime will be applied.
      Parameters:
      seconds - the lifetime in seconds to set.
    • setNewPassword

      @Deprecated public void setNewPassword(String newPassword)
      Deprecated.
      Setter for the new password to set after the ticket is used.
      Parameters:
      newPassword - the new password to set.
    • setNewPassword

      public void setNewPassword(char[] newPassword)
    • setConnectionId

      public void setConnectionId(String connectionId)
      Setter for the id of the connection the user's email should be search in.
      Parameters:
      connectionId - the connection id
    • setEmail

      public void setEmail(String email)
      Setter for the user's email.
      Parameters:
      email - the user email to set.
    • setMarkEmailAsVerified

      public void setMarkEmailAsVerified(Boolean markEmailAsVerified)
      Setter for the mark_email_as_verified to define if user.email_verified should be set to true after ticket is consumed.
      Parameters:
      markEmailAsVerified - true if email_verified attribute must be set to true once password is changed, false if email_verified attribute should not be updated.
    • setOrganizationId

      public void setOrganizationId(String orgId)
      Sets the organization ID. This allows the organization_id and organization_name to be included in the redirect URL query.
      Parameters:
      orgId - the ID of the organization
    • getOrganizationId

      public String getOrganizationId()
      Gets the organization ID
      Returns:
      the organization ID
    • getTicket

      public String getTicket()
      Getter for the ticket url.
      Returns:
      the ticket url.