@Singleton
public class ApiTokenService
extends java.lang.Object
Modifier and Type | Method and Description |
---|---|
java.lang.String |
create(User user,
java.lang.String name,
java.lang.Integer expires)
Generates a new api token and persists it in the database.
|
public java.lang.String create(User user, java.lang.String name, java.lang.Integer expires)