Class Tan
- java.lang.Object
-
- app.coronawarn.server.services.submission.verification.Tan
-
public class Tan extends Object
A representation of a tan.
-
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
equals(Object o)
UUID
getTan()
Returns the tan entity as UUID.int
hashCode()
static Tan
of(String tanString)
Creates a newTan(java.util.UUID)
instance for the given tan string.String
toString()
Returns the TAN in it's string representation.
-
-
-
Method Detail
-
of
public static Tan of(String tanString)
Creates a newTan(java.util.UUID)
instance for the given tan string.- Parameters:
tanString
- A valid UUID string representation.- Returns:
- The Tan instance
- Throws:
IllegalArgumentException
- when the given tan string is not a valid UUID.
-
getTan
public UUID getTan()
Returns the tan entity as UUID.- Returns:
- the tan.
-
toString
public String toString()
Returns the TAN in it's string representation.
-
-