Class DeletionToken
- java.lang.Object
-
- org.intermine.webservice.server.user.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)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.Date
getExpiry()
Profile
getProfile()
java.util.UUID
getUUID()
-
-
-
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
-
-