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 booleanequals(Object o)UUIDgetTan()Returns the tan entity as UUID.inthashCode()static Tanof(String tanString)Creates a newTan(java.util.UUID)instance for the given tan string.StringtoString()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.
-
-