Class DeletionToken


  • public final class DeletionToken
    extends java.lang.Object
    A class representing a deletion token. This token represents a user's intention to delete their profile.
    Author:
    Alex Kalderimis
    • Constructor Summary

      Constructors 
      Constructor Description
      DeletionToken​(Profile profile, java.util.UUID uuid, java.util.Date expiry)  
    • Constructor Detail

      • DeletionToken

        public DeletionToken​(Profile profile,
                             java.util.UUID uuid,
                             java.util.Date expiry)
        Parameters:
        profile - The profile this token refers to.
        uuid - An identifier.
        expiry - When this token expires.
    • Method Detail

      • getProfile

        public Profile getProfile()
        Returns:
        the profile this token refers to
      • getExpiry

        public java.util.Date getExpiry()
        Returns:
        when this token is valid until
      • getUUID

        public java.util.UUID getUUID()
        Returns:
        the identifier of this token