Package com.auth0.json.mgmt.guardian
Class EnrollmentTicket
java.lang.Object
com.auth0.json.mgmt.guardian.EnrollmentTicket
Class that represents an Auth0 Guardian Enrollment Ticket object. Related to the
GuardianEntity entity.-
Constructor Summary
ConstructorsConstructorDescriptionEnrollmentTicket(String userId) Creates a new instance of the Enrollment Ticket for a given User.EnrollmentTicket(String userId, Boolean sendEmail) Creates a new instance of the Enrollment Ticket for a given User, specifying if you want the ticket to also be sent to the user by email.EnrollmentTicket(String userId, Boolean sendEmail, String email) Creates a new instance of the Enrollment Ticket for a given User, specifying if you want the ticket to also be sent to the specified email address. -
Method Summary
Modifier and TypeMethodDescriptiongetEmail()Getter for the email to which the ticket will be sent.Getter for the ticket id.Getter for the ticket url.Getter for the id of the User this ticket was made for.Whether to send and email for enrollment or not.
-
Constructor Details
-
EnrollmentTicket
Creates a new instance of the Enrollment Ticket for a given User.- Parameters:
userId- the user id
-
EnrollmentTicket
Creates a new instance of the Enrollment Ticket for a given User, specifying if you want the ticket to also be sent to the user by email.- Parameters:
userId- the user idsendEmail- whether the ticket should also be sent to the user by email
-
EnrollmentTicket
Creates a new instance of the Enrollment Ticket for a given User, specifying if you want the ticket to also be sent to the specified email address.- Parameters:
userId- the user idsendEmail- whether the ticket should also be sent to the user by emailemail- the email where the ticket will be sent.
-
-
Method Details
-
getUserId
Getter for the id of the User this ticket was made for.- Returns:
- the user id.
-
willSendEmail
Whether to send and email for enrollment or not.- Returns:
- true is this ticket will send an email upon enrollment, false otherwise.
-
getEmail
Getter for the email to which the ticket will be sent.- Returns:
- the email.
-
getTicketId
Getter for the ticket id.- Returns:
- the ticket id.
-
getTicketUrl
Getter for the ticket url.- Returns:
- the ticket url.
-